Skip to content

Commit

Permalink
fix: expand paths
Browse files Browse the repository at this point in the history
close #63
  • Loading branch information
uga-rosa committed Feb 2, 2024
1 parent edbd263 commit afa18f3
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lua/cmp_dictionary/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,12 @@ M.options = default
function M.setup(opts)
opts = opts or {}
validator(opts)
if opts.paths then
opts.paths = vim.tbl_map(function(path)
return vim.fn.expand(path)
end, opts.paths)
end

M.options = vim.tbl_deep_extend("force", {}, M.options, opts)

if opts.paths then
Expand Down

0 comments on commit afa18f3

Please sign in to comment.