X-Git-Url: https://git.madduck.net/etc/lazyvim.git/blobdiff_plain/a47c3601f5465472456657657270db614a6da602..4a4d8b8ec77a9edb85b9ecba820238451fd42c97:/.config/lazyvim/after/ftplugin/python.lua diff --git a/.config/lazyvim/after/ftplugin/python.lua b/.config/lazyvim/after/ftplugin/python.lua index 219b25f..4cc925f 100644 --- a/.config/lazyvim/after/ftplugin/python.lua +++ b/.config/lazyvim/after/ftplugin/python.lua @@ -7,7 +7,8 @@ vim.opt_local.sw = 4 vim.opt_local.sts = 4 vim.opt_local.autoindent = true -vim.opt_local.formatoptions = vim.opt.formatoptions + "bl" +vim.opt_local.formatoptions:append("b") +vim.opt_local.formatoptions:append("l") vim.b.ale_linters = { "mypy", "ruff" } vim.b.ale_fixers = { @@ -23,5 +24,5 @@ vim.keymap.set("i", "m", [[if __name__ == "__main__":import sys vim.keymap.set( "i", "a", - [[# needed < 3.14 so that annotations aren't evaluatedfrom __future__ import annotations]] + [[# needed < 3.14 so that annotations aren't evaluatedfrom __future__ import annotationsfrom typing import TYPE_CHECKINGif TYPE_CHECKING:pass]] )