Skip to content

Commit fa4fb5d

Browse files
committed
updated command calls in testing
1 parent 53bb8d5 commit fa4fb5d

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
77
### Features
88

9-
- ✅ Toggle gh-dash floating window with `:GHDashToggle`
9+
- ✅ Toggle gh-dash floating window with `:GHdashToggle`
1010
- ✅ Optional keymap mapping via `setup` call
1111
- ✅ Background running when window hidden
1212
- ✅ Statusline integration via `require('gh_dash').status`
@@ -55,7 +55,7 @@ return {
5555

5656
### Usage
5757

58-
- Call `:GHDash` (or `:GHDashToggle`) to open or close the gh-dash popup.
58+
- Call `:GHdash` (or `:GHdashToggle`) to open or close the gh-dash popup.
5959
-- Map your own keybindings via the `keymaps.toggle` setting.
6060
- Add the following code to show presence of backgrounded gh-dash window in lualine:
6161

lua/gh_dash/init.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ function M.setup(user_config)
2929
end, { desc = 'Toggle gh-dash popup (alias)' })
3030
-- optional keymap for toggle
3131
if config.keymaps.toggle then
32-
vim.api.nvim_set_keymap('n', config.keymaps.toggle, '<cmd>GHDashToggle<CR>', { noremap = true, silent = true })
32+
vim.api.nvim_set_keymap('n', config.keymaps.toggle, '<cmd>GHdashToggle<CR>', { noremap = true, silent = true })
3333
end
3434
end
3535

tests/gh_dash_spec.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ describe('gh_dash.nvim', function()
2222
require('gh_dash').setup { keymaps = {} }
2323

2424
local cmds = vim.api.nvim_get_commands {}
25-
assert(cmds['GHDash'], 'GHDash command not found')
26-
assert(cmds['GHDashToggle'], 'GHDashToggle command not found')
25+
assert(cmds['GHdash'], 'GHdash command not found')
26+
assert(cmds['GHdashToggle'], 'GHdashToggle command not found')
2727
end)
2828

2929
it('opens a floating terminal window', function()

0 commit comments

Comments
 (0)