2021-10-27 20:37:42 +02:00
|
|
|
local lsp_installer = require("nvim-lsp-installer")
|
2022-04-09 19:38:57 +02:00
|
|
|
require("lsp-format").setup {}
|
|
|
|
|
2021-10-27 20:37:42 +02:00
|
|
|
|
2022-03-14 19:21:46 +01:00
|
|
|
lsp_installer.on_server_ready(
|
|
|
|
function(server)
|
2022-04-09 19:38:57 +02:00
|
|
|
local opts = {
|
|
|
|
on_attach = require "lsp-format".on_attach
|
|
|
|
}
|
|
|
|
|
2021-10-27 20:37:42 +02:00
|
|
|
|
2022-03-14 19:21:46 +01:00
|
|
|
-- This setup() function is exactly the same as lspconfig's setup function (:help lspconfig-quickstart)
|
2022-04-09 19:38:57 +02:00
|
|
|
server:setup(opts)
|
2022-03-14 19:21:46 +01:00
|
|
|
end
|
|
|
|
)
|