Open piersolenski opened 2 years ago
This plugin doesn't do anything more than the default nvim-lspconfig config right now, I suggest you use that:
https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ltex
If you are using Linux and already have Java on your machine, you can copy my install, run with sudo
:
#!/bin/bash
BIN_INSTALL_DIR=/usr/local/bin
LTEXLS_LOCATION=valentjn/ltex-ls/releases/download/15.0.0/
LTEXLS_FILENAME=ltex-ls-15.0.0.tar.gz
LTEXLS_SHA=76bed42397cd52a05415e107cd1163c05e13f00fa2e8d4e6c841f7f7f0fd4a67d99474dd6f86aa4ebef5d46e4cd227310badc52bc1b2c055c5aa390a9ac706a4
# Call with arguments (${1} location,${2} filename,${3} sha)
download_verify() {
curl -LOf "https://github.com/${1}${2}"
echo "${3} ./${2}" | sha512sum --check
}
download_verify "$LTEXLS_LOCATION" "$LTEXLS_FILENAME" "$LTEXLS_SHA"
tar --no-same-owner -C $BIN_INSTALL_DIR/ -xf $LTEXLS_FILENAME --no-anchored 'bin' --strip=1
tar --no-same-owner -C $BIN_INSTALL_DIR/ -xf $LTEXLS_FILENAME --no-anchored 'lib' --strip=1
ln -s $BIN_INSTALL_DIR/bin/ltex-ls $BIN_INSTALL_DIR/ltex-ls
rm $LTEXLS_FILENAME
If that is not what you want, it might help you DIY. I hope so :) Bonus, here is my config:
-- ==================
-- ltex-ls
-- ==================
nvim_lsp.ltex.setup {
on_attach = on_attach,
settings = {
ltex = {
disabledRules = { ['en-US'] = { 'PROFANITY' } },
dictionary = {
['en-US'] = { 'perf', 'ci' },
},
},
},
}
When I run
:GrammarInstall
I get the following error when trying to start vim:Spawning language server with cmd: `/Users/piers/.local/share/nvim/lsp_servers/ltex/ltex-ls` failed with error message: EACCES: permission denied