From ecfaed3cc1cbe3013f1201594adde2ea0022c455 Mon Sep 17 00:00:00 2001 From: thisisrandy Date: Fri, 22 Nov 2024 15:05:43 -0800 Subject: [PATCH] fix(dial): add and/or augend to python ft (#4875) ## Description The python language includes the keywords `and` or `or` for logical operations. The current `dial.nvim` config does not include an augend for swapping these keywords. ## Related Issue(s) ## Screenshots ## Checklist - [x] I've read the [CONTRIBUTING](https://github.com/LazyVim/LazyVim/blob/main/CONTRIBUTING.md) guidelines. --- lua/lazyvim/plugins/extras/editor/dial.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lua/lazyvim/plugins/extras/editor/dial.lua b/lua/lazyvim/plugins/extras/editor/dial.lua index e296624a..a9f7bb26 100644 --- a/lua/lazyvim/plugins/extras/editor/dial.lua +++ b/lua/lazyvim/plugins/extras/editor/dial.lua @@ -108,6 +108,7 @@ return { markdown = "markdown", sass = "css", scss = "css", + python = "python", }, groups = { default = { @@ -151,6 +152,11 @@ return { cyclic = true, -- "or" is incremented into "and". }), }, + python = { + augend.constant.new({ + elements = { "and", "or" }, + }), + }, }, } end,