New LSP for LaTeX

This commit is contained in:
Eduardo Cueto-Mendoza 2023-07-21 08:58:44 +01:00
parent f61bb02897
commit a32b412a85
2 changed files with 28 additions and 16 deletions

View File

@ -10,6 +10,7 @@ lsp.ensure_installed({
'bashls', 'bashls',
'julials', 'julials',
'lua_ls', 'lua_ls',
'ltex',
'pylsp', 'pylsp',
'texlab', 'texlab',
'zls' 'zls'

View File

@ -38,27 +38,38 @@ return require('packer').startup(function(use)
-- Language Servers -- Language Servers
use { use {
'VonHeikemen/lsp-zero.nvim', 'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x', branch = 'v2.x',
requires = { requires = {
-- LSP Support -- LSP Support
{'neovim/nvim-lspconfig'}, -- Required {'neovim/nvim-lspconfig'}, -- Required
{ -- Optional { -- Optional
'williamboman/mason.nvim', 'williamboman/mason.nvim',
run = function() run = function()
pcall(vim.cmd, 'MasonUpdate') pcall(vim.cmd, 'MasonUpdate')
end, end,
}, },
{'williamboman/mason-lspconfig.nvim'}, -- Optional {'williamboman/mason-lspconfig.nvim'}, -- Optional
-- Autocompletion -- Autocompletion
{'hrsh7th/nvim-cmp'}, -- Required {'hrsh7th/nvim-cmp'}, -- Required
{'hrsh7th/cmp-nvim-lsp'}, -- Required {'hrsh7th/cmp-nvim-lsp'}, -- Required
{'L3MON4D3/LuaSnip'}, -- Required {'L3MON4D3/LuaSnip'}, -- Required
} }
} }
-- :FixWhitespace -- :FixWhitespace
use "bronson/vim-trailing-whitespace" use "bronson/vim-trailing-whitespace"
-- Parenthesis complete
use({
"kylechui/nvim-surround",
tag = "*", -- Use for stability; omit to use `main` branch for the latest features
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
})
end) end)