From 16ac184f03344d2a46bb2203c56b18edf07e91af Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 28 Dec 2024 19:00:02 -0500 Subject: [PATCH] AutoYADM commit: 2024-12-28 19:00:02 --- .config/nvim/lua/plugins/qmk.lua | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/.config/nvim/lua/plugins/qmk.lua b/.config/nvim/lua/plugins/qmk.lua index 5ff708c7..d635d580 100644 --- a/.config/nvim/lua/plugins/qmk.lua +++ b/.config/nvim/lua/plugins/qmk.lua @@ -1,9 +1,3 @@ -local corne = { - "x x x x x x _ x x x x x x", - "x x x x x x _ x x x x x x", - "x x x x x x _ x x x x x x", - "_ _ _ x x x _ x x x _ _ _", -} return { { "nvim-treesitter/nvim-treesitter", @@ -15,10 +9,17 @@ return { }, { "codethread/qmk.nvim", - opts = { - name = "corne", - layout = corne, - variant = "zmk", - }, + ft = "dts", + opts = function() + local corne = { + "x x x x x x _ x x x x x x", + "x x x x x x _ x x x x x x", + "x x x x x x _ x x x x x x", + "_ _ _ x x x _ x x x _ _ _", + } + local o = { name = "corne", layout = corne, variant = "zmk" } + vim.keymap.set({ "n" }, "f", "QMKFormat", { desc = "Format keymap." }) + return o + end, }, }