Skip to content

Commit

Permalink
feat(uiua): change root_dir
Browse files Browse the repository at this point in the history
It now includes `main.ua` and `.fmt.ua`
  • Loading branch information
ckafi committed Oct 5, 2023
1 parent b38744a commit dcc2a2d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lua/lspconfig/server_configurations/uiua.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ return {
default_config = {
cmd = { 'uiua', 'lsp' },
filetypes = { 'uiua' },
root_dir = util.find_git_ancestor,
root_dir = function(fname)
return util.root_pattern('main.ua', '.fmt.ua')(fname) or util.find_git_ancestor(fname)
end,
},
docs = {
description = [[
Expand All @@ -17,7 +19,13 @@ The Uiua interpreter can be installed with `cargo install uiua`
default_config = {
cmd = { 'uiua', 'lsp' },
filetypes = { 'uiua' },
root_dir = [[util.find_git_ancestor]],
root_dir = [[
root_pattern(
'main.ua',
'fmt.ua',
'.git'
)
]],
},
},
}

0 comments on commit dcc2a2d

Please sign in to comment.