Skip to content

Commit

Permalink
fix: cmd vim.lsp.rpc.connect by user (neovim#2213)
Browse files Browse the repository at this point in the history
when user what to set cmd to vim.rpc.connect, but it is a function
  • Loading branch information
Decodetalkers authored Oct 23, 2022
1 parent ee2e8c6 commit 0b3e5ce
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lua/lspconfig/configs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ function configs.__newindex(t, config_name, config_def)
local lsp_group = vim.api.nvim_create_augroup('lspconfig', { clear = false })

validate {
cmd = { user_config.cmd, 't', true },
cmd = {
user_config.cmd,
{ 'f', 't' },
true,
},
root_dir = { user_config.root_dir, 'f', true },
filetypes = { user_config.filetype, 't', true },
on_new_config = { user_config.on_new_config, 'f', true },
Expand Down

0 comments on commit 0b3e5ce

Please sign in to comment.