Add neovim config

This commit is contained in:
Valeriy Filippov
2026-03-05 16:34:38 +03:00
commit 210e99d004
36 changed files with 845 additions and 0 deletions

30
nvim/lua/config/lsp.lua Normal file
View File

@@ -0,0 +1,30 @@
vim.lsp.enable({
"gitlabcils",
"luals",
"terraformls",
"yamlls"
})
vim.diagnostic.config({
virtual_lines = true,
-- virtual_text = true,
underline = true,
update_in_insert = false,
severity_sort = true,
float = {
border = "rounded",
source = true,
},
signs = {
text = {
[vim.diagnostic.severity.ERROR] = "󰅚 ",
[vim.diagnostic.severity.WARN] = "󰀪 ",
[vim.diagnostic.severity.INFO] = "󰋽 ",
[vim.diagnostic.severity.HINT] = "󰌶 ",
},
numhl = {
[vim.diagnostic.severity.ERROR] = "ErrorMsg",
[vim.diagnostic.severity.WARN] = "WarningMsg",
},
},
})