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, ensure_installed = lsp_servers,
automatic_installation = true automatic_installation = true
}) })
local capabilities = require('cmp_nvim_lsp').default_capabilities() local capabilities = require('cmp_nvim_lsp').default_capabilities()
-- Loop through all servers to set them up
for _, lsp_server in pairs(lsp_servers) do for _, lsp_server in pairs(lsp_servers) do
require("lspconfig")[lsp_server].setup({ local server_config = {
on_attach = on_attach, on_attach = on_attach,
capabilities = capabilities capabilities = capabilities,
}) }
require("lspconfig")[lsp_server].setup(server_config)
end end
end end
} }

View File

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