feat: keys for lsp and rust support
This commit is contained in:
parent
948e5dbbaa
commit
778bd8b51d
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,5 +6,6 @@ transient/
|
||||||
|
|
||||||
bookmarks
|
bookmarks
|
||||||
.last-package-update-day
|
.last-package-update-day
|
||||||
|
.lsp*
|
||||||
org-roam.db*
|
org-roam.db*
|
||||||
.org-id-locations
|
.org-id-locations
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
#s(lsp-session ("/home/devraza/Projects/Rust/hello-world") nil #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ()) #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ()) #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ()))
|
|
|
@ -18,3 +18,19 @@
|
||||||
"m s" '(magit-status :wk "Status")
|
"m s" '(magit-status :wk "Status")
|
||||||
"m d" '(magit-dispatch :wk "Dispatch")
|
"m d" '(magit-dispatch :wk "Dispatch")
|
||||||
"m f" '(magit-status :wk "File Dispatch"))
|
"m f" '(magit-status :wk "File Dispatch"))
|
||||||
|
|
||||||
|
|
||||||
|
;; Flymake & LSP
|
||||||
|
(general-create-definer diancite/lsp
|
||||||
|
:prefix leader-key)
|
||||||
|
|
||||||
|
(diancite/lsp
|
||||||
|
:keymaps 'normal
|
||||||
|
"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"))
|
||||||
|
|
|
@ -3,7 +3,8 @@
|
||||||
;; Markdown
|
;; Markdown
|
||||||
(use-package markdown-mode)
|
(use-package markdown-mode)
|
||||||
|
|
||||||
(use-package flycheck)
|
;; Diagnostics
|
||||||
|
(use-package flymake)
|
||||||
|
|
||||||
;; eglot - Language Server Protocol ingegration
|
;; eglot - Language Server Protocol ingegration
|
||||||
(use-package eglot)
|
(use-package eglot)
|
||||||
|
|
Reference in a new issue