Add neovim config
This commit is contained in:
30
nvim/lua/config/lsp.lua
Normal file
30
nvim/lua/config/lsp.lua
Normal 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",
|
||||
},
|
||||
},
|
||||
})
|
||||
Reference in New Issue
Block a user