Skip to content

icewind/ltex-client.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LTEX LS Client for NeoVim

Small plugin that adds handlers for code actions fired by LTEX Language Server:

  • Add to dictionary
  • Disable rule
  • Hide false positive

Installation

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"}

Configuration

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'
})

Commands

Command Description
:LTeXSetLanguage Sets the language for the current document
:LTexStatus Shows a floating window with a status from LTeX-ls

About

Adds code action handlers for ltex-ls like: addToDictionary, disableRule, hideFalsePositive

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published