diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-06-02 10:38:03 +0100 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-06-02 10:38:03 +0100 |
commit | f34ab32d9a06ebc2387f2896236b95cbc7cfe00e (patch) | |
tree | 58873d8b15d53db2fec07eae009b015ccd7fced7 /lsp.lua | |
parent | 35970ab0cc2a88e9a763936a56f84a072cc1be8c (diff) | |
download | dotnvim-f34ab32d9a06ebc2387f2896236b95cbc7cfe00e.tar.gz dotnvim-f34ab32d9a06ebc2387f2896236b95cbc7cfe00e.zip |
Added trouble
Diffstat (limited to 'lsp.lua')
-rw-r--r-- | lsp.lua | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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} +) |