mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-14 16:11:03 +00:00
fixup! cmp: actually lazy load source
This commit is contained in:
parent
4b703964e1
commit
2f502f1790
2 changed files with 2 additions and 3 deletions
|
|
@ -51,7 +51,6 @@ in {
|
|||
'';
|
||||
|
||||
event = ["InsertEnter" "CmdlineEnter"];
|
||||
lazy = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
in {
|
||||
config = mkIf cfg.enable {
|
||||
vim = {
|
||||
startPlugins = ["nvim-treesitter"] ++ optional usingNvimCmp "cmp-treesitter";
|
||||
startPlugins = ["nvim-treesitter"];
|
||||
|
||||
lazy.plugins = {
|
||||
cmp-treesitter = mkIf usingNvimCmp {
|
||||
|
|
@ -29,7 +29,7 @@ in {
|
|||
require("rtp_nvim").source_after_plugin_dir(path)
|
||||
'';
|
||||
};
|
||||
nvim-cmp.after = mkIf cfg.cmp.enable "require('lz.n').trigger_load('cmp-treesitter')";
|
||||
nvim-cmp.after = mkIf usingNvimCmp "require('lz.n').trigger_load('cmp-treesitter')";
|
||||
};
|
||||
|
||||
autocomplete.nvim-cmp.sources = {treesitter = "[Treesitter]";};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue