mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-15 14:32:05 +08:00
fix gopls without setting ale_go_gopls_init_options (#5059)
This commit is contained in:
@@ -8,6 +8,14 @@ module.start = function(config)
|
||||
config.init_options[true] = nil
|
||||
end
|
||||
|
||||
-- ensure init_options uses empty_dict if empty
|
||||
if type(config.init_options) == "table"
|
||||
and next(config.init_options) == nil
|
||||
and getmetatable(config.init_options) == nil
|
||||
then
|
||||
config.init_options = vim.empty_dict()
|
||||
end
|
||||
|
||||
-- If configuring LSP via a socket connection, then generate the cmd
|
||||
-- using vim.lsp.rpc.connect(), as defined in Neovim documentation.
|
||||
if config.host then
|
||||
|
||||
Reference in New Issue
Block a user