diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-30 18:57:20 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-30 18:57:20 -0400 |
| commit | ed3969bd55524c11e5f48fb7147e46310117ef02 (patch) | |
| tree | 8769177253c33925138b2cb29d3dd9931c45420b /pkgs/custom-neovim/config/lua/plugins/completion.lua | |
| parent | a6e2d28ba490818357dc5d9063f2afc5c7cda997 (diff) | |
neovim: bunch of stuff
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins/completion.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/completion.lua | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/completion.lua b/pkgs/custom-neovim/config/lua/plugins/completion.lua index 0c6d285..3228662 100644 --- a/pkgs/custom-neovim/config/lua/plugins/completion.lua +++ b/pkgs/custom-neovim/config/lua/plugins/completion.lua @@ -1,25 +1,35 @@ return { { - -- when in doubt, this plugin is the cause of cpu issues. "blink.cmp", - -- enabled = false, lazy = true, event = { "InsertEnter", "CmdlineEnter", }, + before = function() + require("lz.n").trigger_load("luasnip") + end, after = function() - -- require("luasnip.loaders.from_vscode").lazy_load() - -- vim.cmd.packadd("luasnip") - -- vim.cmd.packadd("friendly-snippets") - require("blink.cmp").setup { - -- snippets = { preset = 'luasnip' }, + snippets = { preset = 'luasnip' }, sources = { default = { 'lsp', 'path', 'snippets', 'buffer' }, }, + cmdline = { + keymap = { preset = 'inherit' }, + completion = { menu = { auto_show = true } }, + }, } - end, }, + { + "luasnip", + lazy = true, + before = function () + vim.cmd.packadd("friendly-snippets") + end, + after = function () + require("luasnip.loaders.from_vscode").lazy_load() + end, + } } |
