no more goto-preview and add peeek dfinition

This commit is contained in:
Ralph 2024-04-12 02:57:42 -07:00
parent f90fb3b778
commit 86ca1230d3
3 changed files with 31 additions and 12 deletions

View file

@ -58,15 +58,15 @@ return {
require("nvim-tree").setup(opts)
end,
},
{
"rmagatti/goto-preview",
event = "VeryLazy",
opts = {
default_mappings = true,
resizing_mappings = true,
},
config = function(_, opts)
require("goto-preview").setup(opts)
end,
},
-- {
-- "rmagatti/goto-preview",
-- event = "VeryLazy",
-- opts = {
-- default_mappings = true,
-- resizing_mappings = true,
-- },
-- config = function(_, opts)
-- require("goto-preview").setup(opts)
-- end,
-- },
}

View file

@ -4,7 +4,7 @@ return {
opts = {
ensure_installed = {
"ruby",
}
},
},
},
{

View file

@ -0,0 +1,19 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
textobjects = {
lsp_interop = {
enable = true,
floating_preview_opts = {
border = 'rounded',
},
peek_definition_code = {
["<leader>fd"] = "@function.outer",
["<leader>fD"] = "@class.outer",
},
},
},
},
},
}