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

Some way to change buffer's language. #287

Open
FalcoGer opened this issue Nov 17, 2023 · 0 comments
Open

Some way to change buffer's language. #287

FalcoGer opened this issue Nov 17, 2023 · 0 comments
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature

Comments

@FalcoGer
Copy link

Is your feature request related to a problem? Please describe.
I am German, but I often write English text. So I often want to switch the language between the two. It would be great to do this per buffer. But the only way I know how to switch the language is to open :CocConfig and change ltex.language, which is cumbersome since it's a global setting. It also is prone to foregeting to set back to the default.

Describe the solution you'd like
It would be nice if there were a command or b:variable that can be used to change the language of the current buffer. This should also set vim's spelllang option, which is used by various other plugins, such as vim-airline, to display the current buffer's language.

Describe alternatives you've considered
ltex could read vim's spelllang option, which is per buffer, and use that to determine the language. A special value for ltex.language, like vim-spelllang should be added.

Additional context
N/A

@FalcoGer FalcoGer added the 1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature label Nov 17, 2023
@FalcoGer FalcoGer changed the title Command to change buffer's language. Some way to change buffer's language. Nov 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1-feature-request ✨ Issue type: Request for a desirable, nice-to-have feature
Projects
None yet
Development

No branches or pull requests

1 participant