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

View File

@ -35,7 +35,11 @@
(bind! :n :gr "<cmd>Telescope lsp_references<cr>" buf) (bind! :n :gr "<cmd>Telescope lsp_references<cr>" buf)
(bind! :n :gd "<cmd>Telescope lsp_definitions<cr>" buf) (bind! :n :gd "<cmd>Telescope lsp_definitions<cr>" buf)
(bind! :n :gI "<cmd>Telescope lsp_implementations<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] (fn get-data-dir [server root]