From f34ab32d9a06ebc2387f2896236b95cbc7cfe00e Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Thu, 2 Jun 2022 10:38:03 +0100 Subject: Added trouble --- lsp.lua | 7 +++++++ vimrc | 4 ++++ 2 files changed, 11 insertions(+) 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", "xx", "Trouble", + {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' -- cgit v1.2.3