update lsp, keymaps, format and some other settings

This commit is contained in:
xesc 2025-02-23 19:36:05 +01:00
parent c8a9410ad7
commit 49c040e36e
25 changed files with 423 additions and 861 deletions

View file

@ -16,14 +16,20 @@ vim.opt.completeopt = 'menu,menuone,noselect'
vim.opt.list = true
-- correct tabbing
vim.opt.tabstop = 2
vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2
vim.opt.tabstop = 4
vim.opt.softtabstop = 4
vim.opt.shiftwidth = 4
vim.opt.expandtab = true
-- enable foldcolumn
vim.wo.foldcolumn = "2"
-- disable wrap
vim.opt.wrap = false
-- allow "@" in filenames
vim.opt.isfname:append("@-@")
-- smart indenting by vim
vim.api.nvim_set_option("smartindent",true)
@ -39,7 +45,7 @@ vim.api.nvim_set_option("background", "dark")
-- always center
-- vim.api.nvim_set_option("scrolloff",999)
vim.api.nvim_set_option("scrolloff",15)
vim.opt.scrolloff = 10
-- spellchecking
vim.wo.spell = true