;; This file contains keybindings for Dianciemacs
;; Files
(general-create-definer diancite/file
:prefix leader-key)
(diancite/file
:keymaps 'normal
"f f" '(find-file :wk "Find File")
"f s" '(save-buffer :wk "Save Buffer"))
;; Magit
(general-create-definer diancite/magit
(diancite/magit
"m s" '(magit-status :wk "Status")
"m d" '(magit-dispatch :wk "Dispatch")
"m f" '(magit-status :wk "File Dispatch"))
;; Flymake & LSP
(general-create-definer diancite/lsp
(diancite/lsp
"l" '(:wk "LSP")
"l n" '(flymake-goto-next-error :wk "Next Error")
"l p" '(flymake-goto-prev-error :wk "Previous Error")
"l f" '(eglot-format :wk "Format Buffer")
"l w" '(:wk "Server")
"l w r" '('eglot-shutdown :wk "Restart Server")
"l w q" '('eglot-reconnect :wk "Shutdown Server"))