all repos — dotfiles @ 5ae5e84ba036d5f1e505a4e6067b2b76c4d7ce60

linux dotfiles

nvim: update treesitter config
Prithu Goswami pg@prithu.dev
Sun, 11 Sep 2022 09:48:36 +0530
commit

5ae5e84ba036d5f1e505a4e6067b2b76c4d7ce60

parent

448af1c8bd196aba7c5a28db782b1994ef54c0fa

1 files changed, 19 insertions(+), 19 deletions(-)

jump to
M config/nvim/init.luaconfig/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 ([[