add illuminate nvim
This commit is contained in:
parent
5404dc521c
commit
812cd77d9e
4 changed files with 17 additions and 12 deletions
|
@ -24,14 +24,14 @@ local on_attach = function(client, bufnr)
|
|||
local opts = { noremap = true, silent = true, buffer = bufnr }
|
||||
|
||||
-- set keybinds
|
||||
keymap.set("n", "gf", "<cmd>Lspsaga lsp_finder<CR>", opts) -- show definition
|
||||
keymap.set("n", "gd", "<cmd>Lspsaga peek_definition<CR>", opts) -- see definition and make edits in window
|
||||
keymap.set("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) -- go to implementation
|
||||
keymap.set("n", "<leader>ca", "<cmd>Lspsaga code_action<CR>", opts) -- see available code actions
|
||||
keymap.set("n", "<leader>rn", "<cmd>Lspsaga rename<CR>", opts) -- smart rename
|
||||
keymap.set("n", "<leader>b", "<cmd>Lspsaga show_line_diagnostics<CR>", opts) -- show diagnostics for line
|
||||
keymap.set("n", "<leader>d", "<cmd>Lspsaga show_cursor_diagnostics<CR>", opts) -- show diagnostics for cursor
|
||||
keymap.set("n", "<leader>y", "<cmd>Lspsaga finder<CR>", opts) -- find refs elsewhere in project
|
||||
keymap.set("n", "gf", "<cmd>lua vim.lsp.buf.hover()<CR>", opts) -- show definition
|
||||
-- keymap.set("n", "gd", "<cmd>Lspsaga peek_definition<CR>", opts) -- see definition and make edits in window
|
||||
-- keymap.set("n", "gi", "<cmd>lua vim.lsp.buf.implementation()<CR>", opts) -- go to implementation
|
||||
-- keymap.set("n", "<leader>ca", "<cmd>Lspsaga code_action<CR>", opts) -- see available code actions
|
||||
-- keymap.set("n", "<leader>rn", "<cmd>Lspsaga rename<CR>", opts) -- smart rename
|
||||
-- keymap.set("n", "<leader>b", "<cmd>Lspsaga show_line_diagnostics<CR>", opts) -- show diagnostics for line
|
||||
-- keymap.set("n", "<leader>d", "<cmd>Lspsaga show_cursor_diagnostics<CR>", opts) -- show diagnostics for cursor
|
||||
-- keymap.set("n", "<leader>y", "<cmd>Lspsaga finder<CR>", opts) -- find refs elsewhere in project
|
||||
end
|
||||
-- used to enable autocompletion (assign to every lsp server config)
|
||||
local capabilities = cmp_nvim_lsp.default_capabilities()
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
"vim-commentary": { "branch": "master", "commit": "64a654ef4a20db1727938338310209b6a63f60c9" },
|
||||
"vim-css-color": { "branch": "master", "commit": "950e80352b325ff26d3b0faf95b29e301c200f7d" },
|
||||
"vim-fugitive": { "branch": "master", "commit": "d4877e54cef67f5af4f950935b1ade19ed6b7370" },
|
||||
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
|
||||
"vim-smoothie": { "branch": "master", "commit": "df1e324e9f3395c630c1c523d0555a01d2eb1b7e" },
|
||||
"vim-wakatime": { "branch": "master", "commit": "cf51327a9e08935569614d1cb24e779ee9f45519" },
|
||||
"zk-nvim": { "branch": "main", "commit": "aa9b346f2b0ab0c822bef917ee7f607d5c99f7bc" }
|
||||
|
|
3
nvim/lua/plugins/illuminate.lua
Normal file
3
nvim/lua/plugins/illuminate.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"RRethy/vim-illuminate",
|
||||
}
|
|
@ -5,10 +5,11 @@ return {
|
|||
"nvim-tree/nvim-web-devicons", -- optional
|
||||
},
|
||||
keys = {
|
||||
-- { "<leader>gf", "<cmd>Lspsaga lsp_finder<CR>" },
|
||||
-- { "<leader>gd", "<cmd>Lspsaga peek_definition<CR>" },
|
||||
-- { "<leader>rn", "<leader>rn", "<cmd>Lspsaga rename<CR>" },
|
||||
-- { "<leader>y", "<leader>rn", "<cmd>Lspsaga finder<CR>" },
|
||||
--{ "<leader>ss", "<cmd>Lspsaga diagnostic_jump_next<CR>" },
|
||||
{ "<leader>gf", "<cmd>Lspsaga lsp_finder<CR>" },
|
||||
{ "<leader>gd", "<cmd>Lspsaga peek_definition<CR>" },
|
||||
{ "<leader>rn", "<cmd>Lspsaga rename<CR>" },
|
||||
{ "<leader>y", "<cmd>Lspsaga finder<CR>" },
|
||||
},
|
||||
config = function()
|
||||
require("lspsaga").setup({
|
||||
|
|
Loading…
Add table
Reference in a new issue