feat: initial lsp integration
This commit is contained in:
parent
fb7fbba9d1
commit
948e5dbbaa
1
.lsp-session-v1
Normal file
1
.lsp-session-v1
Normal 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 ()))
|
2
init.el
2
init.el
|
@ -40,7 +40,7 @@
|
||||||
(load "org-mode")
|
(load "org-mode")
|
||||||
(load "keybinds")
|
(load "keybinds")
|
||||||
(load "performance")
|
(load "performance")
|
||||||
(load "language")
|
(load "languages")
|
||||||
|
|
||||||
;; Load user configuration
|
;; Load user configuration
|
||||||
(add-to-list 'load-path (concat user-emacs-directory
|
(add-to-list 'load-path (concat user-emacs-directory
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
;; Quit input dialogues after pressing escape once
|
;; Quit input dialogues after pressing escape once
|
||||||
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
|
(global-set-key (kbd "<escape>") 'keyboard-escape-quit)
|
||||||
|
|
||||||
;; Line Wrapping
|
; Line Wrapping
|
||||||
(global-visual-line-mode 1) ; Prevent wrapping of words
|
(global-visual-line-mode 1) ; Prevent wrapping of words
|
||||||
|
|
||||||
;; evil - A Vi Layer inside of Emacs
|
;; evil - A Vi Layer inside of Emacs
|
||||||
|
@ -76,4 +76,3 @@
|
||||||
"m" '(:wk "Magit")
|
"m" '(:wk "Magit")
|
||||||
"w" '(:wk "Evil")
|
"w" '(:wk "Evil")
|
||||||
"p" '(:wk "Projects"))
|
"p" '(:wk "Projects"))
|
||||||
|
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
;; This file contains configuration for languages
|
|
||||||
|
|
||||||
;; Markdown
|
|
||||||
(use-package markdown-mode)
|
|
16
lisp/languages.el
Normal file
16
lisp/languages.el
Normal 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)
|
Reference in a new issue