AutoYADM commit: 2024-11-19 16:30:03
This commit is contained in:
parent
2833c80156
commit
bfcc83c832
1 changed files with 15 additions and 9 deletions
|
@ -1,21 +1,27 @@
|
||||||
|
local extraOpts = {
|
||||||
|
load_langs = {
|
||||||
|
"en",
|
||||||
|
"en-US",
|
||||||
|
"en-CA",
|
||||||
|
},
|
||||||
|
path = vim.fn.expand("~") .. "/.local/share/ltex",
|
||||||
|
log_level = "warn",
|
||||||
|
}
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"barreiroleo/ltex_extra.nvim",
|
"barreiroleo/ltex_extra.nvim",
|
||||||
opts = {
|
dependencies = { "neovim/nvim-lspconfig" },
|
||||||
load_langs = {
|
|
||||||
"en",
|
|
||||||
"en-US",
|
|
||||||
"en-CA",
|
|
||||||
},
|
|
||||||
path = vim.fn.expand("~") .. "/.local/share/ltex",
|
|
||||||
log_level = "warn",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
opts = {
|
opts = {
|
||||||
servers = {
|
servers = {
|
||||||
ltex = {
|
ltex = {
|
||||||
|
on_attach = {
|
||||||
|
function(client, bufnr)
|
||||||
|
require("ltex_extra").setup(extraOpts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
settings = {
|
settings = {
|
||||||
ltex = {
|
ltex = {
|
||||||
language = "en",
|
language = "en",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue