aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
-rw-r--r--lua/nvim-lsp-installer/server.lua4
1 files changed, 3 insertions, 1 deletions
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.