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

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 = "?*";