Open tomtomjhj opened 1 month ago
Problem: The commands option for setup function means different things in lspconfig and vim.lsp.start.
commands
setup
vim.lsp.start
ltex-ls.nvim intends the latter. So setup breaks when lspconfig is used.
Solution: Use vim.lsp.commands to register command handlers.
vim.lsp.commands
Fixes #5
Problem: The
commands
option forsetup
function means different things in lspconfig andvim.lsp.start
.vim.lsp.start
: LSP client-side command handlersltex-ls.nvim intends the latter. So setup breaks when lspconfig is used.
Solution: Use
vim.lsp.commands
to register command handlers.Fixes #5