.dotfiles/configs/nvim/lua/lspinstaller-conf.lua

17 lines
503 B
Lua
Raw Normal View History

2021-10-27 20:37:42 +02:00
local lsp_installer = require("nvim-lsp-installer")
2022-03-14 19:21:46 +01:00
lsp_installer.on_server_ready(
function(server)
local opts = {}
2021-10-27 20:37:42 +02:00
2022-03-14 19:21:46 +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
2022-03-14 19:21:46 +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 ]]
end
)