Skip to content

Commit

Permalink
feat(windows support): change path filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
tris203 committed Jan 6, 2024
1 parent aa13916 commit 314a613
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions lua/hawtkeys/ts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ local tsQuery = require("nvim-treesitter.query")
---@field method WhichKeyMethods

---@class LazyKeyMapArgs
---@field method LazyMethods
---@field method LazyMethodsts

---@type table<string, boolean>
local scannedFiles = {}
Expand Down Expand Up @@ -469,7 +469,13 @@ function M.get_all_keymaps()
end
end
else
local paths = get_runtime_path()
local paths = vim.fn.stdpath("config")
if type(paths) == "string" then
paths = { paths }
end
if not paths then
paths = get_runtime_path()
end
for _, path in ipairs(paths) do
if string.match(path, "%.config") then
local files = find_files(path)
Expand Down

0 comments on commit 314a613

Please sign in to comment.