diff options
| author | triethyl <triethylammonium@pm.me> | 2025-08-17 21:34:19 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-08-17 21:34:19 -0400 |
| commit | 1a8ccc7e4e413aad19a70e2291513270d3c8e2aa (patch) | |
| tree | 7eabb55c43957be60c456a21b9d72e5fe2f9dce9 /pkgs/custom-neovim/config/lua/plugins | |
| parent | c4e44dca7ec3bf0c89c1730db5544ce1a708826c (diff) | |
neovim: working on completion
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/completion.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/completion.lua b/pkgs/custom-neovim/config/lua/plugins/completion.lua new file mode 100644 index 0000000..c238ebe --- /dev/null +++ b/pkgs/custom-neovim/config/lua/plugins/completion.lua @@ -0,0 +1,25 @@ +return { + { + -- when in doubt, this plugin is the cause of cpu issues. + "blink.cmp", + enabled = true, + lazy = true, + event = { + "InsertEnter", + "CmdlineEnter", + }, + 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' }, + sources = { + default = { 'lsp', 'path', 'snippets', 'buffer' }, + }, + } + end, + }, + test = f +} |
