fix: resolve nvim treesitter errors
This commit is contained in:
@@ -2,12 +2,12 @@ local ts = require("treesj")
|
||||
local vim = vim
|
||||
local keymap = vim.keymap
|
||||
local opt = vim.opt
|
||||
local treesitter_configs = require("nvim-treesitter.configs")
|
||||
local treesitter = require("nvim-treesitter")
|
||||
|
||||
local nixCatsUtils = require("nixCatsUtils")
|
||||
local is_nix = nixCatsUtils.isNixCats
|
||||
|
||||
treesitter_configs.setup({
|
||||
treesitter.setup({
|
||||
-- Basically added what I might need from the docs
|
||||
-- <https://github.com/nvim-treesitter/nvim-treesitter?tab=readme-ov-file#supported-languages>
|
||||
ensure_installed = is_nix and {} or {
|
||||
|
||||
17
dots/.config/nvim/flake.lock
generated
17
dots/.config/nvim/flake.lock
generated
@@ -103,22 +103,6 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugins-crazy-node-movement": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1693654676,
|
||||
"narHash": "sha256-hQcQEp39zFN2zphMfcr97yRVcuHhBsSkzKO7XNloDpQ=",
|
||||
"owner": "theHamsta",
|
||||
"repo": "crazy-node-movement",
|
||||
"rev": "d5cf01cc44c5715501d3d6fe439af7c8b7fa5df2",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "theHamsta",
|
||||
"repo": "crazy-node-movement",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"plugins-helm-ls-nvim": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
@@ -221,7 +205,6 @@
|
||||
"nixCats": "nixCats",
|
||||
"nixpkgs": "nixpkgs_2",
|
||||
"plugins-beancount-nvim": "plugins-beancount-nvim",
|
||||
"plugins-crazy-node-movement": "plugins-crazy-node-movement",
|
||||
"plugins-helm-ls-nvim": "plugins-helm-ls-nvim",
|
||||
"plugins-m-taskwarrior-d-nvim": "plugins-m-taskwarrior-d-nvim",
|
||||
"plugins-mcphub-nvim": "plugins-mcphub-nvim",
|
||||
|
||||
@@ -12,10 +12,6 @@
|
||||
url = "github:huantrinh1802/m_taskwarrior_d.nvim";
|
||||
flake = false;
|
||||
};
|
||||
plugins-crazy-node-movement = {
|
||||
url = "github:theHamsta/crazy-node-movement";
|
||||
flake = false;
|
||||
};
|
||||
plugins-beancount-nvim = {
|
||||
url = "github:polarmutex/beancount.nvim";
|
||||
flake = false;
|
||||
@@ -137,10 +133,9 @@
|
||||
pkgs.neovimPlugins.shipwright-nvim
|
||||
lush-nvim
|
||||
zenbones-nvim
|
||||
pkgs.neovimPlugins.crazy-node-movement
|
||||
nvim-treesitter.withAllGrammars
|
||||
# nvim-treesitter-textobjects
|
||||
# nvim-treesitter-context
|
||||
nvim-treesitter-textobjects
|
||||
nvim-treesitter-context
|
||||
nvim-ts-context-commentstring
|
||||
treesj
|
||||
sniprun
|
||||
|
||||
Reference in New Issue
Block a user