This commit is contained in:
ant 2023-12-08 00:40:10 +07:00
parent a785f25b83
commit 843582f1c8
4 changed files with 114 additions and 64 deletions

View file

@ -15,6 +15,11 @@ vim.keymap.set(
'<leader>ff',
"<cmd> Telescope find_files follow=true <CR>"
)
vim.keymap.set(
'n',
'<leader>fg',
"<cmd> Telescope live_grep <CR>"
)
vim.keymap.set(
'n',
'<leader>fF',
@ -31,6 +36,15 @@ vim.keymap.set('n', '<leader>N', "<cmd> Neogit <cr>", { desc = "Open Neogit" })
vim.keymap.set('n', '<a-f1>', "<cmd> Copilot <cr>", { desc = "Start Copilot" })
vim.keymap.set('x', 'p', 'p:let @+=@0<CR>:let @"=@0<CR>', { desc = "Start Copilot" })
-- Luasnip
local ls = require("luasnip")
vim.keymap.set({"i", "s"}, "<A-j>", function() ls.jump( 1) end, {silent = true})
vim.keymap.set({"i", "s"}, "<A-k>", function() ls.jump(-1) end, {silent = true})
-- Hop
vim.keymap.set({'n', 'v'}, 'f', "<cmd> HopWord <cr>", { desc = "HopWord" })
-- Global mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions
-- Use LspAttach autocommand to only map the following keys