config/users/natalie/vim/keybinds.nix
chloe caruso 4b91b37f4a feat: "autofmt" code formatter
different codebases use different formatters. autofmt looks for project
configuration to pick the correct formatter, allowing an editor to
simply point to the script and have all ambiguities resolved.

this commit overhauls the conform configuration to set up autofmt
correctly, as well installing it with 'pkgs.autofmt'

closes #6
2025-08-17 20:40:58 -07:00

19 lines
554 B
Nix

{ ... }:
let
mkKeymap = mode: key: action: desc: {
inherit mode;
inherit key action desc;
};
n = mkKeymap "n"; # normal mode
in
{
vim = {
keymaps = [
(n "<leader>e" ":lua require('snacks').explorer()<CR>" "File Explorer")
# Snacks Picker Replaces Telescope!?
(n "<leader><space>" ":lua require('snacks').picker.smart()<CR>" "Smart Find Files")
(n "<leader>ff" ":lua require('snacks').picker.files()<CR>" "Find File")
(n "<leader>fg" ":lua require('snacks').picker.grep()<CR>" "Grep Files")
];
};
}