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": {
"lastModified": 1,
"narHash": "sha256-5p5wFrOAxy6Q3YX8uSKoMgw3682VuRv+6C79C+wyTUg=",
"narHash": "sha256-hQ29nKYA2OwUQMz2xWulhRjaa/SSuwLQURT4/t9bkIY=",
"path": "./neovim",
"type": "path"
},

View File

@@ -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 <buffer> F :Sqlfmt<cr>"];
}
{
event = ["BufWinLeave"];
pattern = "?*";