mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
fix: lsp github issue template example (#22285)
This commit is contained in:
2
.github/ISSUE_TEMPLATE/lsp_bug_report.yml
vendored
2
.github/ISSUE_TEMPLATE/lsp_bug_report.yml
vendored
@@ -46,7 +46,7 @@ body:
|
|||||||
pattern = pattern,
|
pattern = pattern,
|
||||||
callback = function(args)
|
callback = function(args)
|
||||||
local match = vim.fs.find(root_markers, { path = args.file, upward = true })[1]
|
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({
|
vim.lsp.start({
|
||||||
name = 'bugged-ls',
|
name = 'bugged-ls',
|
||||||
cmd = cmd,
|
cmd = cmd,
|
||||||
|
Reference in New Issue
Block a user