Improved neovim config

This commit is contained in:
2023-08-21 19:19:37 +02:00
parent 2ad93d9338
commit ce110d730e
15 changed files with 169 additions and 76 deletions

View File

@ -1,8 +1,12 @@
-- Globals
local g = vim.g
g.mapleader = " "
g.loaded_netrw = 1
g.loaded_netrwPlugin = 1
for _, provider in ipairs { "node", "perl", "python3", "ruby" } do
g["loaded_" .. provider .. "_provider"] = 0
end
-- Options
local opt = vim.opt
opt.autoindent = true
opt.autowrite = false
@ -16,13 +20,11 @@ opt.grepprg = "rg --vimgrep"
opt.ignorecase = false
opt.laststatus = 0
opt.mouse = "a"
opt.number = true
opt.relativenumber = false
opt.ruler = false
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
opt.shiftwidth = 4
opt.shortmess:append "sI"
opt.showmode = false
opt.signcolumn = "yes"
opt.smartindent = true
opt.softtabstop = 4
opt.spell = false
@ -35,3 +37,9 @@ opt.undolevels = 10000
opt.updatetime = 250
opt.wildmode = "longest:full,full"
opt.wrap = false
-- UI
opt.fillchars = { eob = " ", vert = " " }
opt.number = true
opt.relativenumber = false
opt.signcolumn = "yes:1"