From 1302056eddd9a69ea2d0ffdf8bedd8582fb5a907 Mon Sep 17 00:00:00 2001 From: cryxtalix Date: Fri, 8 May 2026 03:43:16 +0800 Subject: Update --- .config/nvim_pack/ftplugin/python.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .config/nvim_pack/ftplugin/python.lua (limited to '.config/nvim_pack/ftplugin/python.lua') diff --git a/.config/nvim_pack/ftplugin/python.lua b/.config/nvim_pack/ftplugin/python.lua new file mode 100644 index 0000000..3fbcec4 --- /dev/null +++ b/.config/nvim_pack/ftplugin/python.lua @@ -0,0 +1,12 @@ +local indent_size = 4 +local use_tabs = false + +local settings = string.format("setlocal softtabstop=%s tabstop=%s shiftwidth=%s", indent_size, indent_size, indent_size) + +if use_tabs == true then + settings = settings .. " noexpandtab" +else + settings = settings .. " expandtab" +end + +vim.cmd(settings) -- cgit