Compare commits

..

2 commits

Author SHA1 Message Date
94235d0f53 flake update 2023-08-20 18:35:11 -07:00
28f22bab23 added some of Prime's keybinds 2023-08-20 17:46:12 -07:00
3 changed files with 40 additions and 11 deletions

View file

@ -136,11 +136,11 @@
]
},
"locked": {
"lastModified": 1692222899,
"narHash": "sha256-dHrv+lMUKFXLnzc/yYhEpNr34JYG8gwD4eH6qcrScFI=",
"lastModified": 1692503956,
"narHash": "sha256-MOA6FKc1YgfGP3ESnjSYfsyJ1BXlwV5pGlY/u5XdJfY=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "2471d965a3522025157a790fc49c3567fd56e26e",
"rev": "958c06303f43cf0625694326b7f7e5475b1a2d5c",
"type": "github"
},
"original": {
@ -233,11 +233,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1692174805,
"narHash": "sha256-xmNPFDi/AUMIxwgOH/IVom55Dks34u1g7sFKKebxUm0=",
"lastModified": 1692447944,
"narHash": "sha256-fkJGNjEmTPvqBs215EQU4r9ivecV5Qge5cF/QDLVn3U=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "caac0eb6bdcad0b32cb2522e03e4002c8975c62e",
"rev": "d680ded26da5cf104dd2735a51e88d2d8f487b4d",
"type": "github"
},
"original": {
@ -286,11 +286,11 @@
"pre-commit-hooks": "pre-commit-hooks"
},
"locked": {
"lastModified": 1692189925,
"narHash": "sha256-Yt6jKh8YIu4WLnKDfdo9yNU+vS2NPGeAWk+7VfLUsxk=",
"lastModified": 1692476227,
"narHash": "sha256-PDHK8tNTveeWcWgKGq+tGiovl/PUB51lsnAemQj6Zss=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "9f8ce75653d0c0a6d0175166e6dd0286a58fe5ef",
"rev": "4ef53c788b99768f3ab948d53078d9bd1594f03c",
"type": "github"
},
"original": {

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,6 @@ 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-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"