feat: nvim config

This commit is contained in:
Rasyidan Akbar F. 2025-10-28 15:59:39 +07:00
commit 03507560de
23 changed files with 685 additions and 328 deletions

View file

@ -0,0 +1,44 @@
return {
-- Modern completion engine with built-in fuzzy matching
{
"saghen/blink.cmp",
dependencies = {
"rafamadriz/friendly-snippets",
},
version = "1.*",
event = "InsertEnter",
opts = {
-- Keymap preset options: 'default' | 'super-tab' | 'enter'
keymap = { preset = "default" },
appearance = {
-- Use mono nerd font variant
nerd_font_variant = "mono",
},
-- Default completion sources
sources = {
default = { "lsp", "path", "snippets", "buffer" },
},
completion = {
documentation = {
auto_show = true,
auto_show_delay_ms = 500,
},
menu = {
draw = {
columns = { { "label", "label_description", gap = 1 }, { "kind_icon", "kind" } },
},
},
},
-- Fuzzy matching implementation
-- Options: "prefer_rust_with_warning" | "rust" | "lua"
fuzzy = {
implementation = "prefer_rust_with_warning",
},
},
opts_extend = { "sources.default" },
},
}