Skip to content

Commit

Permalink
More like original document, but still breaks cmp
Browse files Browse the repository at this point in the history
  • Loading branch information
utensil committed Oct 21, 2024
1 parent 96932ee commit ea27b85
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ lvim.plugins = {
{ "nvim-telescope/telescope.nvim" },
{ "nvim-treesitter/nvim-treesitter" },
{ "nvim-lua/plenary.nvim" },
{ "hrsh7th/nvim-cmp" },
-- { "hrsh7th/nvim-cmp" },
},
-- -- maybe could be even lazier with these, but not working, because `forester` filetype is not registered yet
-- ft = "tree",
Expand Down Expand Up @@ -474,11 +474,7 @@ lvim.plugins = {
lvim.colorscheme = "base16-railscasts"
lvim.builtin.treesitter.rainbow.enable = true

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

local cmp = require "cmp"

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

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

0 comments on commit ea27b85

Please sign in to comment.