diff --git a/flake.lock b/flake.lock index a23afec1..d821803c 100644 --- a/flake.lock +++ b/flake.lock @@ -1787,7 +1787,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-5p5wFrOAxy6Q3YX8uSKoMgw3682VuRv+6C79C+wyTUg=", + "narHash": "sha256-hQ29nKYA2OwUQMz2xWulhRjaa/SSuwLQURT4/t9bkIY=", "path": "./neovim", "type": "path" }, diff --git a/neovim/nvim.nix b/neovim/nvim.nix index 6e296d1a..5737ee2b 100644 --- a/neovim/nvim.nix +++ b/neovim/nvim.nix @@ -499,6 +499,12 @@ in rec { pattern = "*.norg"; command = "set conceallevel=3"; } + { + event = ["BufEnter" "BufWinEnter"]; + pattern = "*.sql"; + # set keymap for F to format using :Sqlfmt + command = ["nnoremap F :Sqlfmt"]; + } { event = ["BufWinLeave"]; pattern = "?*";