added some of Prime's keybinds

This commit is contained in:
Nickiel12 2023-08-20 17:46:12 -07:00
parent c2eb12500a
commit 28f22bab23
2 changed files with 32 additions and 2 deletions

View file

@ -15,7 +15,6 @@ in
globals = {
mapleader = " ";
clipboard = "unnamedplus";
};
options = {
@ -35,6 +34,35 @@ in
"<leader>o." = "<cmd>Telescope file_browser<cr>";
"<leader>." = "<cmd>Telescope find_files<cr>"; # cwd full sub-dir fuzzy find
"<leader>of" = "<cmd>Telescope live_grep<cr>"; # cwd search file
# keep cursor centered while navigating
"<C-d>" = "<C-d>zz";
"<C-u>" = "<C-u>zz";
"n" = "nzzzv";
"N" = "Nzzzv";
# yank to system clipboard
"<leader>y" = "\"+y";
"<leader>Y" = "\"+Y";
# perma-delete without putting on any clipboard
"<leader>d" = "\"_d";
};
maps.visual = {
# moves visual selection up and down lines
"J" = ":m '>+1<CR>gv=gv";
"K" = ":m '<-2<CR>gv=gv";
# copy to system clipboard
"<leader>y" = "\"+y";
# perma-delete without putting on any clipboard
"<leader>d" = "\"_d";
};
maps.visualOnly = {
"<leader>p" = "\"_dP"; # leader+p deletes the selection to null, then pastes
};
plugins = {
@ -91,7 +119,7 @@ in
# Read settings here: https://github.com/mfussenegger/nvim-dap#Usage
# See :help dap.txt, :help dap-mapping and :help dap-api.
cmp-dap.enable = true;
cmp-vsnip.enable = true;
# cmp-vsnip.enable = true;
cmp-buffer.enable = true;
cmp-nvim-lsp-signature-help.enable = true;
cmp-nvim-lua.enable = true;

View file

@ -129,6 +129,8 @@ vim.keymap.set('', '<leader>ff', function()
hop.hint_patterns({ multi_windows = true, current_line_only = false })
end, {remap=true})
vim.opt.scrolloff = 8;
require("telescope").load_extension "file_browser"