fix: remove remains of old treesitter setup, fix deprecated hover calls

This commit is contained in:
Alexander Roso 2026-05-18 12:03:20 +02:00
parent e18c745662
commit 95813e5721
4 changed files with 10 additions and 80 deletions

View file

@ -1,26 +1,12 @@
return {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
},
{
"nvim-treesitter/playground",
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = {
"TSPlaygroundToggle",
"TSHighlightCapturesUnderCursor",
"TSNodeUnderCursor",
},
},
{
"nvim-treesitter/nvim-treesitter-context",
event = "VeryLazy",
dependencies = { "nvim-treesitter/nvim-treesitter" },
cmd = { "TSContextEnable", "TSContextDisable", "TSContextToggle" },
keys = {
-- stylua: ignore start
{ "[c", function() require("treesitter-context").go_to_context() end, desc = "Go to context start", },
{ "<leader>c", function() require("treesitter-context").toggle() end, desc = "Toggle context view", },
{ "[c", function() require("treesitter-context").go_to_context() end, desc = "Go to context start", },
{ "<leader>c", function() require("treesitter-context").toggle() end, desc = "Toggle context view", },
-- stylua: ignore end
},
opts = { enable = true },
@ -33,7 +19,6 @@ return {
{
"nvim-treesitter/nvim-treesitter-textobjects",
branch = "main",
dependencies = { "nvim-treesitter/nvim-treesitter" },
init = function()
-- Disable entire built-in ftplugin mappings to avoid conflicts.
-- See https://github.com/neovim/neovim/tree/master/runtime/ftplugin for built-in ftplugins.