migrate nvim config to 0.12.0: vim.pack, ui2, snacks -> mini, just general spring cleaning
This commit is contained in:
parent
d1178fbe59
commit
14b1a9b057
70 changed files with 1081 additions and 1483 deletions
21
nvim/plugin/goto-preview.lua
Normal file
21
nvim/plugin/goto-preview.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
vim.schedule(function()
|
||||
vim.pack.add({
|
||||
"https://github.com/rmagatti/logger.nvim",
|
||||
"https://github.com/rmagatti/goto-preview",
|
||||
})
|
||||
|
||||
require("goto-preview").setup({
|
||||
border = { "↖", "─", "┐", "│", "┘", "─", "└", "│" },
|
||||
focus_on_open = true,
|
||||
stack_floating_preview_windows = false,
|
||||
preview_window_title = { enable = true, position = "left" },
|
||||
vim_ui_input = false,
|
||||
})
|
||||
|
||||
local utils = require("utils")
|
||||
utils.set_keymap_list({
|
||||
{ "gp", function() require("goto-preview").goto_preview_definition() end },
|
||||
{ "gy", function() require("goto-preview").goto_preview_type_definition() end },
|
||||
{ "<Leader>q", function() require("goto-preview").close_all_win() end },
|
||||
})
|
||||
end)
|
||||
Loading…
Add table
Add a link
Reference in a new issue