diff options
author | Soispha <soispha@vhack.eu> | 2023-08-27 20:53:32 +0200 |
---|---|---|
committer | Soispha <soispha@vhack.eu> | 2023-08-27 20:53:32 +0200 |
commit | df580aaf4d427da607654972db63f7a78d7250db (patch) | |
tree | 83531c12b8a5ddcb1396cbe43cbc6e1e5277433c /hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix | |
parent | Fix(hm/conf/nvim/plugins/femaco): Actually bind key to function (diff) | |
download | nixos-config-df580aaf4d427da607654972db63f7a78d7250db.zip |
Feat(hm/conf/nvim/plugins/neorg): Init
Diffstat (limited to 'hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix')
-rw-r--r-- | hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix b/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix index 2fd35272..ceb09182 100644 --- a/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix +++ b/hm/soispha/conf/nvim/plugins/nvim-cmp/default.nix @@ -1,7 +1,12 @@ -{...}: { - programs.nixvim.plugins.nvim-cmp = { +{config, ...}: { + programs.nixvim.plugins.nvim-cmp = let + neorg_source = + if config.programs.nixvim.plugins.neorg.modules."core.completion".config.engine == "nvim-cmp" + then [{name = "neorg";}] + else []; + in { /* - TODO:; integrate this: + TODO: integrate this: ```lua enabled = { function() @@ -39,9 +44,11 @@ snippet.expand = "luasnip"; - sources = [ - {name = "nvim_lsp";} - {name = "luasnip";} - ]; + sources = + [ + {name = "nvim_lsp";} + {name = "luasnip";} + ] + ++ neorg_source; }; } |