feat(home-manager): rework neovim configuration
Use new neovim option introduced in 0.11
This commit is contained in:
parent
5ac9a372b9
commit
69493a7d84
13 changed files with 208 additions and 194 deletions
|
@ -121,3 +121,25 @@ vim.lsp.set_log_level("off")
|
|||
-- define a timeout for match parens
|
||||
vim.g.matchparen_timeout = 2
|
||||
vim.g.matchparen_insert_timeout = 2
|
||||
|
||||
-- activate virtual lines for diagnistics
|
||||
-- no more plugins needed
|
||||
vim.diagnostic.config({
|
||||
virtual_lines = true
|
||||
|
||||
-- Alternatively, customize specific options
|
||||
-- virtual_lines = {
|
||||
-- -- Only show virtual line diagnostics for the current cursor line
|
||||
-- current_line = true,
|
||||
-- },
|
||||
})
|
||||
|
||||
-- LSP configuration
|
||||
vim.lsp.enable('bash')
|
||||
vim.lsp.enable('helm')
|
||||
vim.lsp.enable('lua')
|
||||
vim.lsp.enable('nills')
|
||||
vim.lsp.enable('pylsp')
|
||||
vim.lsp.enable('terraformls')
|
||||
vim.lsp.enable('tflint')
|
||||
vim.lsp.enable('yaml')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue