Added trouble
This commit is contained in:
parent
74898aacff
commit
fa057cb488
@ -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
|
||||||
{})))
|
{})))
|
||||||
|
@ -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]
|
||||||
|
Reference in New Issue
Block a user