-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ltex-ls
language server code actions don't work
#1942
Comments
Maybe try
|
@anzhi0708 You were right it was not selecting it as a markdown file. With your suggested settings it works faster by parsing it as Markdown, but unfortunately the code actions still don't work. |
Hmm IIRC we should be merging the user language.toml with the default based on |
ltex-ls
language server code actions don't work, and there is a long startup timeltex-ls
language server code actions don't work
The code actions now work since an update, probably #2005 The 'add to dictionary' function does not yet work, but in Neovim this needed to be added with some extra code. |
Because |
My work around was writing a quick script called If Helix supported sending Anyways my ChatGPT generated script isn't particularly "fault tolerant" but does the job for how I have my #!/bin/bash
read -r word
toml_file="/path/to/languages.toml"
# Add word to dictionary using awk
awk -v word="$word" '/ltex\.dictionary/ && /en-US/ {gsub(/\]/, ", \"" word "\"]")} 1' "$toml_file" > tmpfile && mv tmpfile "$toml_file" |
Summary
I have added:
languages.toml
and the language server runs (very slowly, takes ages to get the feedback) and detects errors, but when I select a code action it says
no code actions available
.It works OK in Neovim:
The author of
ltex-ls
made some comments that you don't need to change any settings in a long discussion on the subject of adding it to Neovim: neovim/nvim-lspconfig#863 (comment)Reproduction Steps
add:
languages.toml
load any markdown file with spelling errors, wait a little while for the ltex-ls to analyse the code, place cursor over error and
space a
Helix log
~/.cache/helix/helix.log
Platform
Linux - Rocky Linux 8.5
Terminal Emulator
Kitty
Helix Version
helix 22.03 (d4e45fd)
The text was updated successfully, but these errors were encountered: