]> git.madduck.net Git - etc/lazyvim.git/blobdiff - .config/lazyvim/after/ftplugin/python.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Mail area detection and &fo handling
[etc/lazyvim.git] / .config / lazyvim / after / ftplugin / python.lua
index a420d5083fa23e2aa5e5330c72b32f96b145f369..376b877b9bd071ba48fb3cf4bd55439ceecd99aa 100644 (file)
@@ -1,13 +1,13 @@
 vim.g.python_highlight_all = true
 
 vim.g.linelength = 88
 vim.g.python_highlight_all = true
 
 vim.g.linelength = 88
-vim.b.textwidth = vim.g.linelength
+vim.opt_local.textwidth = vim.g.linelength
 
 
-vim.b.sw = 4
-vim.b.sts = 4
-vim.b.autoindent = true
+vim.opt_local.sw = 4
+vim.opt_local.sts = 4
+vim.opt_local.autoindent = true
 
 
-vim.b.formatoptions = vim.opt.formatoptions + 'bl'
+vim.opt_local.formatoptions = vim.opt.formatoptions + "bl"
 
 vim.b.ale_linters = { "mypy", "ruff" }
 vim.b.ale_fixers = {
 
 vim.b.ale_linters = { "mypy", "ruff" }
 vim.b.ale_fixers = {