summaryrefslogtreecommitdiff
path: root/dot_config/nvim/after/ftplugin/python.lua
diff options
context:
space:
mode:
authorIbrahim Muftee <ibrahim@muftee.net>2024-08-10 23:42:58 -0500
committerIbrahim Muftee <ibrahim@muftee.net>2026-07-01 00:23:31 -0400
commit43d6f16f3111fd2a76db0a2f70c4b5527ce874af (patch)
tree680ccdd563b2faa0b001b910566ba03916c24f1c /dot_config/nvim/after/ftplugin/python.lua
parent100310f1eff30b1d274b94fa246f8b9dc5146151 (diff)
feat(nvim): make column 80 default for everything but python
Diffstat (limited to 'dot_config/nvim/after/ftplugin/python.lua')
-rw-r--r--dot_config/nvim/after/ftplugin/python.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/dot_config/nvim/after/ftplugin/python.lua b/dot_config/nvim/after/ftplugin/python.lua
new file mode 100644
index 0000000..b06591a
--- /dev/null
+++ b/dot_config/nvim/after/ftplugin/python.lua
@@ -0,0 +1,4 @@
+-- Colored columns at 72 and 88 are for line lengths, and are based on
+-- Python conventions. Docstrings in Python should terminate at 72
+-- characters, and 88 is the max line length for the Black formatter.
+vim.opt_local.colorcolumn = { 72, 88 }