aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-06-02 10:38:03 +0100
committerJuan J. Martinez <jjm@usebox.net>2022-06-02 10:38:03 +0100
commitf34ab32d9a06ebc2387f2896236b95cbc7cfe00e (patch)
tree58873d8b15d53db2fec07eae009b015ccd7fced7
parent35970ab0cc2a88e9a763936a56f84a072cc1be8c (diff)
downloaddotnvim-f34ab32d9a06ebc2387f2896236b95cbc7cfe00e.tar.gz
dotnvim-f34ab32d9a06ebc2387f2896236b95cbc7cfe00e.zip
Added trouble
-rw-r--r--lsp.lua7
-rw-r--r--vimrc4
2 files changed, 11 insertions, 0 deletions
diff --git a/lsp.lua b/lsp.lua
index 32f06d9..397cc8d 100644
--- a/lsp.lua
+++ b/lsp.lua
@@ -74,3 +74,10 @@ vim.diagnostic.config({ virtual_text = false, signs = true })
-- for go
-- install gopls with: go install golang.org/x/tools/gopls@latest
vim.cmd([[autocmd BufWritePre *.go :lua vim.lsp.buf.formatting_seq_sync()]])
+
+-- for trouble
+require("trouble").setup()
+
+vim.api.nvim_set_keymap("n", "<leader>xx", "<cmd>Trouble<cr>",
+ {silent = true, noremap = true}
+)
diff --git a/vimrc b/vimrc
index bf89a07..68a932a 100644
--- a/vimrc
+++ b/vimrc
@@ -76,6 +76,10 @@ if has('nvim-0.5')
Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip'
+ " for LSP
+ Plug 'kyazdani42/nvim-web-devicons'
+ Plug 'folke/trouble.nvim'
+
" life improvements
Plug 'ojroques/nvim-bufdel'