Skip to content

Commit

Permalink
fix: add keymap caching (#1)
Browse files Browse the repository at this point in the history
Co-authored-by: tris203 <admin@snappeh.com>
  • Loading branch information
tris203 and tris203 committed Dec 12, 2023
1 parent 8351b34 commit 5554fc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/hawtkeys/ts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local scan = require('plenary.scandir')
local utils = require('hawtkeys.utils')
local config = require('hawtkeys')

local keymaps = {}
---@param dir string
---@return table
local function find_files(dir)
Expand Down Expand Up @@ -69,10 +70,9 @@ end

---@return table
function M.get_all_keymaps()
local keymaps = {}
--[[ if next(keymaps) ~= nil then
if next(keymaps) ~= nil then
return keymaps
end ]]
end
local paths = getRTP()
for _, path in ipairs(paths) do
if string.match(path, "%.config") then
Expand Down

0 comments on commit 5554fc1

Please sign in to comment.