conficonfigured texlab

This commit is contained in:
Kristofers Solo 2023-03-16 00:10:41 +02:00
parent 24480e24a8
commit bb27b5f5e5
3 changed files with 50 additions and 5 deletions

View File

@ -15,15 +15,17 @@ end
local servers = {
"bashls",
"cssls",
"clangd",
"cmake",
"cssls",
"emmet_ls",
"html",
"jsonls",
"jedi_language_server",
"rust_analyzer",
"jsonls",
"lua_ls",
"phpactor",
"rust_analyzer",
"sqls",
"taplo",
"texlab",
"tsserver",
@ -73,6 +75,16 @@ for _, server in pairs(servers) do
goto continue
end
if server == "texlab" then
local texlab_opts = require("user.mason.settings.texlab")
opts = vim.tbl_deep_extend("force", texlab_opts, opts)
end
if server == "sqls" then
local sqls_opts = require("user.mason.settings.sqls")
opts = vim.tbl_deep_extend("force", sqls_opts, opts)
end
lspconfig[server].setup(opts)
::continue::
end

View File

@ -21,10 +21,13 @@ mason_null_ls.setup({
"html_lint",
"isort",
"luacheck",
"markdownlint",
"misspell",
"mypy",
"phpcbf",
"phpcs",
"prettier",
"rustfmt",
"sql-formatter",
"shfmt",
"yamlfmt",
},
@ -49,9 +52,9 @@ null_ls.setup({
"vim",
},
}),
diagnostics.markdownlint,
diagnostics.misspell,
diagnostics.mypy,
-- diagnostics.phpcs,
formatting.autopep8,
formatting.beautysh,
formatting.clang_format,
@ -71,6 +74,8 @@ null_ls.setup({
"strict",
},
}),
formatting.phpcbf,
formatting.rustfmt,
formatting.shfmt.with({
extra_filetypes = {
"bash",
@ -80,6 +85,7 @@ null_ls.setup({
"zsh",
},
}),
formatting.sql_formatter,
formatting.stylua,
formatting.yamlfmt,
},

View File

@ -0,0 +1,27 @@
return {
settings = {
texlab = {
auxDirectory = ".",
bibtexFormatter = "texlab",
build = {
args = { "-pdf", "-interaction=nonstopmode", "-synctex=1", "%f" },
executable = "xelatex",
forwardSearchAfter = false,
onSave = false,
},
chktex = {
onEdit = false,
onOpenAndSave = false,
},
diagnosticsDelay = 0,
formatterLineLength = 120,
forwardSearch = {
args = {},
},
latexFormatter = "latexindent",
latexindent = {
modifyLineBreaks = false,
},
},
},
}