mirror of
https://github.com/kristoferssolo/SoloVim.git
synced 2025-10-21 20:10:41 +00:00
conficonfigured texlab
This commit is contained in:
parent
24480e24a8
commit
bb27b5f5e5
@ -15,15 +15,17 @@ end
|
|||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
"bashls",
|
"bashls",
|
||||||
"cssls",
|
|
||||||
"clangd",
|
"clangd",
|
||||||
"cmake",
|
"cmake",
|
||||||
|
"cssls",
|
||||||
"emmet_ls",
|
"emmet_ls",
|
||||||
"html",
|
"html",
|
||||||
"jsonls",
|
|
||||||
"jedi_language_server",
|
"jedi_language_server",
|
||||||
"rust_analyzer",
|
"jsonls",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
|
"phpactor",
|
||||||
|
"rust_analyzer",
|
||||||
|
"sqls",
|
||||||
"taplo",
|
"taplo",
|
||||||
"texlab",
|
"texlab",
|
||||||
"tsserver",
|
"tsserver",
|
||||||
@ -73,6 +75,16 @@ for _, server in pairs(servers) do
|
|||||||
goto continue
|
goto continue
|
||||||
end
|
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)
|
lspconfig[server].setup(opts)
|
||||||
::continue::
|
::continue::
|
||||||
end
|
end
|
||||||
|
|||||||
@ -21,10 +21,13 @@ mason_null_ls.setup({
|
|||||||
"html_lint",
|
"html_lint",
|
||||||
"isort",
|
"isort",
|
||||||
"luacheck",
|
"luacheck",
|
||||||
"markdownlint",
|
|
||||||
"misspell",
|
"misspell",
|
||||||
"mypy",
|
"mypy",
|
||||||
|
"phpcbf",
|
||||||
|
"phpcs",
|
||||||
"prettier",
|
"prettier",
|
||||||
|
"rustfmt",
|
||||||
|
"sql-formatter",
|
||||||
"shfmt",
|
"shfmt",
|
||||||
"yamlfmt",
|
"yamlfmt",
|
||||||
},
|
},
|
||||||
@ -49,9 +52,9 @@ null_ls.setup({
|
|||||||
"vim",
|
"vim",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
diagnostics.markdownlint,
|
|
||||||
diagnostics.misspell,
|
diagnostics.misspell,
|
||||||
diagnostics.mypy,
|
diagnostics.mypy,
|
||||||
|
-- diagnostics.phpcs,
|
||||||
formatting.autopep8,
|
formatting.autopep8,
|
||||||
formatting.beautysh,
|
formatting.beautysh,
|
||||||
formatting.clang_format,
|
formatting.clang_format,
|
||||||
@ -71,6 +74,8 @@ null_ls.setup({
|
|||||||
"strict",
|
"strict",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
formatting.phpcbf,
|
||||||
|
formatting.rustfmt,
|
||||||
formatting.shfmt.with({
|
formatting.shfmt.with({
|
||||||
extra_filetypes = {
|
extra_filetypes = {
|
||||||
"bash",
|
"bash",
|
||||||
@ -80,6 +85,7 @@ null_ls.setup({
|
|||||||
"zsh",
|
"zsh",
|
||||||
},
|
},
|
||||||
}),
|
}),
|
||||||
|
formatting.sql_formatter,
|
||||||
formatting.stylua,
|
formatting.stylua,
|
||||||
formatting.yamlfmt,
|
formatting.yamlfmt,
|
||||||
},
|
},
|
||||||
|
|||||||
27
lua/user/mason/settings/texlab.lua
Normal file
27
lua/user/mason/settings/texlab.lua
Normal 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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue
Block a user