diff --git a/.config/nvim/lua/lsp.lua b/.config/nvim/lua/lsp.lua index bc2b2ab..744ca23 100644 --- a/.config/nvim/lua/lsp.lua +++ b/.config/nvim/lua/lsp.lua @@ -4,8 +4,10 @@ require('keymaps') use { 'https://github.com/neovim/nvim-lspconfig', config = function() + map('n', 'e', vim.diagnostic.open_float) map('n', '', vim.diagnostic.goto_prev) map('n', '', vim.diagnostic.goto_next) + map('n', 'q', vim.diagnostic.setloclist) -- Only map the following keys after the language server attaches to the -- current buffer diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 6e7159e..db98a6d 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -20,6 +20,7 @@ use { } use 'https://github.com/L3MON4D3/LuaSnip' +-- compile and install new plugins when this file is saved vim.cmd([[ augroup packer_user_config autocmd! diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 53088fa..6650880 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -36,4 +36,3 @@ vim.api.nvim_create_autocmd( command = 'lua remove_trailing_whitespace()' } ) -