Skip to content

Commit

Permalink
feat: normalize search paths
Browse files Browse the repository at this point in the history
Closes #835
  • Loading branch information
Saghen committed Jan 3, 2025
1 parent ae3bf0d commit 8a64275
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/blink/cmp/sources/snippets/registry.lua
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ local default_config = {
function registry.new(config)
local self = setmetatable({}, { __index = registry })
self.config = vim.tbl_deep_extend('force', default_config, config)
self.config.search_paths = vim.tbl_map(function(path) return vim.fs.normalize(path) end, self.config.search_paths)

if self.config.friendly_snippets then
for _, path in ipairs(vim.api.nvim_list_runtime_paths()) do
Expand Down

0 comments on commit 8a64275

Please sign in to comment.