Skip to content

Commit

Permalink
blink: use luasnip preset
Browse files Browse the repository at this point in the history
  • Loading branch information
horriblename committed Jan 11, 2025
1 parent 1106944 commit e5717e0
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions modules/plugins/completion/blink-cmp/config.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
config,
...
}: let
inherit (lib.modules) mkIf mkDefault;
inherit (lib.modules) mkIf;
inherit (lib.strings) optionalString;
inherit (lib.generators) mkLuaInline;
inherit (lib.nvim.lua) toLuaObject;
Expand Down Expand Up @@ -55,20 +55,7 @@ in {
autocompleteCfg.nvim-cmp.sources;
};
snippets = mkIf config.vim.snippets.luasnip.enable {
expand = mkLuaInline ''
function(snippet)
return require("luasnip").lsp_expand(snippet)
end
'';
active = mkLuaInline ''
function(filter)
if filter and filter.direction then
return require('luasnip').jumpable(filter.direction)
end
return require('luasnip').in_snippet()
end
'';
jump = mkLuaInline "function(direction) require('luasnip').jump(direction) end";
preset = "luasnip";
};

keymap = {
Expand Down

0 comments on commit e5717e0

Please sign in to comment.