Compare commits

...

2 commits

Author SHA1 Message Date
195a66d7bf
nvim: add direnv-vim plugin 2024-12-15 23:56:40 +01:00
4c259757db
nvim: add c-p binding 2024-12-15 23:05:56 +01:00
3 changed files with 27 additions and 25 deletions

View file

@ -103,11 +103,11 @@
"zig": "zig"
},
"locked": {
"lastModified": 1733867032,
"narHash": "sha256-2ddDF3j8aI70WdWIn+Gsef4XGM2+grIlaEtHlkZmWdY=",
"lastModified": 1734275633,
"narHash": "sha256-/5Rnuouf4DrQWKc5sMjA/8Uiznp8/oCQe3YaYvp+fWU=",
"ref": "refs/heads/main",
"rev": "59df17a699f6f13700823124cefaf91fb0c37d4f",
"revCount": 8196,
"rev": "ceef2900e24944b18a6aadf5e6dd40aeef64e85d",
"revCount": 8271,
"type": "git",
"url": "ssh://git@github.com/ghostty-org/ghostty"
},
@ -209,11 +209,11 @@
]
},
"locked": {
"lastModified": 1733869277,
"narHash": "sha256-qFWxVV48wwiyvrAbGeSbZ5LAOv1Kv/lvDtibOhuc1/o=",
"lastModified": 1734093295,
"narHash": "sha256-hSwgGpcZtdDsk1dnzA0xj5cNaHgN9A99hRF/mxMtwS4=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "8772bae58c0a1390727aaf13802debfa29757d67",
"rev": "66c5d8b62818ec4c1edb3e941f55ef78df8141a8",
"type": "github"
},
"original": {
@ -233,11 +233,11 @@
"treefmt-nix": "treefmt-nix"
},
"locked": {
"lastModified": 1733846759,
"narHash": "sha256-Xp/rWqO4XXJAqh5c2xju4NCBRpi8lQIknLQmCYfrdWY=",
"lastModified": 1734048484,
"narHash": "sha256-EtSEYNx19xzuEBJsT7yXG+nVx11CM3rvrAQAXcvG/5Q=",
"owner": "nix-community",
"repo": "neovim-nightly-overlay",
"rev": "dcd1be4d5f9fa160d0c68c1967f4ecc458b01969",
"rev": "044f9a36ad620a119ebe154c26ec571a09f75039",
"type": "github"
},
"original": {
@ -249,11 +249,11 @@
"neovim-src": {
"flake": false,
"locked": {
"lastModified": 1733731191,
"narHash": "sha256-Xtd0YLx6RKJMDu2GfE9geO48Dw3KnpVkfZjUqA51xDw=",
"lastModified": 1734000357,
"narHash": "sha256-8FO5Ca9bLEiD649b5gkQCdjpTmbPenJHpN0JBhtLpjE=",
"owner": "neovim",
"repo": "neovim",
"rev": "3bb2d027597107a3d7f84ef61507104fd4dc050a",
"rev": "17383870dd3b7f04eddd48ed929cc25c7e102277",
"type": "github"
},
"original": {
@ -264,11 +264,11 @@
},
"nixpkgs": {
"locked": {
"lastModified": 1733656523,
"narHash": "sha256-w0FXPfpGhOihoJDiwMsyN1EzpsXi2F8VQ+NVZQSMtys=",
"lastModified": 1733749988,
"narHash": "sha256-+5qdtgXceqhK5ZR1YbP1fAUsweBIrhL38726oIEAtDs=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "93dc9803a1ee435e590b02cde9589038d5cc3a4e",
"rev": "bc27f0fde01ce4e1bfec1ab122d72b7380278e68",
"type": "github"
},
"original": {
@ -280,11 +280,11 @@
},
"nixpkgs-stable": {
"locked": {
"lastModified": 1733730953,
"narHash": "sha256-dlK7n82FEyZlHH7BFHQAM5tua+lQO1Iv7aAtglc1O5s=",
"lastModified": 1734017764,
"narHash": "sha256-msOfmyJSjAHgIygI/JD0Ae3JsDv4rT54Nlfr5t6MQMQ=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "7109b680d161993918b0a126f38bc39763e5a709",
"rev": "64e9404f308e0f0a0d8cdd7c358f74e34802494b",
"type": "github"
},
"original": {
@ -296,11 +296,11 @@
},
"nixpkgs-unstable": {
"locked": {
"lastModified": 1733686850,
"narHash": "sha256-NQEO/nZWWGTGlkBWtCs/1iF1yl2lmQ1oY/8YZrumn3I=",
"lastModified": 1734126203,
"narHash": "sha256-0XovF7BYP50rTD2v4r55tR5MuBLet7q4xIz6Rgh3BBU=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "dd51f52372a20a93c219e8216fe528a648ffcbf4",
"rev": "71a6392e367b08525ee710a93af2e80083b5b3e2",
"type": "github"
},
"original": {
@ -312,11 +312,11 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1733759999,
"narHash": "sha256-463SNPWmz46iLzJKRzO3Q2b0Aurff3U1n0nYItxq7jU=",
"lastModified": 1734119587,
"narHash": "sha256-AKU6qqskl0yf2+JdRdD0cfxX4b9x3KKV5RqA6wijmPM=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "a73246e2eef4c6ed172979932bc80e1404ba2d56",
"rev": "3566ab7246670a43abd2ffa913cc62dad9cdf7d5",
"type": "github"
},
"original": {

View file

@ -48,6 +48,7 @@
];
plugins = with pkgs.vimPlugins; [
direnv-vim
friendly-snippets
go-nvim
targets-vim

View file

@ -124,6 +124,7 @@ vim.keymap.set("n", "<Leader>D", vim.diagnostic.setloclist, { desc = "Diagnostic
vim.keymap.set("n", "<Leader>r", vim.lsp.buf.rename, opts("Rename Symbol"))
vim.keymap.set('n', '<Leader>F', "<cmd>Pick files<cr>", opts("Open file picker CWD"))
vim.keymap.set('n', '<Leader>f', "<cmd>Pick files_root<cr>", opts("Open file picker"))
vim.keymap.set('n', '<c-p>', "<Leader>f", { remap = true })
vim.keymap.set('n', '<Leader>g', "<cmd>Pick oldfiles<cr>", opts("Open file picker history"))
vim.keymap.set("n", '<Leader>k', vim.lsp.buf.hover, opts("Show docs for item under cursor"))
vim.keymap.set('n', '<Leader>q', require('mini.bufremove').delete, opts("Delete buffer"))