From c153ec62a140b76cbcaad9133fcd67b493f571d2 Mon Sep 17 00:00:00 2001 From: William Boman Date: Sun, 31 Oct 2021 18:52:52 +0100 Subject: respect autostart setting (#228) Fixes #227. --- lua/nvim-lsp-installer/server.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lua/nvim-lsp-installer/server.lua') diff --git a/lua/nvim-lsp-installer/server.lua b/lua/nvim-lsp-installer/server.lua index 3cdcf192..4b267e4d 100644 --- a/lua/nvim-lsp-installer/server.lua +++ b/lua/nvim-lsp-installer/server.lua @@ -75,7 +75,9 @@ end ---@param opts table @The lspconfig server configuration. function M.Server:setup(opts) self:setup_lsp(opts) - self:attach_buffers() + if not (opts.autostart == false) then + self:attach_buffers() + end end ---Attaches this server to all current open buffers with a 'filetype' that matches the server's configured filetypes. -- cgit v1.2.3-70-g09d2