aboutsummaryrefslogtreecommitdiffstats
path: root/.config/nvim/after/ftplugin/python.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/ftplugin/python.lua')
-rw-r--r--.config/nvim/after/ftplugin/python.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/.config/nvim/after/ftplugin/python.lua b/.config/nvim/after/ftplugin/python.lua
new file mode 100644
index 0000000..3fcff4e
--- /dev/null
+++ b/.config/nvim/after/ftplugin/python.lua
@@ -0,0 +1,12 @@
+-- PEP 8 indentation settings
+vim.opt_local.tabstop = 4
+vim.opt_local.softtabstop = 4
+vim.opt_local.shiftwidth = 4
+vim.opt_local.expandtab = true
+
+-- 88 character length lines for Black formatter
+vim.opt_local.colorcolumn = '88'
+
+-- Google-style docstrings
+vim.g.python_style = 'google'
+