diff options
| author | William Boman <william@redwill.se> | 2021-10-31 18:52:52 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-31 18:52:52 +0100 |
| commit | c153ec62a140b76cbcaad9133fcd67b493f571d2 (patch) | |
| tree | ed9eccf6249527f924cb4dfa1c440bd026b13444 /lua/nvim-lsp-installer/server.lua | |
| parent | server: add attach_buffers() method (#220) (diff) | |
| download | mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.tar mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.tar.gz mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.tar.bz2 mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.tar.lz mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.tar.xz mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.tar.zst mason-c153ec62a140b76cbcaad9133fcd67b493f571d2.zip | |
respect autostart setting (#228)
Fixes #227.
Diffstat (limited to 'lua/nvim-lsp-installer/server.lua')
| -rw-r--r-- | lua/nvim-lsp-installer/server.lua | 4 |
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. |
