latex is working

This commit is contained in:
Dmitri 2025-05-16 12:49:54 +02:00
parent 2a01afa9e4
commit 3c71975851
Signed by: kanopo
GPG Key ID: 759ADD40E3132AC7
2 changed files with 20 additions and 24 deletions

View File

@ -62,12 +62,18 @@ return {
ensure_installed = lsp_servers,
automatic_installation = true
})
local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- Loop through all servers to set them up
for _, lsp_server in pairs(lsp_servers) do
require("lspconfig")[lsp_server].setup({
local server_config = {
on_attach = on_attach,
capabilities = capabilities
})
capabilities = capabilities,
}
require("lspconfig")[lsp_server].setup(server_config)
end
end
}

View File

@ -1,25 +1,15 @@
return {
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function()
local configs = require("nvim-treesitter.configs")
configs.setup({
auto_install = true,
highlight = {
enable = true,
disable = function(lang, buf)
local max_filesize = 1024 * 1024 * 10 -- 10MB
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
if ok and stats and stats.size > max_filesize then
return true
end
end,
},
indent = {
enable = true
},
})
end
event = { "VeryLazy" },
lazy = vim.fn.argc(-1) == 0, -- load treesitter early when opening a file from the cmdline
cmd = { "TSUpdateSync", "TSUpdate", "TSInstall" },
opts = {
highlight = { enable = true },
indent = { enable = true },
auto_install = { enable = true }
},
config = function(_, opts)
require("nvim-treesitter.configs").setup(opts)
end,
}