From 2665133e252e13216cc462740d38ce405df12b33 Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 10 Jan 2023 16:54:43 +0100 Subject: [PATCH] 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... --- lua/plugins.lua | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 52a0bcc..9311918 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -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