vigoux / ltex-ls.nvim

Enhanced integration of ltex-ls for neovim
BSD 2-Clause "Simplified" License
53 stars 7 forks source link

fix: register command hander with vim.lsp.commands #7

Open tomtomjhj opened 1 month ago

tomtomjhj commented 1 month ago

Problem: The commands option for setup function means different things in lspconfig and 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.

Fixes #5