Adding treesitter context
This commit is contained in:
@@ -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/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-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', -- 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
|
'https://github.com/stevearc/oil.nvim', -- File explorer
|
||||||
})
|
})
|
||||||
|
|
||||||
@@ -133,6 +134,9 @@ require('oil').setup()
|
|||||||
require('nvim-treesitter').setup({
|
require('nvim-treesitter').setup({
|
||||||
auto_install = true
|
auto_install = true
|
||||||
})
|
})
|
||||||
|
require('treesitter-context').setup({
|
||||||
|
enable = true
|
||||||
|
})
|
||||||
local vue_language_server_path = vim.fn.stdpath('data') ..
|
local vue_language_server_path = vim.fn.stdpath('data') ..
|
||||||
"/mason/packages/vue-language-server/node_modules/@vue/language-server"
|
"/mason/packages/vue-language-server/node_modules/@vue/language-server"
|
||||||
local tsserver_filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }
|
local tsserver_filetypes = { 'typescript', 'javascript', 'javascriptreact', 'typescriptreact', 'vue' }
|
||||||
|
|||||||
Reference in New Issue
Block a user