From 0aa53f33d6e6a67fcae37c39f7a3b1f84bc77fa3 Mon Sep 17 00:00:00 2001 From: nshen Date: Thu, 7 Apr 2022 17:15:09 +0800 Subject: [PATCH] add python lsp config --- lua/lsp/config/pyright.lua | 5 +++++ lua/lsp/setup.lua | 1 + 2 files changed, 6 insertions(+) create mode 100644 lua/lsp/config/pyright.lua diff --git a/lua/lsp/config/pyright.lua b/lua/lsp/config/pyright.lua new file mode 100644 index 0000000..9a653b1 --- /dev/null +++ b/lua/lsp/config/pyright.lua @@ -0,0 +1,5 @@ +return { + on_setup = function(server) + server:setup({}) + end, +} diff --git a/lua/lsp/setup.lua b/lua/lsp/setup.lua index 6c67d93..79bcdf5 100644 --- a/lua/lsp/setup.lua +++ b/lua/lsp/setup.lua @@ -6,6 +6,7 @@ local lsp_installer = require("nvim-lsp-installer") -- https://github.com/williamboman/nvim-lsp-installer#available-lsps local servers = { sumneko_lua = require("lsp.config.lua"), -- lua/lsp/config/lua.lua + pyright = require("lsp.config.pyright") -- rust_analyzer = require("lsp.lang.rust"), -- jsonls = require("lsp.lang.json"), -- tsserver = require("lsp.config.ts"),