From: martin f. krafft Date: Fri, 25 Apr 2025 08:59:05 +0000 (+0200) Subject: use vim.opt_local instead of vim.b in ftplugin/python X-Git-Url: https://git.madduck.net/etc/lazyvim.git/commitdiff_plain/06b275195be1d7c6ac6c9d7bc327b4bb66e993ea?hp=9423040a422565f78bae608173863be729856b7c use vim.opt_local instead of vim.b in ftplugin/python --- diff --git a/.config/lazyvim/after/ftplugin/python.lua b/.config/lazyvim/after/ftplugin/python.lua index a420d50..376b877 100644 --- a/.config/lazyvim/after/ftplugin/python.lua +++ b/.config/lazyvim/after/ftplugin/python.lua @@ -1,13 +1,13 @@ 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 = { diff --git a/.config/lazyvim/lazy-lock.json b/.config/lazyvim/lazy-lock.json index c281a4b..8c7e869 100644 --- a/.config/lazyvim/lazy-lock.json +++ b/.config/lazyvim/lazy-lock.json @@ -18,6 +18,7 @@ "mason.nvim": { "branch": "main", "commit": "fc98833b6da5de5a9c5b1446ac541577059555be" }, "mini.ai": { "branch": "main", "commit": "e139eb1101beb0250fea322f8c07a42f0f175688" }, "mini.align": { "branch": "main", "commit": "8d5f3254a4c25fdfd26b7467d2372f5deed3a78c" }, + "mini.hipatterns": { "branch": "main", "commit": "e5083df391171dc9d8172645606f8496d9443374" }, "mini.icons": { "branch": "main", "commit": "397ed3807e96b59709ef3292f0a3e253d5c1dc0a" }, "mini.pairs": { "branch": "main", "commit": "69864a2efb36c030877421634487fd90db1e4298" }, "mini.surround": { "branch": "main", "commit": "5aab42fcdcf31fa010f012771eda5631c077840a" }, diff --git a/.config/lazyvim/lazyvim.json b/.config/lazyvim/lazyvim.json index 48c287c..99e8ae7 100644 --- a/.config/lazyvim/lazyvim.json +++ b/.config/lazyvim/lazyvim.json @@ -4,7 +4,8 @@ "lazyvim.plugins.extras.lang.markdown", "lazyvim.plugins.extras.lang.python", "lazyvim.plugins.extras.lang.toml", - "lazyvim.plugins.extras.test.core" + "lazyvim.plugins.extras.test.core", + "lazyvim.plugins.extras.util.mini-hipatterns" ], "install_version": 8, "news": {