From 5938a465dbbf910ca0609a1db9ac13d52616af7e Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Sat, 4 Apr 2026 21:18:45 +0200 Subject: nvim: refactor plugins config; add tree-sitter with proper config this time --- nvim/lua/config/plugins/blink-cmp.lua | 42 +++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 nvim/lua/config/plugins/blink-cmp.lua (limited to 'nvim/lua/config/plugins/blink-cmp.lua') diff --git a/nvim/lua/config/plugins/blink-cmp.lua b/nvim/lua/config/plugins/blink-cmp.lua new file mode 100644 index 0000000..c9c0447 --- /dev/null +++ b/nvim/lua/config/plugins/blink-cmp.lua @@ -0,0 +1,42 @@ +return { + 'saghen/blink.cmp', + dependencies = { 'rafamadriz/friendly-snippets' }, + + version = '1.*', + + ---@module 'blink.cmp' + ---@type blink.cmp.Config + opts = { + keymap = { + preset = 'default', + -- - to navigate, to accept + [''] = { 'select_next', 'fallback' }, + [''] = { 'select_prev', 'fallback' }, + [''] = { 'select_and_accept', 'fallback' }, + [''] = { 'select_and_accept', 'fallback' }, + }, + + appearance = { + nerd_font_variant = 'mono' + }, + + completion = { documentation = { auto_show = true } }, + + sources = { + default = { 'lsp', 'path', 'snippets', 'buffer' }, + providers = { + snippets = { + opts = { + friendly_snippets = true, + extended_filetypes = { + typescript = { 'javascript' }, + } + } + } + } + }, + + fuzzy = { implementation = "prefer_rust_with_warning" }, + }, + opts_extend = { "sources.default" } +} -- cgit v1.3.1