diff options
| author | triethyl <triethylammonium@pm.me> | 2025-07-23 17:58:04 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-07-23 17:58:04 -0400 |
| commit | f88015e36d85115153d3664614ffe9d70dacf6b3 (patch) | |
| tree | 275a977c5c149c68cdfa9bbb00f341645d5ad5ad | |
| parent | 6fae3be80b67abfda8e475542625169dd6e77f31 (diff) | |
working on custom neovim
| -rw-r--r-- | flake.lock | 56 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/init.lua | 2 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/mappings.lua | 2 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/lspconfig.lua | 6 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/mini/files.lua | 10 | ||||
| -rw-r--r-- | pkgs/custom-neovim/config/lua/plugins/snacks.lua | 11 |
6 files changed, 49 insertions, 38 deletions
@@ -126,11 +126,11 @@ ] }, "locked": { - "lastModified": 1752402455, - "narHash": "sha256-mCHfZhQKdTj2JhCFcqfOfa3uKZbwUkPQbd0/zPnhOE8=", + "lastModified": 1753294394, + "narHash": "sha256-1Dfgq09lHZ8AdYB2Deu/mYP1pMNpob8CgqT5Mzo44eI=", "owner": "nix-community", "repo": "home-manager", - "rev": "bf893ad4cbf46610dd1b620c974f824e266cd1df", + "rev": "1fde6fb1be6cd5dc513dc1c287d69e4eb2de973e", "type": "github" }, "original": { @@ -146,11 +146,11 @@ "nixpkgs": "nixpkgs_2" }, "locked": { - "lastModified": 1752340638, - "narHash": "sha256-9+vBdRt/jg8fAll1VD3NXBibkRq9F8Wq/mW45I5jlvc=", + "lastModified": 1753257349, + "narHash": "sha256-Zb4528e94DwdUC0rKIX1+EFtkoelggWQakZ/YKemqJ4=", "owner": "Jovian-Experiments", "repo": "Jovian-NixOS", - "rev": "1129c951dcc2a269a12cb74d64bd64e44e724ecb", + "rev": "e89a3203fbb3a833d7b7777efc13697b6a962cfd", "type": "github" }, "original": { @@ -184,11 +184,11 @@ "xwayland-satellite-unstable": "xwayland-satellite-unstable" }, "locked": { - "lastModified": 1752421961, - "narHash": "sha256-9uTU9mZO3SOSKgn/Qz4RVJqwsoNpM1Bx2e7bNfHALs0=", + "lastModified": 1753180174, + "narHash": "sha256-YeCLUjYOjTN2c29ch5ELoYGRW/BMmyv+a0Q16FhmlnQ=", "owner": "sodiboo", "repo": "niri-flake", - "rev": "c97425d44edb8879e8c4a3d1991e4442c03395ea", + "rev": "fdeb0c5367f6e183f19ee1521644cb0440582bde", "type": "github" }, "original": { @@ -217,11 +217,11 @@ "niri-unstable": { "flake": false, "locked": { - "lastModified": 1752418007, - "narHash": "sha256-3DyujBgCewh7r5fz4L0ZRw28BJBqfqeDSVpeTud/aEU=", + "lastModified": 1752870529, + "narHash": "sha256-23DJk5EfEDCq7Xy1QELcayG0VxbbWpdQ6t7jbhae1Ok=", "owner": "YaLTeR", "repo": "niri", - "rev": "bb40a35ccf6edbe2c838686562cbdad1ef98ce72", + "rev": "fefc0bc0a71556eb75352e2b611e50eb5d3bf9c2", "type": "github" }, "original": { @@ -274,11 +274,11 @@ "nixpkgs": "nixpkgs_4" }, "locked": { - "lastModified": 1752373696, - "narHash": "sha256-xdjUzHG3sPAs3U1wVnx5hf1NrspCN+qtaBmAks+wnsM=", + "lastModified": 1753237324, + "narHash": "sha256-iXvv/VYLMyAoaTadYrX0PGwd6N2wVX337Os6k8TAlF4=", "owner": "Infinidoge", "repo": "nix-minecraft", - "rev": "93ca1ac26dc85d8c34f838a5afb7138ff445d2bc", + "rev": "64ca2cbbf9c65dd3bd98192d74872a80e8dcb871", "type": "github" }, "original": { @@ -305,11 +305,11 @@ }, "nixpkgs-stable": { "locked": { - "lastModified": 1752162966, - "narHash": "sha256-3MxxkU8ZXMHXcbFz7UE4M6qnIPTYGcE/7EMqlZNnVDE=", + "lastModified": 1753115646, + "narHash": "sha256-yLuz5cz5Z+sn8DRAfNkrd2Z1cV6DaYO9JMrEz4KZo/c=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "10e687235226880ed5e9f33f1ffa71fe60f2638a", + "rev": "92c2e04a475523e723c67ef872d8037379073681", "type": "github" }, "original": { @@ -337,11 +337,11 @@ }, "nixpkgs_3": { "locked": { - "lastModified": 1751984180, - "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", + "lastModified": 1752950548, + "narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", + "rev": "c87b95e25065c028d31a94f06a62927d18763fdf", "type": "github" }, "original": { @@ -369,11 +369,11 @@ }, "nixpkgs_5": { "locked": { - "lastModified": 1751984180, - "narHash": "sha256-LwWRsENAZJKUdD3SpLluwDmdXY9F45ZEgCb0X+xgOL0=", + "lastModified": 1752950548, + "narHash": "sha256-NS6BLD0lxOrnCiEOcvQCDVPXafX1/ek1dfJHX1nUIzc=", "owner": "nixos", "repo": "nixpkgs", - "rev": "9807714d6944a957c2e036f84b0ff8caf9930bc0", + "rev": "c87b95e25065c028d31a94f06a62927d18763fdf", "type": "github" }, "original": { @@ -464,11 +464,11 @@ "systems": "systems_3" }, "locked": { - "lastModified": 1752422995, - "narHash": "sha256-apmJxIDB5pU9FO1xO1XubC4cBtCIAXvFW9ICxE0LlMY=", + "lastModified": 1753305526, + "narHash": "sha256-vonU6CnmCf95bOItlDRRM1XwKyguIbbRbL+mySNAlec=", "ref": "refs/heads/main", - "rev": "c2da1256487750dab335c68bc5099d8b5c3e2115", - "revCount": 5, + "rev": "351cfe9c6d1368f88d0930a6d060cc8fe4e60049", + "revCount": 6, "type": "git", "url": "https://codeberg.org/triethyl/wallpapers" }, diff --git a/pkgs/custom-neovim/config/init.lua b/pkgs/custom-neovim/config/init.lua index 6419790..1c1f70f 100644 --- a/pkgs/custom-neovim/config/init.lua +++ b/pkgs/custom-neovim/config/init.lua @@ -17,7 +17,7 @@ require("plugins.mini.clue") require("plugins.mini.indentscope") require("plugins.mini.notify") require("plugins.treesitter") --- require("plugins.oil") +require("plugins.oil") require("plugins.mini.files") -- LSP Plugins: diff --git a/pkgs/custom-neovim/config/lua/mappings.lua b/pkgs/custom-neovim/config/lua/mappings.lua index 9043096..8e166a9 100644 --- a/pkgs/custom-neovim/config/lua/mappings.lua +++ b/pkgs/custom-neovim/config/lua/mappings.lua @@ -53,6 +53,8 @@ vim.keymap.set("c", "<cr>", function() end, { expr = true }) -- Make enter complete command. mapkey("n", "<esc>", "Clear highlights", ":noh<cr>") -- Make esc clear highlights mapkey("n", "<leader>q", "Close buffer", ":bd<cr>") +mapkey("n", "<leader>Q", "Force close buffer", ":bd!<cr>") +mapkey({"n", "v"}, "<leader>d", "Really delete", [["_d]]) -- Visual Movement Keys. -- mapkey({"n", "v"}, "j", "Go down visually", "gj") diff --git a/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua b/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua index a18b80d..fbb35bf 100644 --- a/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua +++ b/pkgs/custom-neovim/config/lua/plugins/lspconfig.lua @@ -38,9 +38,9 @@ vim.api.nvim_create_autocmd('LspAttach', { mapkey("n", "<leader>S", "Open workspace symbol picker", ":lua Snacks.picker.lsp_workspace_symbols()<cr>") -- LSP Pickers - mapkey('n', "<leader>a", "Perform code action", require("actions-preview").code_actions) - mapkey("n", "<leader>D", "Open workspace diagnostic picker", ":lua Snacks.picker.diagnostics()<cr>") - mapkey("n", "<leader>d", "Open diagnostic picker", [[:lua Snacks.picker.diagnostics_buffer()<cr>]]) + mapkey('n', "<leader>a", "Perform code action", ":lua require('actions-preview').code_actions()<cr>") + mapkey("n", "<leader>I", "Open workspace diagnostic picker", ":lua Snacks.picker.diagnostics()<cr>") + mapkey("n", "<leader>i", "Open diagnostic picker", [[:lua Snacks.picker.diagnostics_buffer()<cr>]]) mapkey('n', 'gr', "Buffer References", vim.lsp.buf.references) mapkey('n', '<localleader>f', "Format Buffer", function() diff --git a/pkgs/custom-neovim/config/lua/plugins/mini/files.lua b/pkgs/custom-neovim/config/lua/plugins/mini/files.lua index e64aefa..03a403a 100644 --- a/pkgs/custom-neovim/config/lua/plugins/mini/files.lua +++ b/pkgs/custom-neovim/config/lua/plugins/mini/files.lua @@ -1,13 +1,13 @@ require("mini.files").setup { mappings = { close = '<esc>', - go_in = 'l', - go_in_plus = 'L', - go_out = 'h', - go_out_plus = 'H', + go_in = 'L', + go_in_plus = '<c-l>', + go_out = 'H', + go_out_plus = '<c-h>', mark_goto = "'", mark_set = 'm', - reset = '<BS>', + reset = '<leader>', reveal_cwd = '@', show_help = 'g?', synchronize = '=', diff --git a/pkgs/custom-neovim/config/lua/plugins/snacks.lua b/pkgs/custom-neovim/config/lua/plugins/snacks.lua index 9410544..d5e2095 100644 --- a/pkgs/custom-neovim/config/lua/plugins/snacks.lua +++ b/pkgs/custom-neovim/config/lua/plugins/snacks.lua @@ -1,6 +1,15 @@ require("snacks").setup { bigfile = { enabled = true }, - picker = { enabled = true }, + picker = { + enabled = true, + win = { + input = { + keys = { + ["<Esc>"] = { "close", mode = { "n", "i" } }, + }, + }, + }, + }, lazygit = { enabled = true, config = { |
