You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
1.0 KiB
28 lines
1.0 KiB
|
|
-- general configuration |
|
vim.opt.background = 'dark' -- the theme background is dark |
|
vim.opt.termguicolors = true |
|
|
|
vim.opt.cursorline = true -- highlight the line with the cursor |
|
vim.opt.wrap = false -- do not wrap long lines |
|
vim.opt.foldmethod = 'marker' -- when folding, use the marker |
|
vim.opt.laststatus = 3 -- always show the status line, but only one, even with splits |
|
vim.opt.showtabline = 2 -- always show the tab bar |
|
vim.opt.scrolloff = 2 -- number of lines to always have around cursor |
|
vim.opt.splitright = true -- vertical splits open on the right |
|
vim.opt.splitbelow = true -- horizontal splits open on the bottom |
|
vim.g.mapleader = ' ' -- space is the leader character |
|
|
|
-- commands that don't exist in lua yet |
|
vim.cmd [[ |
|
color PaperColor |
|
]] |
|
|
|
-- Keybind: use '-' to open the file explorer |
|
vim.api.nvim_set_keymap('n', '-', ':Ex<CR>', { noremap=true, silent=true }) |
|
|
|
-- Don't show signs on diagnostics |
|
vim.diagnostic.config({signs = false}) |
|
|
|
-- My plugins and their configuration |
|
require('plugins')
|
|
|