We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c75393a commit a96afbcCopy full SHA for a96afbc
lua/lspsettings/loader.lua
@@ -79,9 +79,16 @@ function JsonLoader:list_server_configs(server_name)
79
local result = {}
80
local paths = self.config.paths
81
for _, path in ipairs(paths) do
82
- path = vim.fs.joinpath(path, server_name .. ".json")
83
- if vim.fn.filereadable(path) == 1 then
84
- table.insert(result, path)
+ local path1 = vim.fs.joinpath(path, server_name .. ".json")
+ if vim.fn.filereadable(path1) == 1 then
+ table.insert(result, path1)
85
+ end
86
+
87
+ if self.config.json5 then
88
+ local path2 = vim.fs.joinpath(path, server_name .. ".json5")
89
+ if vim.fn.filereadable(path2) == 1 then
90
+ table.insert(result, path2)
91
92
end
93
94
0 commit comments