aboutsummaryrefslogtreecommitdiffstats
path: root/test/lspconfig_spec.lua
diff options
context:
space:
mode:
authorRaphael <glepnir@neovim.pro>2022-08-26 20:49:40 +0800
committerGitHub <noreply@github.com>2022-08-26 20:49:40 +0800
commit99e0dc9937b124dee7d8107185e804ff96466279 (patch)
tree7a404c016a7f6c42c1766394a68bedad85b5d826 /test/lspconfig_spec.lua
parentfeat: improve LspInfo (#2081) (diff)
downloadnvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.tar
nvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.tar.gz
nvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.tar.bz2
nvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.tar.lz
nvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.tar.xz
nvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.tar.zst
nvim-lspconfig-99e0dc9937b124dee7d8107185e804ff96466279.zip
fix: remove the config.commands (#2092)
* fix: remove the config.commands * fix: format by stylua and remove comamnds test * fix: remove commands from doc * fix: remove unused function
Diffstat (limited to 'test/lspconfig_spec.lua')
-rw-r--r--test/lspconfig_spec.lua35
1 files changed, 0 insertions, 35 deletions
diff --git a/test/lspconfig_spec.lua b/test/lspconfig_spec.lua
index f98568c1..7bee8ceb 100644
--- a/test/lspconfig_spec.lua
+++ b/test/lspconfig_spec.lua
@@ -213,41 +213,6 @@ describe('lspconfig', function()
]])
end)
end)
-
- describe('user commands', function()
- it('should translate command definition to nvim_create_user_command options', function()
- eq(
- {
- nargs = '*',
- complete = 'custom,v:lua.some_global',
- },
- exec_lua [[
- local util = require("lspconfig.util")
- return util._parse_user_command_options({
- function () end,
- "-nargs=* -complete=custom,v:lua.some_global"
- })
- ]]
- )
-
- eq(
- {
- desc = 'My awesome description.',
- nargs = '*',
- complete = 'custom,v:lua.another_global',
- },
- exec_lua [[
- local util = require("lspconfig.util")
- return util._parse_user_command_options({
- function () end,
- ["-nargs"] = "*",
- "-complete=custom,v:lua.another_global",
- description = "My awesome description."
- })
- ]]
- )
- end)
- end)
end)
describe('config', function()