tangled
alpha
login
or
join now
boltless.me
/
nvim_rocks
0
fork
atom
neovim configuration using rocks.nvim plugin manager
0
fork
atom
overview
issues
pulls
pipelines
feat(keymaps): add inlay-hint toggle keymap
BoltlessEngineer
1 year ago
645e78e5
370f7ef4
+6
1 changed file
expand all
collapse all
unified
split
lua
core
keymaps.lua
+6
lua/core/keymaps.lua
···
112
112
vim.keymap.set("n", "gri", vim.lsp.buf.implementation, { buffer = ev.buf })
113
113
vim.keymap.set("n", "grd", vim.lsp.buf.declaration, { buffer = ev.buf })
114
114
vim.keymap.set("i", "<c-s>", vim.lsp.buf.signature_help, { buffer = ev.buf })
115
115
+
vim.keymap.set("i", "<f2>", function()
116
116
+
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
117
117
+
end, { buffer = ev.buf })
118
118
+
vim.keymap.set("n", "<f2>", function()
119
119
+
vim.lsp.inlay_hint.enable(not vim.lsp.inlay_hint.is_enabled())
120
120
+
end, { buffer = ev.buf })
115
121
end,
116
122
})
117
123