Skip to content
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

fix: fallback to utf-8 encoding if missing #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mawkler
Copy link

@mawkler mawkler commented Feb 5, 2024

When using this plugin together with clear-action.nvim, the file encoding doesn't get set properly when adding a word to Vim's dictionary. I'm guessing that this is because ltex-utils.nvim tries to get the clear-action.nvim's floating code-action window encoding (nil), instead of the buffer that ltex-ls is in, causing the error attempt to concatenate a nil value.

My fix is to default to "utf-8" if the encoding is nil.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant