Skip to content

Commit

Permalink
refactor: part 1 (#711)
Browse files Browse the repository at this point in the history
  • Loading branch information
linrongbin16 authored Jun 14, 2024
1 parent 64dfd3b commit 3d2152c
Show file tree
Hide file tree
Showing 11 changed files with 107 additions and 109 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
- main
concurrency:
group: ${{ github.ref }}-${{ github.workflow }}
cancel-in-progress: ${{ !contains(github.ref, 'main') }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: write
pull-requests: write
Expand Down Expand Up @@ -45,9 +45,9 @@ jobs:
run: |
cargo binstall --no-confirm selene
selene --config selene.toml ./lua
- uses: mrcjkb/lua-typecheck-action@v0
- uses: stevearc/nvim-typecheck-action@v2
with:
directories: lua
path: lua
configpath: ".luarc.json"
- uses: stefanzweifel/git-auto-commit-action@v5
if: ${{ github.ref != 'refs/heads/main' }}
Expand Down
1 change: 1 addition & 0 deletions lua/fzfx/cfg/_lsp_locations.lua
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ M._make_lsp_locations_provider = function(opts)
--- @param context fzfx.LspLocationPipelineContext
--- @return string[]|nil
local function impl(query, context)
---@diagnostic disable-next-line: deprecated
local lsp_clients = vim.lsp.get_active_clients({ bufnr = context.bufnr })
if tbl.tbl_empty(lsp_clients) then
log.echo(LogLevels.INFO, "no active lsp clients.")
Expand Down
4 changes: 2 additions & 2 deletions lua/fzfx/cfg/vim_keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -252,14 +252,14 @@ M._get_vim_keymaps = function()
-- "|fzfx.config - _get_vim_keymaps| keys_output_map1:%s",
-- vim.inspect(keys_output_map)
-- )
local api_keys_list = vim.api.nvim_get_keymap("")
local api_keys_list = vim.api.nvim_get_keymap("") --[[@as table]]
-- log.debug(
-- "|fzfx.config - _get_vim_keymaps| api_keys_list:%s",
-- vim.inspect(api_keys_list)
-- )
local api_keys_map = {}
for _, km in ipairs(api_keys_list) do
if not api_keys_map[km.lhs] then
if type(km) == "table" and km.lhs and not api_keys_map[km.lhs] then
api_keys_map[km.lhs] = km
end
end
Expand Down
Loading

0 comments on commit 3d2152c

Please sign in to comment.