diff options
Diffstat (limited to 'home/nvim/plugins')
| -rw-r--r-- | home/nvim/plugins/treesitter.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/home/nvim/plugins/treesitter.lua b/home/nvim/plugins/treesitter.lua index fcc0048..314e4a3 100644 --- a/home/nvim/plugins/treesitter.lua +++ b/home/nvim/plugins/treesitter.lua @@ -1,30 +1,30 @@ local function disable(lang, buf) local max_filesize = 100 * 1024 -- 100 KB - local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf)) + local ok, stats = pcall(vim.uv.fs_stat, vim.api.nvim_buf_get_name(buf)) if ok and stats and stats.size > max_filesize then return true end end require("nvim-treesitter").setup({ + auto_install = false, ensure_installed = {}, - sync_install = false, ignore_install = {}, modules = {}, - auto_install = false, + sync_install = false, highlight = { - enable = true, - disable = disable, additional_vim_regex_highlighting = false, + disable = disable, + enable = true, }, indent = { enable = true, disable = { "rust", "lua", "python", "golang", "nix", "json", "html", "javascript" } }, incremental_selection = { enable = true, keymaps = { init_selection = "<leader>vv", + node_decremental = "_", node_incremental = "+", scope_incremental = false, - node_decremental = "_", }, }, textobjects = { |
