nvim 0.12 wip
This commit is contained in:
31
.config/nvim/lua/plugins/blink.lua
Normal file
31
.config/nvim/lua/plugins/blink.lua
Normal file
@@ -0,0 +1,31 @@
|
||||
vim.pack.add({
|
||||
{
|
||||
src = "https://github.com/saghen/blink.cmp",
|
||||
version = vim.version.range("^1"),
|
||||
},
|
||||
})
|
||||
|
||||
-- Lazy load on first insert mode entry (may not necessary)
|
||||
local group = vim.api.nvim_create_augroup("BlinkCmpLazyLoad", { clear = true })
|
||||
|
||||
vim.api.nvim_create_autocmd("InsertEnter", {
|
||||
pattern = "*",
|
||||
group = group,
|
||||
once = true,
|
||||
callback = function()
|
||||
require("blink.cmp").setup({
|
||||
keymap = { preset = "super-tab" },
|
||||
appearance = {
|
||||
nerd_font_variant = "mono",
|
||||
use_nvim_cmp_as_default = true,
|
||||
},
|
||||
completion = {
|
||||
documentation = { auto_show = false },
|
||||
},
|
||||
sources = {
|
||||
default = { "lsp", "path", "snippets", "buffer" },
|
||||
},
|
||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
||||
})
|
||||
end,
|
||||
})
|
||||
Reference in New Issue
Block a user