dotfiles

andersuno dotfiles
git clone git://git.andersuno.nu/dotfiles.git
Log | Files | Refs | README

commit 371788fb5df01a2251cde75d1785402e74320818
parent f15876cdc2ee39c192a28136479ca0da95ef3ebc
Author: Anders Hedman <anders.hedman01@gmail.com>
Date:   Sun, 11 Jun 2023 22:10:59 +0200

doom: Setting lsp-vars with hook

Might have broke vc-gutter, removing +diff-hl seems to work

Diffstat:
M.doom.d/config.el | 8++++++++
M.doom.d/init.el | 3++-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/.doom.d/config.el b/.doom.d/config.el @@ -286,6 +286,14 @@ (use-package! kubernetes-evil :after (kubernetes-overview)) + +(defun my/lsp-vars () + (setq lsp-terraform-ls-enable-show-reference t) + (setq lsp-semantic-tokens-enable t) + (setq lsp-semantic-tokens-honor-refresh-requests t)) + ;; (setq lsp-terraform-ls-prefill-required-fields t)) +(add-hook 'lsp-mode-hook 'my/lsp-vars) + (map! :map terraform-mode-map :localleader :desc "format buffer" "f" #'terraform-format-buffer) diff --git a/.doom.d/init.el b/.doom.d/init.el @@ -46,7 +46,8 @@ ;;tabs ; a tab bar for Emacs (treemacs +lsp) ; a project drawer, like neotree but cooler ;;unicode ; extended unicode support for various languages - (vc-gutter +pretty +diff-hl) ; vcs diff in the fringe + ;; (vc-gutter +pretty +diff-hl) ; vcs diff in the fringe + (vc-gutter +pretty) ; vcs diff in the fringe vi-tilde-fringe ; fringe tildes to mark beyond EOB ;;window-select ; visually switch windows workspaces ; tab emulation, persistence & separate workspaces