mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
nvim: moved stuff around.
This commit is contained in:
parent
300d300664
commit
0d7a5fab7b
22 changed files with 975 additions and 990 deletions
66
nvim/lua/user/plugins/ide/autocomplete.lua
Normal file
66
nvim/lua/user/plugins/ide/autocomplete.lua
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
local icons = require('user.icons')
|
||||
|
||||
return {
|
||||
'saghen/blink.cmp',
|
||||
lazy = false,
|
||||
version = "*",
|
||||
build = 'cargo build --release',
|
||||
dependencies = {
|
||||
{ "xzbdmw/colorful-menu.nvim" },
|
||||
{ 'L3MON4D3/LuaSnip', version = 'v2.*' },
|
||||
},
|
||||
opts = {
|
||||
keymap = {
|
||||
preset = "super-tab"
|
||||
},
|
||||
appearance = {
|
||||
nerd_font_variant = 'mono',
|
||||
kind_icons = icons.symbols
|
||||
},
|
||||
completion = {
|
||||
list = {
|
||||
selection = {
|
||||
preselect = function(ctx) return ctx.mode ~= 'cmdline' end,
|
||||
-- auto_insert = function(ctx) return ctx.mode ~= 'cmdline' end
|
||||
auto_insert = false
|
||||
}
|
||||
},
|
||||
menu = {
|
||||
min_width = 18,
|
||||
winblend = 10,
|
||||
draw = {
|
||||
columns = {
|
||||
{ "kind_icon" },
|
||||
{ "label", "source_name", gap = 1 },
|
||||
},
|
||||
components = {
|
||||
label = {
|
||||
text = function(ctx)
|
||||
return require("colorful-menu").blink_components_text(ctx)
|
||||
end,
|
||||
highlight = function(ctx)
|
||||
return require("colorful-menu").blink_components_highlight(ctx)
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
documentation = {
|
||||
auto_show = true,
|
||||
window = {
|
||||
winblend = 10
|
||||
}
|
||||
},
|
||||
ghost_text = {
|
||||
enabled = true,
|
||||
}
|
||||
},
|
||||
signature = {
|
||||
enabled = true,
|
||||
window = {
|
||||
scrollbar = false,
|
||||
winblend = 10,
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue