summaryrefslogtreecommitdiff
path: root/nvim/lua/config
diff options
context:
space:
mode:
Diffstat (limited to 'nvim/lua/config')
-rw-r--r--nvim/lua/config/blink-cmp.lua25
-rw-r--r--nvim/lua/config/lazy.lua3
2 files changed, 27 insertions, 1 deletions
diff --git a/nvim/lua/config/blink-cmp.lua b/nvim/lua/config/blink-cmp.lua
new file mode 100644
index 0000000..cca782c
--- /dev/null
+++ b/nvim/lua/config/blink-cmp.lua
@@ -0,0 +1,25 @@
+return {
+ 'saghen/blink.cmp',
+ dependencies = { 'rafamadriz/friendly-snippets' },
+
+ version = '1.*',
+
+ ---@module 'blink.cmp'
+ ---@type blink.cmp.Config
+ opts = {
+ keymap = { preset = 'default' },
+
+ appearance = {
+ nerd_font_variant = 'mono'
+ },
+
+ completion = { documentation = { auto_show = false } },
+
+ sources = {
+ default = { 'lsp', 'path', 'snippets', 'buffer' },
+ },
+
+ fuzzy = { implementation = "prefer_rust_with_warning" }
+ },
+ opts_extend = { "sources.default" }
+}
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
index b252fa3..913bacb 100644
--- a/nvim/lua/config/lazy.lua
+++ b/nvim/lua/config/lazy.lua
@@ -58,7 +58,8 @@ require("lazy").setup({
opts = {},
},
{ "prettier/vim-prettier" },
- require("config.lazygit")
+ require("config.lazygit"),
+ require("config.blink-cmp"),
},
install = { colorscheme = { "gruvbox" } },
checker = { enabled = true },