From ff65accca382c421316ae557e2b8033966b7542f Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 6 Mar 2023 16:26:34 +0000 Subject: [PATCH] Restore original python indent system to fix problems --- config/nvim/lua/config/init.lua | 6 ++++++ config/nvim/lua/plugins/vim-python-pep8-indent.lua | 5 ----- 2 files changed, 6 insertions(+), 5 deletions(-) delete mode 100644 config/nvim/lua/plugins/vim-python-pep8-indent.lua diff --git a/config/nvim/lua/config/init.lua b/config/nvim/lua/config/init.lua index 1d5b47ab..e0e1b0ab 100644 --- a/config/nvim/lua/config/init.lua +++ b/config/nvim/lua/config/init.lua @@ -18,6 +18,12 @@ vim.opt.splitright = true -- Global vim.g.python3_host_prog = vim.fn.stdpath "config" .. "/.venv/bin/python" +vim.g.python_indent = { + open_paren = "shiftwidth()", + nested_paren = "shiftwidth()", + continue = "shiftwidth()", + closed_paren_align_last_line = "v:false", +} vim.g.loaded_ruby_provider = 0 vim.g.loaded_perl_provider = 0 diff --git a/config/nvim/lua/plugins/vim-python-pep8-indent.lua b/config/nvim/lua/plugins/vim-python-pep8-indent.lua deleted file mode 100644 index 30eee154..00000000 --- a/config/nvim/lua/plugins/vim-python-pep8-indent.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'Vimjas/vim-python-pep8-indent', - lazy = true, - event = { "BufReadPre", "BufNewFile" }, -}