mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-08-01 00:25:05 +02:00
feat: added support for the new builtin inlay hints
Enable with: ```lua {"neovim/nvim-lspconfig", opts = {inlay_hints = {enabled = true}}} ```
This commit is contained in:
parent
428bdf768f
commit
01c7eeebd0
2 changed files with 17 additions and 0 deletions
|
@ -112,6 +112,9 @@ map("n", "<leader>ul", function() Util.toggle("relativenumber", true) Util.toggl
|
|||
map("n", "<leader>ud", Util.toggle_diagnostics, { desc = "Toggle Diagnostics" })
|
||||
local conceallevel = vim.o.conceallevel > 0 and vim.o.conceallevel or 3
|
||||
map("n", "<leader>uc", function() Util.toggle("conceallevel", false, {0, conceallevel}) end, { desc = "Toggle Conceal" })
|
||||
if vim.lsp.buf.inlay_hint then
|
||||
map("n", "<leader>uh", function() vim.lsp.buf.inlay_hint(0, nil) end, { desc = "Toggle Inlay Hints" })
|
||||
end
|
||||
|
||||
-- lazygit
|
||||
map("n", "<leader>gg", function() Util.float_term({ "lazygit" }, { cwd = Util.get_root(), esc_esc = false, ctrl_hjkl = false }) end, { desc = "Lazygit (root dir)" })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue