···11local ok, lsp_installer = pcall(require, "nvim-lsp-installer")
22if not ok then return end
3344+-- Install loved servers
55+local servers = {"sumneko_lua", "gopls", "tailwindcss", "tsserver"}
66+for _, name in pairs(servers) do
77+ local server_is_found, server = lsp_installer.get_server(name)
88+ if server_is_found and not server:is_installed() then
99+ server:install()
1010+ end
1111+end
1212+1313+-- TODO: turn of formatting in htmlls & cssls
1414+415-- Register a handler that will be called for all installed servers.
516-- Or register handlers on specific server instances.
617lsp_installer.on_server_ready(function(server)
···21322233 if server.name == "tsserver" then
2334 local tsserver_opts = require("user.lsp.settings.tsserver")
2424- opts = vim.tbl_deep_extend("force", tsserver_opts, opts)
3535+ opts = vim.tbl_deep_extend("force", opts, tsserver_opts)
2536 end
26373838+ -- TODO: Remove diagnosticls settings
2739 if server.name == "diagnosticls" then
2840 local diagnostics_opts = require("user.lsp.settings.diagnosticls")
2941 opts = vim.tbl_deep_extend("force", diagnostics_opts, opts)
···7474 use "neovim/nvim-lspconfig" -- enable LSP
7575 use "williamboman/nvim-lsp-installer" -- simple to use language server installer
7676 use "jose-elias-alvarez/null-ls.nvim" -- for formatters and linters
7777+ use "jose-elias-alvarez/nvim-lsp-ts-utils" -- typescript dev utils
77787879 -- Telescope
7980 use "nvim-telescope/telescope.nvim"