mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-12-15 00:21:02 +00:00
cmp: install sourcess via cmp.sourcePlugins
This commit is contained in:
parent
0397d0722f
commit
eff15d27b4
7 changed files with 68 additions and 84 deletions
|
|
@ -5,7 +5,7 @@
|
|||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkIf mkMerge;
|
||||
inherit (lib.lists) optional optionals;
|
||||
inherit (lib.lists) optionals;
|
||||
inherit (lib.nvim.binds) mkSetBinding addDescriptionsToMappings;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.dag) entryBefore entryAfter;
|
||||
|
|
@ -32,7 +32,11 @@ in {
|
|||
nvim-cmp.after = mkIf usingNvimCmp "require('lz.n').trigger_load('cmp-treesitter')";
|
||||
};
|
||||
|
||||
autocomplete.nvim-cmp.sources = {treesitter = "[Treesitter]";};
|
||||
autocomplete.nvim-cmp = {
|
||||
sources = {treesitter = "[Treesitter]";};
|
||||
sourcePlugins = ["cmp-treesitter"];
|
||||
};
|
||||
|
||||
treesitter.grammars = optionals cfg.addDefaultGrammars cfg.defaultGrammars;
|
||||
|
||||
maps = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue