Skip to content

Commit

Permalink
feat(astrolsp): add global inlay hints toggle
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed May 3, 2024
1 parent d093e6a commit 7d73045
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lua/astronvim/plugins/_astrolsp_mappings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ return {
desc = "Toggle LSP inlay hints (buffer)",
cond = vim.lsp.inlay_hint and "textDocument/inlayHint" or false,
}
maps.n["<Leader>uH"] = {
function() require("astrolsp.toggles").inlay_hints() end,
desc = "Toggle LSP inlay hints (global)",
cond = vim.lsp.inlay_hint and "textDocument/inlayHint" or false,
}

-- TODO: Remove mapping after dropping support for Neovim v0.9, it's automatic
if vim.fn.has "nvim-0.10" == 0 then
Expand Down

0 comments on commit 7d73045

Please sign in to comment.