diff --git a/.lsp-session-v1 b/.lsp-session-v1 new file mode 100644 index 0000000..704db90 --- /dev/null +++ b/.lsp-session-v1 @@ -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 ())) \ No newline at end of file diff --git a/init.el b/init.el index 065de5a..158d200 100644 --- a/init.el +++ b/init.el @@ -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 diff --git a/lisp/editor.el b/lisp/editor.el index 5546a44..b56d842 100644 --- a/lisp/editor.el +++ b/lisp/editor.el @@ -3,7 +3,7 @@ ;; Quit input dialogues after pressing escape once (global-set-key (kbd "") '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")) - diff --git a/lisp/language.el b/lisp/language.el deleted file mode 100644 index d8d45a2..0000000 --- a/lisp/language.el +++ /dev/null @@ -1,4 +0,0 @@ -;; This file contains configuration for languages - -;; Markdown -(use-package markdown-mode) diff --git a/lisp/languages.el b/lisp/languages.el new file mode 100644 index 0000000..5457f74 --- /dev/null +++ b/lisp/languages.el @@ -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)