fix: don't autoinstall treesitter grammars when using 'nixCats'
This commit is contained in:
@@ -4,6 +4,9 @@ local keymap = vim.keymap
|
|||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
local treesitter_configs = require("nvim-treesitter.configs")
|
local treesitter_configs = require("nvim-treesitter.configs")
|
||||||
|
|
||||||
|
local nixCatsUtils = require("nixCatsUtils")
|
||||||
|
local is_nix = nixCatsUtils.isNixCats
|
||||||
|
|
||||||
treesitter_configs.setup({
|
treesitter_configs.setup({
|
||||||
-- Basically added what I might need from the docs
|
-- Basically added what I might need from the docs
|
||||||
-- <https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#supported-languages>
|
-- <https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#supported-languages>
|
||||||
@@ -86,7 +89,7 @@ treesitter_configs.setup({
|
|||||||
enable = true,
|
enable = true,
|
||||||
},
|
},
|
||||||
sync_install = false,
|
sync_install = false,
|
||||||
auto_install = true,
|
auto_install = not is_nix,
|
||||||
ignore_install = {},
|
ignore_install = {},
|
||||||
modules = {},
|
modules = {},
|
||||||
textobjects = {
|
textobjects = {
|
||||||
|
|||||||
Reference in New Issue
Block a user