Skip to content

Commit

Permalink
fix(taplo): simplify root detection now that single file mode is supp…
Browse files Browse the repository at this point in the history
…orted
  • Loading branch information
mehalter committed Aug 14, 2024
1 parent a67bc39 commit c0c3fb6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lua/lspconfig/server_configurations/taplo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ return {
default_config = {
cmd = { 'taplo', 'lsp', 'stdio' },
filetypes = { 'toml' },
root_dir = function(fname)
return util.root_pattern '*.toml'(fname) or util.find_git_ancestor(fname)
end,
root_dir = util.find_git_ancestor,
single_file_support = true,
},
docs = {
Expand Down

0 comments on commit c0c3fb6

Please sign in to comment.