Add better movement and LSP-related help

This commit is contained in:
Levente Krizsán 2024-09-02 22:28:22 +02:00
parent 3ed9bfaee3
commit e7a9bf5949
5 changed files with 142 additions and 0 deletions

View file

@ -1,5 +1,10 @@
-- https://github.com/nvim-treesitter/nvim-treesitter-context
return {
'nvim-treesitter/nvim-treesitter-context',
dependencies = { 'nvim-treesitter/nvim-treesitter' },
opts = {},
config = function(_, opts)
require('treesitter-context').setup(opts)
vim.keymap.set('n', '<leader>tc', ':TSContextToggle<CR>', { noremap = true, silent = true, desc = '[T]oggle current [C]ontext' })
end,
}