Skip to content

Commit

Permalink
feat(swift_mesonls): add meson.options as a root marker
Browse files Browse the repository at this point in the history
This is the preferred filename for defining options for a few versions.
meson_options.txt is legacy, but will continue to stick around.
  • Loading branch information
tristan957 committed Jan 30, 2024
1 parent 0219062 commit 66f4a06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/lspconfig/server_configurations/swift_mesonls.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ return {
default_config = {
cmd = { 'Swift-MesonLSP', '--lsp' },
filetypes = { 'meson' },
root_dir = util.root_pattern('meson_options.txt', '.git'),
root_dir = util.root_pattern('meson_options.txt', 'meson.options', '.git'),
},
docs = {
description = [[
Expand All @@ -13,7 +13,7 @@ https://github.com/JCWasmx86/Swift-MesonLSP
Meson language server written in Swift
]],
default_config = {
root_dir = [[util.root_pattern("meson_options.txt", ".git")]],
root_dir = [[util.root_pattern("meson_options.txt", "meson.options", ".git")]],
},
},
}

0 comments on commit 66f4a06

Please sign in to comment.