Skip to content
This repository was archived by the owner on Oct 13, 2021. It is now read-only.

Commit 0732741

Browse files
committed
fix: small issue in path completion
1 parent 254dfd5 commit 0732741

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/source/path.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ M.triggerFunction = function(_, _, _, manager)
7575
if keyword ~= nil then
7676
local expanded_keyword = vim.fn.glob(keyword)
7777
local home = vim.fn.expand("$HOME")
78-
if expanded_keyword ~= nil and string.find(expanded_keyword, '%.') == nil then
78+
if expanded_keyword == '/' or string.find(expanded_keyword, home) ~= nil then
7979
path = expanded_keyword
8080
else
8181
path = vim.fn.expand('%:p:h')

0 commit comments

Comments
 (0)