nvim: update treesitter config
Prithu Goswami pg@prithu.dev
Sun, 11 Sep 2022 09:48:36 +0530
1 files changed,
19 insertions(+),
19 deletions(-)
jump to
M
config/nvim/init.lua
→
config/nvim/init.lua
@@ -83,26 +83,26 @@ }
} require('telescope').load_extension('fzf') -require'nvim-treesitter.configs'.setup { - ensure_installed = { "python", "hcl", "json", "go", "lua", "javascript", "typescript", "html", "css", "c", "cpp", "rust" }, - sync_install = false, - auto_install = true, - -- ignore_install = { "javascript" }, - highlight = { - enable = true, - -- disable = { "c", "rust" }, +-- require'nvim-treesitter.configs'.setup { +-- ensure_installed = { "python", "hcl", "json", "go", "lua", "javascript", "typescript", "html", "css", "c", "cpp", "rust" }, +-- sync_install = false, +-- auto_install = true, +-- -- ignore_install = { "javascript" }, +-- highlight = { +-- enable = true, +-- -- disable = { "c", "rust" }, - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = true, - }, - indent = { - enable = false, - disable = {"hcl"} - } -} +-- -- Setting this to true will run `:h syntax` and tree-sitter at the same time. +-- -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). +-- -- Using this option may slow down your editor, and you may see some duplicate highlights. +-- -- Instead of true it can also be a list of languages +-- additional_vim_regex_highlighting = true, +-- }, +-- indent = { +-- enable = false, +-- disable = {"hcl", "python"} +-- } +-- } -- TODO move to seperate autocmd file vim.cmd ([[