Adding treesitter context

This commit is contained in:
2026-03-30 07:48:32 +02:00
parent 7e89a3a63f
commit 889b2c4cca

View File

@@ -77,6 +77,7 @@ vim.pack.add({
'https://github.com/folke/which-key.nvim', -- Shortcut hints (bar at the bottom when pressing space)
'https://github.com/nvim-lua/plenary.nvim', -- Helper lua functions, dep of todo-comments.
'https://github.com/nvim-treesitter/nvim-treesitter', -- Syntax highlighting
'https://github.com/nvim-treesitter/nvim-treesitter-context', -- Show sticky headers when looking at nested structures
'https://github.com/stevearc/oil.nvim', -- File explorer
})
@@ -133,6 +134,9 @@ require('oil').setup()
require('nvim-treesitter').setup({
auto_install = true
})
require('treesitter-context').setup({
enable = true
})
local vue_language_server_path = vim.fn.stdpath('data') ..
"/mason/packages/vue-language-server/node_modules/@vue/language-server"
local tsserver_filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }