From d5bdd20a446143cd3641d3d9655c077d5d0f6923 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Wed, 14 Jun 2023 16:06:24 +0100 Subject: [PATCH] Add pylsp config if executable found --- lua/plugins/lspconfig.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua index fd715c5..5b82741 100644 --- a/lua/plugins/lspconfig.lua +++ b/lua/plugins/lspconfig.lua @@ -51,6 +51,7 @@ local config = function() } local lsp = require("lspconfig") if vim.fn.executable("pyright") == 1 then lsp["pyright"].setup(lsp_config) end + if vim.fn.executable("pylsp") == 1 then lsp["pylsp"].setup(lsp_config) end if vim.fn.executable("ruff-lsp") == 1 then lsp["ruff_lsp"].setup(lsp_config) end if vim.fn.executable("lua-language-server") == 1 then lsp["lua_ls"].setup(lsp_config) end if vim.fn.executable("nil") == 1 then lsp["nil_ls"].setup(lsp_config) end