We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b631452 commit 2f2739bCopy full SHA for 2f2739b
1 file changed
lua/phoenix/init.lua
@@ -694,7 +694,6 @@ function server.create()
694
695
function srv.completion(params, callback)
696
local position = params.position
697
- -- local lines = vim.split(root[filename], '\n')
698
local line = vim.api.nvim_get_current_line()
699
if #line == 0 then
700
schedule_result(callback)
@@ -719,9 +718,7 @@ function server.create()
719
718
return
720
end
721
722
- local expanded_path = vim.fn.has('nvim-0.10') and vim.fn.expand(dir_part)
723
- or vim.fs.normalize(vim.fs.abspath(dir_part))
724
-
+ local expanded_path = vim.fs.normalize(vim.fs.abspath(dir_part))
725
scan_dir_async(expanded_path, function(results)
726
local items = {}
727
local current_input = prefix:match('[^/]*$') or ''
0 commit comments