mirror of
https://github.com/Nickiel12/nicks-nix-config.git
synced 2024-11-26 06:35:28 -08:00
added some of Prime's keybinds
This commit is contained in:
parent
c2eb12500a
commit
28f22bab23
2 changed files with 32 additions and 2 deletions
|
@ -15,7 +15,6 @@ in
|
||||||
|
|
||||||
globals = {
|
globals = {
|
||||||
mapleader = " ";
|
mapleader = " ";
|
||||||
clipboard = "unnamedplus";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
|
@ -35,6 +34,35 @@ in
|
||||||
"<leader>o." = "<cmd>Telescope file_browser<cr>";
|
"<leader>o." = "<cmd>Telescope file_browser<cr>";
|
||||||
"<leader>." = "<cmd>Telescope find_files<cr>"; # cwd full sub-dir fuzzy find
|
"<leader>." = "<cmd>Telescope find_files<cr>"; # cwd full sub-dir fuzzy find
|
||||||
"<leader>of" = "<cmd>Telescope live_grep<cr>"; # cwd search file
|
"<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 = {
|
plugins = {
|
||||||
|
@ -91,7 +119,7 @@ in
|
||||||
# Read settings here: https://github.com/mfussenegger/nvim-dap#Usage
|
# Read settings here: https://github.com/mfussenegger/nvim-dap#Usage
|
||||||
# See :help dap.txt, :help dap-mapping and :help dap-api.
|
# See :help dap.txt, :help dap-mapping and :help dap-api.
|
||||||
cmp-dap.enable = true;
|
cmp-dap.enable = true;
|
||||||
cmp-vsnip.enable = true;
|
# cmp-vsnip.enable = true;
|
||||||
cmp-buffer.enable = true;
|
cmp-buffer.enable = true;
|
||||||
cmp-nvim-lsp-signature-help.enable = true;
|
cmp-nvim-lsp-signature-help.enable = true;
|
||||||
cmp-nvim-lua.enable = true;
|
cmp-nvim-lua.enable = true;
|
||||||
|
|
|
@ -129,6 +129,8 @@ vim.keymap.set('', '<leader>ff', function()
|
||||||
hop.hint_patterns({ multi_windows = true, current_line_only = false })
|
hop.hint_patterns({ multi_windows = true, current_line_only = false })
|
||||||
end, {remap=true})
|
end, {remap=true})
|
||||||
|
|
||||||
|
vim.opt.scrolloff = 8;
|
||||||
|
|
||||||
|
|
||||||
require("telescope").load_extension "file_browser"
|
require("telescope").load_extension "file_browser"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue