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)