Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvim-treesitter command not available #1

Closed
kyzsuukii opened this issue Jan 5, 2024 · 2 comments
Closed

nvim-treesitter command not available #1

kyzsuukii opened this issue Jan 5, 2024 · 2 comments

Comments

@kyzsuukii
Copy link

i found this configuration and its really help me
but i have issue with treesitter

its not available/disable but in config its already setup

Screenshot_20240105-215103.png

how to use/enable nvim-treesitter because i cant use TSInstall😔

@martin-braun
Copy link
Owner

martin-braun commented Jan 10, 2024

NvChad uses treesitter and some other plugins that are very common. However, I decided to disable them in favor of coc.nvim. This is an alternative solution for LSP or code suggestion stuff. It uses nodeJS under the hood and allows to run plugins that are forked from VSCode plugins, hence the plugins provide an easier entry, since they often come with LSP calls, commands and snippets in one package. My configuration expects you to alias the lts version of node via nvm.

It's expected that these plugins are disabled:

  Disabled (13)
     cmp-buffer 
     cmp-nvim-lsp 
     cmp-nvim-lua 
     cmp-path 
     cmp_luasnip 
     friendly-snippets 
     LuaSnip 
     mason.nvim 
     nvim-autopairs 
     nvim-cmp 
     nvim-lspconfig 
     nvim-treesitter  telescope.nvim 
     nvterm 

cmp, lspconfig, mason, friendly-snippets and treesitter are all replaced by coc.nvim. The coc.nvim plugins are defined at https://github.com/martin-braun/CocChad/blob/v2.0/lua/custom/chad/plugins.lua#L27

nvterm is disabled, because I use tmux as a wrapper.

If you fork from my configuration you can change all that by editing this file: https://github.com/martin-braun/CocChad/blob/v2.0/lua/custom/chad/specs/_stock.lua#L45 (highlighted treesitter line)

However, I advice you to not use my configuration, if you want to use NvChad as its intended. I kinda break out of their template to use coc.nvim which makes my life easier, but comes at the cost of having a node dependency and a lot of disabled plugins from NvChad.

@kyzsuukii
Copy link
Author

go it. thanks :)

@martin-braun martin-braun pinned this issue Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants