summaryrefslogtreecommitdiff
path: root/lua/user/lsp/lsp-installer.lua
diff options
context:
space:
mode:
authorVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 11:52:58 +0100
committerVito G. Graffagnino <vito@graffagnino.xyz>2022-05-28 11:52:58 +0100
commitdf55cb522dfd6b3d2cd2b734fce9d8fc1303385a (patch)
tree2c51a56531a3dad6610fa961736f3dbaee3e8fe0 /lua/user/lsp/lsp-installer.lua
parentb9a2bc855bbd7a7d54c9e280ee875393e30cf1a6 (diff)
parentf671fc644de5edbeb4692df3b1b763754e22fb16 (diff)
Merge branch 'vgg' into 09-autopairs09-autopairs
Diffstat (limited to 'lua/user/lsp/lsp-installer.lua')
-rw-r--r--lua/user/lsp/lsp-installer.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/user/lsp/lsp-installer.lua b/lua/user/lsp/lsp-installer.lua
index 2fe4af2..f539050 100644
--- a/lua/user/lsp/lsp-installer.lua
+++ b/lua/user/lsp/lsp-installer.lua
@@ -21,6 +21,11 @@ lsp_installer.on_server_ready(function(server)
opts = vim.tbl_deep_extend("force", sumneko_opts, opts)
end
+ if server.name == "pyright" then
+ local pyright_opts = require("user.lsp.settings.pyright")
+ opts = vim.tbl_deep_extend("force", pyright_opts, opts)
+ end
+
-- This setup() function is exactly the same as lspconfig's setup function.
-- Refer to https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md
server:setup(opts)