mirror of
https://github.com/kogakure/dotfiles.git
synced 2026-02-03 20:25:30 +00:00
feat(nvim): add glance plugin
This commit is contained in:
16
nvim/after/plugin/glance.lua
Normal file
16
nvim/after/plugin/glance.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
-- https://github.com/DNLHC/glance.nvim
|
||||
local status_ok, glance = pcall(require, "glance")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
local keymap = vim.keymap.set
|
||||
local opts = { noremap = true, silent = true }
|
||||
|
||||
glance.setup()
|
||||
|
||||
-- Keymaps
|
||||
keymap("n", "gld", "<CMD>Glance definitions<CR>", opts)
|
||||
keymap("n", "gli", "<CMD>Glance implementations<CR>", opts)
|
||||
keymap("n", "glr", "<CMD>Glance references<CR>", opts)
|
||||
keymap("n", "glt", "<CMD>Glance type_definitions<CR>", opts)
|
||||
Reference in New Issue
Block a user