feat: Add keybind for sqlfmt
This commit is contained in:
2
flake.lock
generated
2
flake.lock
generated
@@ -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"
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -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 = "?*";
|
||||||
|
|||||||
Reference in New Issue
Block a user