From 1a8ccc7e4e413aad19a70e2291513270d3c8e2aa Mon Sep 17 00:00:00 2001 From: triethyl Date: Sun, 17 Aug 2025 21:34:19 -0400 Subject: neovim: working on completion --- .../config/lua/plugins/completion.lua | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 pkgs/custom-neovim/config/lua/plugins/completion.lua (limited to 'pkgs/custom-neovim/config/lua/plugins/completion.lua') 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 +} -- cgit v1.2.3