feat: add treesitter playground and parser info
Added a comment because I always have the same issue on windows: "ghost" treesitter parsers hidden under scoop install dir. I hope I will remember where to read its location, because I can never remember its location...
This commit is contained in:
parent
5455fef6af
commit
2665133e25
1 changed files with 5 additions and 3 deletions
|
@ -173,18 +173,20 @@ local init_fn = function(use)
|
|||
|
||||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = ':TSUpdate',
|
||||
run = ':TSUpdate', -- if parsers break upon install, check under scoop/apps/neovim/{version}/lib/nvim/parser
|
||||
config = function()
|
||||
require('nvim-treesitter.configs').setup {
|
||||
require('nvim-treesitter.configs').setup({
|
||||
highlight = { enable = true },
|
||||
incremental_selection = { enable = true },
|
||||
textobjects = { enable = true }
|
||||
}
|
||||
})
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
end
|
||||
}
|
||||
|
||||
use 'nvim-treesitter/playground'
|
||||
|
||||
use {
|
||||
'kyazdani42/nvim-tree.lua', -- tree file explorer, alternative to nerdtree in lua
|
||||
requires = { 'kyazdani42/nvim-web-devicons' }, -- optional, for file icons
|
||||
|
|
Loading…
Reference in a new issue