Skip to content

Commit

Permalink
feat: add support for checkhealth buffers (#182)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Jan 20, 2025
1 parent 26c1390 commit 90be5e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/cord/plugin/activity/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ local function build_activity(opts)
else
opts.filetype = 'Cord.unknown'
end
elseif opts.filetype == 'checkhealth' then
opts.filename = 'checkhealth'
end

local icon_type, icon, tooltip = mappings.get(opts.filetype, opts.filename, opts.buftype)
Expand Down
1 change: 1 addition & 0 deletions lua/cord/plugin/activity/mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ M.filetype_mappings = {
astro = { 'language', 'astro', 'Astro' },
awk = { 'language', 'awk', 'Awk' },
c = { 'language', 'c', 'C ' },
checkhealth = { 'language', 'checkhealth', 'Health Check' },
clojure = { 'language', 'clojure', 'Clojure' },
conf = { 'language', 'gear', 'Config' },
config = { 'language', 'gear', 'Config' },
Expand Down

0 comments on commit 90be5e4

Please sign in to comment.