chore(nvim): simplify imports and clean up plugin files

This commit is contained in:
Stefan Imhoff
2022-12-17 17:48:17 +01:00
parent 68a3d0deab
commit a7e00b506d
51 changed files with 245 additions and 487 deletions

View File

@@ -1,16 +1,9 @@
-- 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()
vim.keymap.set("n", "gld", "<CMD>Glance definitions<CR>", opts)
vim.keymap.set("n", "gli", "<CMD>Glance implementations<CR>", opts)
vim.keymap.set("n", "glr", "<CMD>Glance references<CR>", opts)
vim.keymap.set("n", "glt", "<CMD>Glance type_definitions<CR>", opts)
-- 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)
require("glance").setup()