mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-24 05:21:04 +00:00
no more goto-preview and add peeek dfinition
This commit is contained in:
parent
f90fb3b778
commit
86ca1230d3
3 changed files with 31 additions and 12 deletions
|
|
@ -58,15 +58,15 @@ return {
|
||||||
require("nvim-tree").setup(opts)
|
require("nvim-tree").setup(opts)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
-- {
|
||||||
"rmagatti/goto-preview",
|
-- "rmagatti/goto-preview",
|
||||||
event = "VeryLazy",
|
-- event = "VeryLazy",
|
||||||
opts = {
|
-- opts = {
|
||||||
default_mappings = true,
|
-- default_mappings = true,
|
||||||
resizing_mappings = true,
|
-- resizing_mappings = true,
|
||||||
},
|
-- },
|
||||||
config = function(_, opts)
|
-- config = function(_, opts)
|
||||||
require("goto-preview").setup(opts)
|
-- require("goto-preview").setup(opts)
|
||||||
end,
|
-- end,
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"ruby",
|
"ruby",
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
||||||
19
lua/plugins/treesitter.lua
Normal file
19
lua/plugins/treesitter.lua
Normal 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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue