From a32b412a850a6438ff0bd204ced840ece646a5da Mon Sep 17 00:00:00 2001 From: Eduardo Cueto-Mendoza Date: Fri, 21 Jul 2023 08:58:44 +0100 Subject: [PATCH] New LSP for LaTeX --- after/plugin/lsp.lua | 1 + lua/eddie/packer.lua | 43 +++++++++++++++++++++++++++---------------- 2 files changed, 28 insertions(+), 16 deletions(-) diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index c4bdf0a..5da1535 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -10,6 +10,7 @@ lsp.ensure_installed({ 'bashls', 'julials', 'lua_ls', + 'ltex', 'pylsp', 'texlab', 'zls' diff --git a/lua/eddie/packer.lua b/lua/eddie/packer.lua index d8448a7..b14222e 100644 --- a/lua/eddie/packer.lua +++ b/lua/eddie/packer.lua @@ -38,27 +38,38 @@ return require('packer').startup(function(use) -- Language Servers use { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v2.x', - requires = { - -- LSP Support - {'neovim/nvim-lspconfig'}, -- Required - { -- Optional - 'williamboman/mason.nvim', - run = function() - pcall(vim.cmd, 'MasonUpdate') - end, - }, - {'williamboman/mason-lspconfig.nvim'}, -- Optional + 'VonHeikemen/lsp-zero.nvim', + branch = 'v2.x', + requires = { + -- LSP Support + {'neovim/nvim-lspconfig'}, -- Required + { -- Optional + 'williamboman/mason.nvim', + run = function() + pcall(vim.cmd, 'MasonUpdate') + end, + }, + {'williamboman/mason-lspconfig.nvim'}, -- Optional - -- Autocompletion - {'hrsh7th/nvim-cmp'}, -- Required - {'hrsh7th/cmp-nvim-lsp'}, -- Required - {'L3MON4D3/LuaSnip'}, -- Required + -- Autocompletion + {'hrsh7th/nvim-cmp'}, -- Required + {'hrsh7th/cmp-nvim-lsp'}, -- Required + {'L3MON4D3/LuaSnip'}, -- Required } } -- :FixWhitespace 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)