Skip to content

Commit

Permalink
Try add forester cmp to LazyVim, confirm not working
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 25, 2024
1 parent e18be03 commit 35c8724
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lazyvim-cmp.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
return {
{
"hrsh7th/nvim-cmp",
dependencies = { "hrsh7th/cmp-emoji" },
dependencies = { "hrsh7th/cmp-emoji", "kentookura/forester.nvim" },
---@param opts cmp.ConfigSchema
opts = function(_, opts)
table.insert(opts.sources, { name = "emoji" })
Expand Down
6 changes: 6 additions & 0 deletions lazyvim-init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,9 @@ dofile(current_dir .. "nvim-init.lua")
vim.schedule(function()
vim.cmd "colorscheme base16-railscasts"
end)

local cmp = require "cmp"
local foresterCompletionSource = require "forester.completion"

cmp.register_source("forester", foresterCompletionSource)
-- cmp.setup.filetype("forester", { sources = { { name = "forester", dup = 0 } } })

0 comments on commit 35c8724

Please sign in to comment.