Added trouble

This commit is contained in:
Alexander Rosenberg 2023-02-07 22:31:05 -08:00
parent 74898aacff
commit fa057cb488
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730
2 changed files with 26 additions and 12 deletions

View File

@ -139,6 +139,15 @@
(module-call! :telescope :load_extension :ui-select)
(module-call! :telescope :load_extension :fzf)))
;; Trouble
(use! :folke/trouble.nvim
:cmd [ :Trouble
:TroubleToggle
:TroubleClose
:TroubleRefresh ]
:config
(setup! :trouble))
;; Nvim surround
(use! :kylechui/nvim-surround
:config
@ -189,17 +198,18 @@
;; illuminate (same symbol highlight)
(use! :RRethy/vim-illuminate
:config
(module-call! :illuminate :configure)
{ :providers [
"lsp"
"treesitter"
"ragex" ]
:modes_denylist [
:markdown
:text
:gitconfig
:gitignore ]
:delay 0 }
(module-call! :illuminate
:configure { :providers [
"lsp"
"treesitter"
"ragex" ]
:filetypes_denylist [
:Trouble
:markdown
:text
:gitconfig
:gitignore ]
:delay 0 })
(hook! :FileType :lua #(vim.api.nvim_set_hl 0
:IlluminatedWordText
{})))

View File

@ -35,7 +35,11 @@
(bind! :n :gr "<cmd>Telescope lsp_references<cr>" buf)
(bind! :n :gd "<cmd>Telescope lsp_definitions<cr>" buf)
(bind! :n :gI "<cmd>Telescope lsp_implementations<cr>" buf)
(bind! :n :D "<cmd>Telescope lsp_type_definitions<cr>" buf))
(bind! :n :D "<cmd>Telescope lsp_type_definitions<cr>" buf)
;; Some trouble commands
(bind! :n :<leader>e "<cmd>TroubleToggle document_diagnostics<cr>")
(bind! :n :<leader>E "<cmd>TroubleToggle workspace_diagnostics<cr>"))
(fn get-data-dir [server root]