diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-01-28 15:47:52 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-01-28 15:47:52 +0200 |
| commit | 842a44a7440110839d3de56fa33dd05f6c7655e0 (patch) | |
| tree | 66e60c7afb201d7ebcf611fe6ce7a8d4d316d8a8 /lua/plugins/treesitter.lua | |
| parent | 46a341402c26156cebeb13329df4bd9db2fa44b2 (diff) | |
| download | dotfiles-842a44a7440110839d3de56fa33dd05f6c7655e0.tar.gz dotfiles-842a44a7440110839d3de56fa33dd05f6c7655e0.zip | |
Fixed autocmd highlight issue by 'highlight = { enable = false, },'
Diffstat (limited to 'lua/plugins/treesitter.lua')
| -rw-r--r-- | lua/plugins/treesitter.lua | 29 |
1 files changed, 13 insertions, 16 deletions
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index b081ca3..7f481d3 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,16 +1,6 @@ -local status, treesitter = pcall(require, "nvim-treesitter.configs") -if (not status) then return end +require'nvim-treesitter.configs'.setup { + -- A list of parser names, or "all" (the four listed parsers should always be installed) -treesitter.setup { - highlight = { - enable = true, - disable = {}, - }, - indent = { - enable = true, - disable = {}, - --disable = { "python", "css" } - }, ensure_installed = { "c", "bash", @@ -19,13 +9,20 @@ treesitter.setup { }, --ensure_installed = "all", -- one of "all" or a list of languages --ignore_install = { "" }, -- List of parsers to ignore installing + sync_install = false, + auto_install = true, + highlight = { + enable = false, + disable = {}, + }, + indent = { + enable = true, + disable = {}, + --disable = { "python", "css" } + }, autotag = { enable = true, }, - efactor = { - highlight_definitions = { enable = true }, - highlight_current_scope = { enable = true } - } } --vim.opt.foldmethod = "expr" --vim.opt.foldexpr = "nvim_treesitter#foldexpr()" |
