feat: keys for lsp and rust support

This commit is contained in:
Muhammad Nauman Raza 2022-11-14 21:24:46 +00:00
parent 948e5dbbaa
commit 778bd8b51d
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31
5 changed files with 20 additions and 3 deletions

1
.gitignore vendored
View file

@ -6,5 +6,6 @@ transient/
bookmarks
.last-package-update-day
.lsp*
org-roam.db*
.org-id-locations

View file

@ -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 ()))

View file

@ -67,7 +67,7 @@
(general-evil-setup t)
:init
(general-create-definer diancite/leaders
:prefix leader-key))
:prefix leader-key))
(diancite/leaders
:keymaps 'normal

View file

@ -18,3 +18,19 @@
"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
: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"))

View file

@ -3,7 +3,8 @@
;; Markdown
(use-package markdown-mode)
(use-package flycheck)
;; Diagnostics
(use-package flymake)
;; eglot - Language Server Protocol ingegration
(use-package eglot)