mirror of
https://github.com/iofq/nvim.nix.git
synced 2026-01-23 08:55:16 -06:00
use nightly neovim, plugin cleanup
This commit is contained in:
parent
91b6830d9e
commit
df59c1b380
8 changed files with 281 additions and 78 deletions
|
|
@ -3,28 +3,9 @@ return {
|
|||
'saghen/blink.cmp',
|
||||
event = "VeryLazy",
|
||||
dependencies = {
|
||||
'saghen/blink.compat',
|
||||
'rafamadriz/friendly-snippets',
|
||||
'giuxtaposition/blink-cmp-copilot',
|
||||
'mikavilpas/blink-ripgrep.nvim'
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('blink.cmp').setup(opts)
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'BlinkCmpMenuOpen',
|
||||
callback = function()
|
||||
require("copilot.suggestion").dismiss()
|
||||
vim.b.copilot_suggestion_hidden = true
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'BlinkCmpMenuClose',
|
||||
callback = function()
|
||||
vim.b.copilot_suggestion_hidden = false
|
||||
end,
|
||||
})
|
||||
end,
|
||||
opts = {
|
||||
sources = {
|
||||
default = {
|
||||
|
|
@ -33,24 +14,22 @@ return {
|
|||
"snippets",
|
||||
"buffer",
|
||||
"ripgrep",
|
||||
"copilot"
|
||||
},
|
||||
providers = {
|
||||
ripgrep = {
|
||||
module = "blink-ripgrep",
|
||||
name = "rg",
|
||||
score_offset = -10,
|
||||
},
|
||||
copilot = {
|
||||
name = "copilot",
|
||||
module = "blink-cmp-copilot",
|
||||
score_offset = 100,
|
||||
async = true,
|
||||
},
|
||||
}
|
||||
},
|
||||
keymap = {
|
||||
["<C-space>"] = { "show", "select_and_accept" }
|
||||
cmdline = {
|
||||
completion = {
|
||||
menu = {
|
||||
auto_show = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
completion = {
|
||||
documentation = {
|
||||
|
|
@ -63,14 +42,10 @@ return {
|
|||
auto_insert = true,
|
||||
}
|
||||
},
|
||||
accept = {
|
||||
auto_brackets = {
|
||||
enabled = true
|
||||
}
|
||||
ghost_text = {
|
||||
enabled = true,
|
||||
},
|
||||
menu = {
|
||||
-- auto show in cmdline
|
||||
auto_show = true,
|
||||
draw = {
|
||||
treesitter = { "lsp" },
|
||||
columns = {
|
||||
|
|
@ -80,12 +55,9 @@ return {
|
|||
}
|
||||
},
|
||||
trigger = {
|
||||
show_on_keyword = false,
|
||||
show_on_keyword = true,
|
||||
}
|
||||
},
|
||||
appearance = {
|
||||
use_nvim_cmp_as_default = true,
|
||||
},
|
||||
signature = { enabled = true }
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue