summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2022-10-11 17:32:19 +0100
committerdakkar <dakkar@thenautilus.net>2022-10-11 17:32:19 +0100
commit7132988b4c2f3ed380a208bc305fde02c977bd7e (patch)
tree3829443f25a422b927ce95844c3cbcc7b8b52ad6
parentsmarter perl indent in POD sections (diff)
downloademacs-master.tar.gz
emacs-master.tar.bz2
emacs-master.zip
set up lspHEADmaster
-rwxr-xr-xinit.el14
1 files changed, 11 insertions, 3 deletions
diff --git a/init.el b/init.el
index 13842eb..23851e8 100755
--- a/init.el
+++ b/init.el
@@ -158,9 +158,10 @@
'(ledger-use-iso-dates t)
'(lpr-command "gtklp")
'(lpr-switches nil)
+ '(lsp-clients-clangd-executable "clangd")
'(lsp-prefer-flymake nil)
- '(magit-default-tracking-name-function (quote magit-default-tracking-name-branch-only))
- '(magit-diff-refine-hunk (quote all))
+ '(magit-default-tracking-name-function 'magit-default-tracking-name-branch-only)
+ '(magit-diff-refine-hunk 'all)
'(markdown-command "markdown_py")
'(menu-bar-mode nil)
'(message-signature-file "~/.signature/news.sig")
@@ -179,7 +180,7 @@
'(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
'(package-selected-packages
- '(go-mode magit magit-filenotify magit-gh-pulls magit-gitflow magit-vcsh gnu-elpa-keyring-update wgrep web-mode unicode-fonts perl6-mode markdown-mode magit-tramp magit-find-file ledger-mode))
+ '(yasnippet lsp-mode lsp-ui go-mode magit magit-filenotify magit-gh-pulls magit-gitflow magit-vcsh gnu-elpa-keyring-update wgrep web-mode unicode-fonts perl6-mode markdown-mode magit-tramp magit-find-file ledger-mode))
'(pov-external-viewer-command "display")
'(pov-help-file "povuser.txt")
'(reftex-extra-bindings nil)
@@ -413,3 +414,10 @@
cperl-mode-map global-map))
(add-hook 'cperl-mode-hook 'dakkar/setup-cperl-mode)
+
+(require 'lsp-mode)
+(add-hook 'go-mode-hook 'lsp-deferred)
+(add-hook 'lsp-mode-hook (lambda()
+ (progn
+ (lsp-ui-mode)
+ (yas-minor-mode))))