🐛 fix(nvim): glance mappings now working
This commit is contained in:
parent
f7520b1927
commit
8f694e17d6
3 changed files with 13 additions and 22 deletions
|
@ -50,7 +50,6 @@
|
|||
"plugins.extras.lang.web",
|
||||
"plugins.extras.lsp.actions-preview",
|
||||
"plugins.extras.lsp.compiler",
|
||||
"plugins.extras.lsp.glance",
|
||||
"plugins.extras.lsp.lightbulb",
|
||||
"plugins.extras.lsp.lsp",
|
||||
"plugins.extras.lsp.repl",
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"dnlhc/glance.nvim",
|
||||
cmd = { "Glance" },
|
||||
opts = {
|
||||
border = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
init = function()
|
||||
local keys = require("lazyvim.plugins.lsp.keymaps").get()
|
||||
-- keys[#keys + 1] = { "gd", "<CMD>Glance definitions<CR>", desc = "Goto definition" }
|
||||
keys[#keys + 1] = { "gr", "<CMD>Glance references<CR>", desc = "References" }
|
||||
keys[#keys + 1] = { "gy", "<CMD>Glance type_definitions<CR>", desc = "Goto t[y]pe definitions" }
|
||||
keys[#keys + 1] = { "gI", "<CMD>Glance implementations<CR>", desc = "Goto implementations" }
|
||||
end,
|
||||
},
|
||||
}
|
|
@ -3,6 +3,10 @@ return {
|
|||
"neovim/nvim-lspconfig",
|
||||
init = function()
|
||||
local keys = require("lazyvim.plugins.lsp.keymaps").get()
|
||||
|
||||
keys[#keys + 1] = { "gr", "<CMD>Glance references<CR>", desc = "References" }
|
||||
keys[#keys + 1] = { "gy", "<CMD>Glance type_definitions<CR>", desc = "Goto t[y]pe definitions" }
|
||||
keys[#keys + 1] = { "gI", "<CMD>Glance implementations<CR>", desc = "Goto implementations" }
|
||||
keys[#keys + 1] = { "<leader>cl", false }
|
||||
keys[#keys + 1] = { "<leader>cli", "<cmd>LspInfo<cr>", desc = "LspInfo" }
|
||||
|
||||
|
@ -128,6 +132,15 @@ return {
|
|||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"dnlhc/glance.nvim",
|
||||
cmd = { "Glance" },
|
||||
opts = {
|
||||
border = {
|
||||
enable = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"simrat39/rust-tools.nvim",
|
||||
lazy = true,
|
||||
|
|
Loading…
Add table
Reference in a new issue