Skip to content

ltextra.nvim is a plugin used to make easy the configuration and interation with ltex LSP.

License

Notifications You must be signed in to change notification settings

charlesneimog/ltextra.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ltextra.nvim

ltextra.nvim is a plugin used to make easy the configuration and interation with ltex. For example, to configure ltex.enabledRules (see the Docs) you can use:

config = function()
  require("ltextra").setup({
    enabledRules = {
      "en-GB": {"PASSIVE_VOICE", "OXFORD_SPELLING_NOUNS"},
    },
  })
end,

ltextra.nvim also adds some functions to use with keymaps.

  • require('ltextra.actions').add_word(): Add the word under cursor to the dictionary.
  • require('ltextra.actions').disable_rule(): Add the word under cursor to the dictionary.
return {
  	"charlesneimog/ltextra.nvim",
  	dir = "~/Documents/Git/ltextra.nvim",
	keys = {
		{
			"aw",
			function()
				require("ltextra.actions").add_word()
			end,
			mode = "n",
			desc = "Add word to dictionary",
		},
	},
	event = "BufRead *.tex",
	config = function()
		require("ltextra").setup({
			language = "pt-BR",
	})
	end,
}

About

ltextra.nvim is a plugin used to make easy the configuration and interation with ltex LSP.

Topics

Resources

License

Stars

Watchers

Forks

Languages