From 80bcf579ad64879accdc3ab53df4833a59f81312 Mon Sep 17 00:00:00 2001 From: tris203 Date: Wed, 20 Dec 2023 23:28:21 +0000 Subject: [PATCH] chore: tidy testing files --- lua/hawtkeys/tests/set_maps.lua | 51 --------------------------------- lua/hawtkeys/tests/test_ts.lua | 5 ---- 2 files changed, 56 deletions(-) delete mode 100644 lua/hawtkeys/tests/set_maps.lua delete mode 100644 lua/hawtkeys/tests/test_ts.lua diff --git a/lua/hawtkeys/tests/set_maps.lua b/lua/hawtkeys/tests/set_maps.lua deleted file mode 100644 index 58d6c63..0000000 --- a/lua/hawtkeys/tests/set_maps.lua +++ /dev/null @@ -1,51 +0,0 @@ -vim.api.nvim_set_keymap( - "n", - "1", - ':lua print("1 pressed")', - { noremap = true, silent = true } -) -vim.keymap.set( - "n", - "2", - ':lua print("2 pressed")', - { noremap = true, silent = true } -) - -local normalMap = function(lhs, rhs) - vim.api.nvim_set_keymap("n", lhs, rhs, { noremap = true, silent = true }) -end -normalMap("3", ':lua print("3 pressed")') - -local shortIndex = vim.api - -shortIndex.nvim_set_keymap( - "n", - "4", - ':lua print("4 pressed")', - { noremap = true, silent = true } -) - -local shortFunc = vim.api.nvim_set_keymap - -shortFunc( - "n", - "5", - ':lua print("5 pressed")', - { noremap = true, silent = true } -) - -local whichkey = require("which-key") - -whichkey.register({ - [""] = { - ["6"] = { ':lua print("6 pressed")', "Print 6" }, - ["7"] = { ':lua print("7 pressed")', "Print 7" }, - }, -}) - -return { - "plugin/example", - keys = { - { "8", ":lua print('8 pressed" }, - }, -} diff --git a/lua/hawtkeys/tests/test_ts.lua b/lua/hawtkeys/tests/test_ts.lua deleted file mode 100644 index c226721..0000000 --- a/lua/hawtkeys/tests/test_ts.lua +++ /dev/null @@ -1,5 +0,0 @@ -local ts = require("hawtkeys.ts") - -local maps = ts.find_maps_in_file("lua/hawtkeys/tests/set_maps.lua") -print(vim.inspect(maps)) -ts.reset_scanned_files()