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
19 lines
554 B
Nix
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")
|
|
];
|
|
};
|
|
}
|