diff --git a/nvim/.config/nvim/lua/lsp.lua b/nvim/.config/nvim/lua/lsp.lua index 2e6dc26..18ef6ec 100644 --- a/nvim/.config/nvim/lua/lsp.lua +++ b/nvim/.config/nvim/lua/lsp.lua @@ -17,6 +17,10 @@ local on_attach = function(_, bufnr) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gW', 'lua vim.lsp.buf.workspace_symbol()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'de', 'lua vim.lsp.buf.declaration()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'rn', 'lua vim.lsp.buf.rename()', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', '[d', ':PrevDiagnostic', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', ']d', ':NextDiagnostic', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', '[D', ':PrevDiagnosticCycle', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', ']D', ':NextDiagnosticCycle', opts) end local servers = { 'ghcide', 'purescriptls', 'rust_analyzer' }