Skip to content

Commit

Permalink
feat: Expose help action (#311)
Browse files Browse the repository at this point in the history
* feat(keymaps): add help action

* docs: add help mapping to readme
  • Loading branch information
MariaSolOs committed Jul 25, 2023
1 parent 0e6703c commit 467dc20
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ Trouble comes with the following defaults:
toggle_fold = {"zA", "za"}, -- toggle fold of current file
previous = "k", -- previous item
next = "j" -- next item
help = "?" -- help menu
},
multiline = true, -- render multi-line messages
indent_lines = true, -- add an indent guide below the fold icons
Expand Down
1 change: 1 addition & 0 deletions lua/trouble/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ local defaults = {
toggle_fold = { "zA", "za" }, -- toggle fold of current file
previous = "k", -- preview item
next = "j", -- next item
help = "?", -- help menu
},
multiline = true, -- render multi-line messages
indent_lines = true, -- add an indent guide below the fold icons
Expand Down
7 changes: 1 addition & 6 deletions lua/trouble/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,7 @@ function Trouble.help()
height = height + 1
end
-- help
vim.lsp.util.open_floating_preview(lines, "markdown", {
border = "single",
height = 20,
offset_y = -2,
offset_x = 2,
})
vim.lsp.util.open_floating_preview(lines, "markdown", { border = "single" })
end

local updater = util.debounce(100, function()
Expand Down

0 comments on commit 467dc20

Please sign in to comment.