diff options
Diffstat (limited to 'lua/lspconfig/configs/jsonls.lua')
| -rw-r--r-- | lua/lspconfig/configs/jsonls.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lua/lspconfig/configs/jsonls.lua b/lua/lspconfig/configs/jsonls.lua index 17b7e2b6..ca0e57ea 100644 --- a/lua/lspconfig/configs/jsonls.lua +++ b/lua/lspconfig/configs/jsonls.lua @@ -1,5 +1,3 @@ -local util = require 'lspconfig.util' - return { default_config = { cmd = { 'vscode-json-language-server', '--stdio' }, @@ -7,7 +5,9 @@ return { init_options = { provideFormatter = true, }, - root_dir = util.find_git_ancestor, + root_dir = function(fname) + return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1]) + end, single_file_support = true, }, docs = { |
