lsp diagnotics
This commit is contained in:
parent
f9e3314b2d
commit
3c5d202b1b
|
@ -58,10 +58,19 @@ lsp.on_attach(function(_, bufnr)
|
|||
vim.keymap.set('n', '[d', function()
|
||||
vim.diagnostic.goto_next()
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set('n', ']d', function()
|
||||
vim.diagnostic.goto_prev()
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set('n', '<leader>dd', function()
|
||||
vim.diagnostic.setloclist()
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set('n', '<leader>do', function()
|
||||
vim.diagnostic.open_float()
|
||||
end, opts)
|
||||
|
||||
vim.keymap.set('n', '<leader>ca', function()
|
||||
vim.lsp.buf.code_action()
|
||||
end, opts)
|
||||
|
|
|
@ -112,3 +112,9 @@ require('nvim-treesitter.configs').setup {
|
|||
},
|
||||
},
|
||||
}
|
||||
|
||||
vim.filetype.add {
|
||||
extension = {
|
||||
templ = 'templ',
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue