diff --git a/AppData/Local/nvim/init.lua b/AppData/Local/nvim/init.lua index 7dbdb6f..961010c 100644 --- a/AppData/Local/nvim/init.lua +++ b/AppData/Local/nvim/init.lua @@ -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' }