feat: initial lsp integration

This commit is contained in:
Muhammad Nauman Raza 2022-11-13 18:41:10 +00:00
parent fb7fbba9d1
commit 948e5dbbaa
No known key found for this signature in database
GPG key ID: A9A36C429C9CAE31
5 changed files with 19 additions and 7 deletions

1
.lsp-session-v1 Normal file
View file

@ -0,0 +1 @@
#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

@ -40,7 +40,7 @@
(load "org-mode")
(load "keybinds")
(load "performance")
(load "language")
(load "languages")
;; Load user configuration
(add-to-list 'load-path (concat user-emacs-directory

View file

@ -3,7 +3,7 @@
;; Quit input dialogues after pressing escape once
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; Line Wrapping
; Line Wrapping
(global-visual-line-mode 1) ; Prevent wrapping of words
;; evil - A Vi Layer inside of Emacs
@ -76,4 +76,3 @@
"m" '(:wk "Magit")
"w" '(:wk "Evil")
"p" '(:wk "Projects"))

View file

@ -1,4 +0,0 @@
;; This file contains configuration for languages
;; Markdown
(use-package markdown-mode)

16
lisp/languages.el Normal file
View file

@ -0,0 +1,16 @@
;; This file contains configuration for languages
;; Markdown
(use-package markdown-mode)
(use-package flycheck)
;; eglot - Language Server Protocol ingegration
(use-package eglot)
;; Rust
(use-package rustic
:custom
(rustic-lsp-client 'eglot)) ; Make eglot the default LSP client
(add-hook 'prog-mode-hook 'electric-pair-mode)