From f241fba3d0dff406d6fab437df313efab28581e4 Mon Sep 17 00:00:00 2001 From: Julien LE PAGE Date: Mon, 17 Jul 2023 10:19:15 +0200 Subject: [PATCH] Improve python configuration --- ftplugin/python.lua | 3 +++ lua/plugins.lua | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ftplugin/python.lua b/ftplugin/python.lua index 730b750..fe989a2 100644 --- a/ftplugin/python.lua +++ b/ftplugin/python.lua @@ -1,4 +1,7 @@ vim.o.textwidth = 80 + +vim.o.tabstop = 2 +vim.o.shiftwidth = 2 vim.o.expandtab = true -- remove white spaces at end of line diff --git a/lua/plugins.lua b/lua/plugins.lua index 2559058..3e9bfd6 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -195,7 +195,7 @@ local function manage_plugins() packadd_hook = function() local capabilities = require("cmp_nvim_lsp").default_capabilities() local lsp_config = require("lspconfig") - local servers = { "clangd", "rust_analyzer" } + local servers = { "clangd", "rust_analyzer", "pylsp" } for _, lsp in ipairs(servers) do lsp_config[lsp].setup {