my neovim configuration
1require("ptero.lsp.config") 2 3local utils = require("ptero/utils") 4local handlers = require("ptero.lsp.handlers") 5 6local lspconfig = utils.Load("lspconfig") 7local mason_lspconfig = utils.Load("mason-lspconfig") 8 9local opts = { 10 on_attach = handlers.on_attach, 11 capabilities = handlers.capabilities, 12} 13 14local servers = { 15 'gopls', 16 'tsserver', 17 'pyright', 18} 19 20mason_lspconfig.setup({ 21 ensure_installed = servers, 22 automatic_installation = true, 23}) 24 25mason_lspconfig.setup_handlers({ 26 function(server_name) 27 lspconfig[server_name].setup(opts) 28 end, 29})