mirror of https://github.com/LazyVim/starter
feat: map with F keys
parent
273cc53ef8
commit
16ed6a0737
|
@ -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…
Reference in New Issue