summaryrefslogtreecommitdiff
path: root/config/keymaps.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2023-12-31 08:01:03 -0500
committerseth <[email protected]>2023-12-31 08:52:04 -0500
commitdec8d36cbdbb3b9c5c12792ed199892ce2e82069 (patch)
tree89422c04c25b4ed4c3156d4477c894416500e8b3 /config/keymaps.nix
parentae9136a14ae0b0fe91faad59b23d3a532ca84ed5 (diff)
back to regular lua
Diffstat (limited to 'config/keymaps.nix')
-rw-r--r--config/keymaps.nix82
1 files changed, 0 insertions, 82 deletions
diff --git a/config/keymaps.nix b/config/keymaps.nix
deleted file mode 100644
index 231da71..0000000
--- a/config/keymaps.nix
+++ /dev/null
@@ -1,82 +0,0 @@
-{lib, ...}: let
- setBind = lib.recursiveUpdate {
- mode = "n";
- lua = true;
- options = {
- noremap = true;
- silent = true;
- };
- };
-in {
- keymaps = map setBind (
- [
- {
- key = "<leader>t";
- action = ''
- function()
- require("neo-tree.command").execute({
- toggle = true,
- dir = vim.loop.cwd()
- })
- end
- '';
- }
-
- {
- mode = ["n" "o" "x"];
- key = "s";
- action = ''
- function()
- require("flash").jump()
- end
- '';
- }
-
- {
- key = "<leader>q";
- action = ''
- function()
- vim.cmd("BufferLinePickClose")
- end
- '';
- }
-
- {
- key = "<leader>f";
- action = ''
- function()
- vim.cmd("Telescope")
- end
- '';
- }
-
- {
- key = "<leader>p";
- action = ''
- function()
- vim.cmd("TroubleToggle")
- end
- '';
- }
-
- {
- key = "<leader>z";
- action = ''
- function()
- vim.cmd("FormatToggle")
- end
- '';
- }
- ]
- ++ (
- map (n: {
- key = "<leader>${toString n}";
- action = ''
- function()
- vim.cmd("BufferLineGoToBuffer ${toString n}")
- end
- '';
- }) (lib.range 1 9)
- )
- );
-}