Small plugin that adds handlers for code actions fired by LTEX Language Server:
- Add to dictionary
- Disable rule
- Hide false positive
First, you have to make sure LTEX Language Server is installed and configured. Please follow the instructions on the ltex-ls page. Please refer to my configuration for the example. Then, this plugin could be installed like this:
Using packer:
use("icewind/ltex-client.nvim")
Or lazy:
{"icewind/ltex-client.nvim"}
Somewhere in your configuration call the setup function.
require("ltex-client").setup()
Default location to store user dictionaries is:
${HOME}/.ltex/dictionaries
The plugin will create three files there: dictionary.json
, disabled_rules.json
, false_positives.json
.
If you want to change the location of dictionaries you can set it like this:
require("ltex-client").setup({
user_dictionaries_path = vim.env.HOME .. 'some/other/path'
})
Command | Description |
---|---|
:LTeXSetLanguage |
Sets the language for the current document |
:LTexStatus |
Shows a floating window with a status from LTeX-ls |