fix: lsp github issue template example (#22285)

This commit is contained in:
Kiyoon Kim
2023-02-16 18:54:52 +00:00
committed by GitHub
parent b5922bc6e6
commit 5688a9fb34

View File

@ -46,7 +46,7 @@ body:
pattern = pattern,
callback = function(args)
local match = vim.fs.find(root_markers, { path = args.file, upward = true })[1]
local root_dir = match and vim.fn.fnamemodify(match, ':p:h') or vim.NIL
local root_dir = match and vim.fn.fnamemodify(match, ':p:h') or nil
vim.lsp.start({
name = 'bugged-ls',
cmd = cmd,