From 6ef34511b16958b20146f9597d315f8ff6188ee5 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 3 Nov 2024 19:00:51 +0100 Subject: [PATCH] treesitter: remove redundant code --- modules/plugins/treesitter/config.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/modules/plugins/treesitter/config.nix b/modules/plugins/treesitter/config.nix index e863d04..566a716 100644 --- a/modules/plugins/treesitter/config.nix +++ b/modules/plugins/treesitter/config.nix @@ -11,7 +11,6 @@ inherit (lib.nvim.dag) entryBefore entryAfter; cfg = config.vim.treesitter; - usingNvimCmp = config.vim.autocomplete.nvim-cmp.enable; self = import ./treesitter.nix {inherit pkgs lib;}; mappingDefinitions = self.options.vim.treesitter.mappings; @@ -21,17 +20,6 @@ in { vim = { startPlugins = ["nvim-treesitter"]; - lazy.plugins = { - cmp-treesitter = mkIf usingNvimCmp { - package = "cmp-treesitter"; - after = '' - local path = vim.fn.globpath(vim.o.packpath, 'pack/*/opt/cmp-treesitter') - require("rtp_nvim").source_after_plugin_dir(path) - ''; - }; - nvim-cmp.after = mkIf usingNvimCmp "require('lz.n').trigger_load('cmp-treesitter')"; - }; - autocomplete.nvim-cmp = { sources = {treesitter = "[Treesitter]";}; sourcePlugins = ["cmp-treesitter"];