diff --git a/lua/fzf-lua/path.lua b/lua/fzf-lua/path.lua index 05b025a..a7cc036 100644 --- a/lua/fzf-lua/path.lua +++ b/lua/fzf-lua/path.lua @@ -5,7 +5,7 @@ M.separator = function() end M.starts_with_separator = function(path) - return path:match("^[^"..M.separator().."]+") + return path:find(M.separator()) == 1 end M.tail = (function() diff --git a/lua/fzf-lua/providers/lsp.lua b/lua/fzf-lua/providers/lsp.lua index 7d3763d..1d252bd 100644 --- a/lua/fzf-lua/providers/lsp.lua +++ b/lua/fzf-lua/providers/lsp.lua @@ -71,10 +71,8 @@ local function diagnostics_handler(opts, cb, _, entry) icon = utils.ansi_codes[severity.color or "dark_grey"](icon) end if opts.file_icons or opts.git_icons then - -- entry = icon .. utils.nbsp .. utils.nbsp .. entry entry = icon .. utils.nbsp .. utils.nbsp .. entry else - -- entry = icon .. utils.nbsp .. " " .. entry entry = icon .. utils.nbsp .. " " .. entry end end