mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-25 14:01:03 +00:00
feat: map with F keys
This commit is contained in:
parent
273cc53ef8
commit
16ed6a0737
1 changed files with 6 additions and 0 deletions
|
|
@ -9,6 +9,12 @@ map({ "n", "v" }, ";", ":", { desc = "Enter command mode", noremap = true, nowai
|
|||
|
||||
-- File management Nvim
|
||||
map("n", "<leader>op", "<CMD>Oil<CR>", { desc = "Open parent directory" })
|
||||
map({ "n", "i", "v" }, "<f12>", function()
|
||||
vim.lsp.buf.definition()
|
||||
end, { desc = "Go to definition" })
|
||||
map({ "n", "i", "v" }, "<F12>", function()
|
||||
vim.lsp.buf.declaration()
|
||||
end, { desc = "Go to declaration" })
|
||||
|
||||
-- Markdown configs
|
||||
map("n", "<leader>ct", ":lua require('toggle-checkbox').toggle()<CR>", { desc = "Toggle Checkbox" })
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue