Skip to content

Commit

Permalink
add blink.cmp (wip) 🚧
Browse files Browse the repository at this point in the history
  • Loading branch information
scottmckendry committed Oct 11, 2024
1 parent 7b279f2 commit 52a8138
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 118 deletions.
25 changes: 25 additions & 0 deletions nvim/lua/plugins/blinkcmp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
return {
"saghen/blink.cmp",
-- dev = true,
lazy = false,
dependencies = "rafamadriz/friendly-snippets",
build = "cargo build --release",
config = function()
require("blink.cmp").setup({
keymap = {
accept = "<C-y>",
select_next = "<C-n>",
},
windows = {
autocomplete = { border = "rounded", draw = "reversed" },
documentation = { border = "rounded", auto_show = true },
signature_help = { border = "rounded" },
},
fuzzy = {
use_frecency = false,
use_proximity = false,
sorts = {},
},
})
end,
}
3 changes: 2 additions & 1 deletion nvim/lua/plugins/copilot-chat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ return {
},
},
config = function()
require("CopilotChat.integrations.cmp").setup()
-- TODO: add blink.cmp integration when/if it's available
-- require("CopilotChat.integrations.cmp").setup()
vim.api.nvim_create_autocmd("BufEnter", {
pattern = "copilot-chat",
callback = function()
Expand Down
1 change: 0 additions & 1 deletion nvim/lua/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ return {
"Bilal2453/luvit-meta",
"williamboman/mason.nvim",
"williamboman/mason-lspconfig.nvim",
"hrsh7th/cmp-nvim-lsp",
"smiteshp/nvim-navic",
},
config = function()
Expand Down
115 changes: 0 additions & 115 deletions nvim/lua/plugins/nvim-cmp.lua

This file was deleted.

3 changes: 2 additions & 1 deletion nvim/lua/plugins/obsidian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ return {
},
opts = {
attachments = { img_folder = obsidian_path .. "/Files" },
completion = { nvim_cmp = true },
-- TODO: add blink.cmp integration when/if it's available
-- completion = { nvim_cmp = true },
disable_frontmatter = true,
new_notes_location = "notes_subdir",
notes_subdir = "Zettelkasten",
Expand Down

0 comments on commit 52a8138

Please sign in to comment.