feat: Add keybind for sqlfmt

This commit is contained in:
uttarayan21
2024-09-25 19:10:19 +05:30
parent ebf77a5700
commit d983b3ef99
2 changed files with 7 additions and 1 deletions

2
flake.lock generated
View File

@@ -1787,7 +1787,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-5p5wFrOAxy6Q3YX8uSKoMgw3682VuRv+6C79C+wyTUg=", "narHash": "sha256-hQ29nKYA2OwUQMz2xWulhRjaa/SSuwLQURT4/t9bkIY=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

@@ -499,6 +499,12 @@ in rec {
pattern = "*.norg"; pattern = "*.norg";
command = "set conceallevel=3"; command = "set conceallevel=3";
} }
{
event = ["BufEnter" "BufWinEnter"];
pattern = "*.sql";
# set keymap for F to format using :Sqlfmt
command = ["nnoremap <buffer> F :Sqlfmt<cr>"];
}
{ {
event = ["BufWinLeave"]; event = ["BufWinLeave"];
pattern = "?*"; pattern = "?*";