Compare commits

...

3 commits

Author SHA1 Message Date
05ad81c631 dev: Hide lsp-mode sideline diagnostics
Per default errors are inlined right aligned next to the point in code
where errors are happening. This change should prevent that error
texts are being shown.
2025-02-07 07:32:52 +01:00
c7945b9791 dev: Do not replace the word after completion
The default behavior when autocompleting infront of a word, without
having a whitespace in between, is to replaice the trailing word. This
change should prevent that from happening.
2025-02-07 07:30:04 +01:00
a327b831a9 c: Use lsp-mode when c-mode is enabled 2025-02-07 07:28:07 +01:00
2 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
;; set c style to linux and indention to 2
(setq c-default-style "linux"
c-basic-offset 2)
(use-package lsp-mode
:ensure t
:hook
(c-mode . lsp-deferred))

View file

@ -40,7 +40,9 @@
(add-hook 'prog-mode-hook #'flyspell-prog-mode)
(use-package lsp-mode
:ensure t)
:ensure t
:config
(setq lsp-completion-default-behaviour ':insert))
(use-package lsp-ui
:ensure t
@ -48,7 +50,8 @@
("C-c i" . lsp-ui-doc-show)
:config
(setq lsp-ui-doc-position 'at-point)
(setq lsp-ui-doc-show-with-mouse nil))
(setq lsp-ui-doc-show-with-mouse nil)
(setq lsp-ui-sideline-show-diagnostics nil))
(use-package yasnippet
:ensure t)