~vigoux/complementree.nvim

32fa49dbba48509922ff6e74b3b6a9566773bf80 — Thomas Vigouroux 1 year, 10 months ago a5b7e9d
fix: correctly listen to typing errors
M lua/complementree/comparators.lua => lua/complementree/comparators.lua +1 -1
@@ 7,7 7,7 @@ local Comparators = {}



local Comparator = {}


local function mk_comparator(func)
   return function(msource)

M lua/complementree/filters.lua => lua/complementree/filters.lua +1 -1
@@ 7,7 7,7 @@ local Filters = {}



local Filter = {}



local function mk_filter(func)

M lua/complementree/init.lua => lua/complementree/init.lua +1 -1
@@ 9,7 9,7 @@ local M = {}



local UserConfig = {}


local user_config = {
   default = defaults.dummy,

M lua/complementree/sources.lua => lua/complementree/sources.lua +8 -8
@@ 1,17 1,13 @@
local LspOptions = {}



local LuasnipOptions = {}




local CtagsOptions = {}



local FilepathOptions = {}





@@ 20,7 16,11 @@ local FilepathOptions = {}



local TreesitterOptions = {}










@@ 78,10 78,10 @@ end


function Sources.luasnip_matches(opts)
   opts = options.get({
   opts = options.get(opts, {
      exclude_defaults = false,
      filetype = nil,
   }, opts)
   })

   local lsnip_present, luasnip = pcall(require, "luasnip")
   if not lsnip_present then


@@ 126,7 126,7 @@ function Sources.luasnip_matches(opts)
   end)
end

local LspExtraInfo = {}





M teal/complementree/sources.tl => teal/complementree/sources.tl +2 -2
@@ 78,10 78,10 @@ end
-- filetype: forces the filetype as a source
-- exclude_default: don't include the default snippets
function Sources.luasnip_matches(opts: LuasnipOptions): Source
  opts = options.get({
  opts = options.get(opts, {
    exclude_defaults = false,
    filetype = nil,
  }, opts)
  })

  local lsnip_present,luasnip = pcall(require, "luasnip")
  if not lsnip_present then