From f154103082eeedd5892594f62cfae777e7357694 Mon Sep 17 00:00:00 2001 From: Gaiety Date: Thu, 21 May 2026 19:39:48 -0600 Subject: [PATCH] completion for neovim --- mise.toml | 1 + nvim/init.lua | 2 ++ nvim/lua/completion.lua | 11 +++++++++++ nvim/lua/theme.lua | 1 - nvim/nvim-pack-lock.json | 12 ++++++++++++ 5 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 nvim/lua/completion.lua diff --git a/mise.toml b/mise.toml index 2a0ee01..21f425c 100644 --- a/mise.toml +++ b/mise.toml @@ -3,5 +3,6 @@ bat = "latest" fzf = "latest" neovim = "latest" +rust = "latest" zellij = "latest" zoxide = "latest" diff --git a/nvim/init.lua b/nvim/init.lua index c9b167d..6bf2e4e 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -7,6 +7,8 @@ require('theme') require('statusline') require('buffers') +require('completion') + require('tree') require('undo') require('telescope') diff --git a/nvim/lua/completion.lua b/nvim/lua/completion.lua new file mode 100644 index 0000000..b86b9da --- /dev/null +++ b/nvim/lua/completion.lua @@ -0,0 +1,11 @@ +vim.pack.add({ + 'https://github.com/saghen/blink.lib', + 'https://github.com/rafamadriz/friendly-snippets', + 'https://github.com/saghen/blink.cmp' +}) + +local cmp = require('blink.cmp') +cmp.build():wait(60000) +cmp.setup({ + keymap = { preset = 'super-tab' } +}) diff --git a/nvim/lua/theme.lua b/nvim/lua/theme.lua index 887808c..39f678f 100644 --- a/nvim/lua/theme.lua +++ b/nvim/lua/theme.lua @@ -2,7 +2,6 @@ vim.pack.add({ 'https://github.com/rose-pine/neovim' }) --- hi => require('rose-pine').setup({ highlight_groups = { Comment = { italic = true } diff --git a/nvim/nvim-pack-lock.json b/nvim/nvim-pack-lock.json index 3e64a15..e0e6abd 100644 --- a/nvim/nvim-pack-lock.json +++ b/nvim/nvim-pack-lock.json @@ -12,6 +12,18 @@ "rev": "539d73def39c9172b4d4d769f14090e08f37b29d", "src": "https://github.com/romgrk/barbar.nvim" }, + "blink.cmp": { + "rev": "35e3923a09ff3db150ceff80004befcbbfa071a0", + "src": "https://github.com/saghen/blink.cmp" + }, + "blink.lib": { + "rev": "f29d8bac6549bc1e7d699c83f680823d7def98bd", + "src": "https://github.com/saghen/blink.lib" + }, + "friendly-snippets": { + "rev": "6cd7280adead7f586db6fccbd15d2cac7e2188b9", + "src": "https://github.com/rafamadriz/friendly-snippets" + }, "gitsigns.nvim": { "rev": "4ed47e8c4c66c921dc1d6643977e0526e1f44396", "src": "https://github.com/lewis6991/gitsigns.nvim"