Add languagetool|

Signed-off-by: Tuan-Dat Tran <tuan-dat.tran@tudattr.dev>
This commit is contained in:
Tuan-Dat Tran
2024-10-31 21:14:02 +01:00
parent 87a60c4a1d
commit 9a4e68d900
6 changed files with 18 additions and 4 deletions

View File

@@ -1,3 +1,10 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
vim.api.nvim_create_autocmd({ "Filetype" }, {
pattern = { "tex" },
callback = function()
vim.cmd("LanguageToolSetUp")
end,
})

View File

@@ -6,3 +6,5 @@ local opt = vim.opt
opt.spelllang = { "en_us", "de_de" }
vim.api.nvim_set_option_value("colorcolumn", "79", {})
vim.g.languagetool_server_command = "/usr/bin/languagetool --http"