2021-10-27 20:37:42 +02:00
|
|
|
local lsp_installer = require("nvim-lsp-installer")
|
|
|
|
|
|
|
|
lsp_installer.on_server_ready(function(server)
|
2021-11-17 14:04:03 +01:00
|
|
|
local opts = {}
|
2021-10-27 20:37:42 +02:00
|
|
|
|
2021-11-17 14:04:03 +01:00
|
|
|
-- (optional) Customize the options passed to the server
|
|
|
|
-- if server.name == "tsserver" then
|
|
|
|
-- opts.root_dir = function() ... end
|
|
|
|
-- end
|
2021-10-27 20:37:42 +02:00
|
|
|
|
2021-11-17 14:04:03 +01:00
|
|
|
-- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart)
|
|
|
|
server:setup(opts)
|
|
|
|
vim.cmd [[ do User LspAttachBuffers ]]
|
2021-10-27 20:37:42 +02:00
|
|
|
end)
|