feat(home-manager): rework neovim configuration

Use new neovim option introduced in 0.11
This commit is contained in:
Yorick Barbanneau 2025-04-17 23:56:44 +02:00
parent 5ac9a372b9
commit 69493a7d84
No known key found for this signature in database
GPG key ID: 4447A19BBEDB8DBA
13 changed files with 208 additions and 194 deletions

View file

@ -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')