Skip to content

Commit

Permalink
feat: move off of nvim-cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
amaanq committed Dec 13, 2024
1 parent 0ab2949 commit 06cded8
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 16 deletions.
10 changes: 10 additions & 0 deletions lua/plugins/editor.lua
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,14 @@ return {
},

{ "fei6409/log-highlight.nvim", event = "BufRead *.log", opts = {} },

{
"blink.cmp",
optional = true,
opts = {
sources = {
cmdline = {},
},
},
},
}
38 changes: 22 additions & 16 deletions lua/plugins/extras/lang/nodejs.lua
Original file line number Diff line number Diff line change
@@ -1,27 +1,33 @@
return {

-- Extend auto completion
{
"hrsh7th/nvim-cmp",
"vuki656/package-info.nvim",
event = "BufRead package.json",
opts = {},
},

{
"saghen/blink.cmp",
optional = true,
dependencies = {
{
"vuki656/package-info.nvim",
event = { "BufRead package.json" },
config = true,
},
"saghen/blink.compat",
{
"David-Kunz/cmp-npm",
event = { "BufRead package.json" },
config = true,
event = "BufRead package.json",
opts = {},
},
},
opts = {
sources = {
default = { "npm" },
providers = {
npm = {
name = "npm",
module = "blink.compat.source",
},
},
},
},
---@param opts cmp.ConfigSchema
opts = function(_, opts)
local cmp = require("cmp")
opts.sources = cmp.config.sources(vim.list_extend(opts.sources, {
{ name = "npm", keyword_length = 3, priority = 750 },
}))
end,
},

-- Add JavaScript & friends to treesitter
Expand Down

0 comments on commit 06cded8

Please sign in to comment.