diff --git a/modules/home-manager/vim.nix b/modules/home-manager/vim.nix index 7e50e98..944faf3 100644 --- a/modules/home-manager/vim.nix +++ b/modules/home-manager/vim.nix @@ -409,7 +409,11 @@ {name = "path";} {name = "buffer";} ]; - snippet = {expand = "luasnip";}; + snippet = { + expand = '' function(args) + require('luasnip').lsp_expand(args.body) + end''; + }; mappingPresets = ["insert"]; mapping = { "" = "cmp.mapping.complete()";