summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rw-r--r--nvim/lazy-lock.json6
-rw-r--r--nvim/lua/config/blink-cmp.lua25
-rw-r--r--nvim/lua/config/lazy.lua3
3 files changed, 31 insertions, 3 deletions
diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json
index ee238f9..60eeb51 100644
--- a/nvim/lazy-lock.json
+++ b/nvim/lazy-lock.json
@@ -1,11 +1,13 @@
{
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
- "fzf-lua": { "branch": "main", "commit": "f2968f3c3b96ad73365de90fad26756fc77bafd0" },
+ "blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
+ "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
+ "fzf-lua": { "branch": "main", "commit": "7839b7f1f6253e237cc9263eb238e681757e8f1d" },
"gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" },
"gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" },
"lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" },
"lazygit.nvim": { "branch": "main", "commit": "2305deed25bc61b866d5d39189e9105a45cf1cfb" },
- "nvim-lspconfig": { "branch": "master", "commit": "e5c61b02f33b5c6538be25b2696b33b4cc91e667" },
+ "nvim-lspconfig": { "branch": "master", "commit": "52a893217b2c12e215c6851bd8813b43204416cd" },
"nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" },
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-web-devicons": { "branch": "master", "commit": "b8221e42cf7287c4dcde81f232f58d7b947c210d" },
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 },