updating config and corfu module
This commit is contained in:
parent
8bd123ef11
commit
b59a7f8cf8
8 changed files with 224 additions and 298 deletions
35
config.el
35
config.el
|
@ -20,6 +20,11 @@
|
|||
(setq scroll-preserve-screen-position t)
|
||||
(setq global-hl-line-modes nil)
|
||||
|
||||
(setq locale-coding-system 'utf-8)
|
||||
(set-terminal-coding-system 'utf-8)
|
||||
(set-keyboard-coding-system 'utf-8)
|
||||
(prefer-coding-system 'utf-8)
|
||||
|
||||
(setq org-directory "~/Library/Mobile Documents/iCloud~md~obsidian/Documents/Primary/org/")
|
||||
|
||||
;; Modeline
|
||||
|
@ -90,19 +95,19 @@
|
|||
(smart-tabs-insinuate 'c 'javascript 'python))
|
||||
|
||||
;; lsp mode config to work with corfu/cape
|
||||
(after! lsp-mode
|
||||
(setq lsp-completion-provider :none)
|
||||
(setq lsp-signature-render-documentation nil)
|
||||
(setq lsp-completion-show-kind t)
|
||||
(setq lsp-ui-doc-show-with-mouse nil)
|
||||
;; (after! lsp-mode
|
||||
;; (setq lsp-completion-provider :none)
|
||||
;; (setq lsp-signature-render-documentation nil)
|
||||
;; (setq lsp-completion-show-kind t)
|
||||
;; (setq lsp-ui-doc-show-with-mouse nil)
|
||||
|
||||
(setq +lsp-company-backends
|
||||
'(:separate company-capf company-yasnippet company-dabbrev))
|
||||
;; (setq +lsp-company-backends
|
||||
;; '(:separate company-capf company-yasnippet company-dabbrev))
|
||||
|
||||
(defun my/lsp-mode-setup-completion ()
|
||||
(setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
|
||||
'(orderless)))
|
||||
(add-hook! lsp-completion-mode 'my/lsp-mode-setup-completion))
|
||||
;; (defun my/lsp-mode-setup-completion ()
|
||||
;; (setf (alist-get 'styles (alist-get 'lsp-capf completion-category-defaults))
|
||||
;; '(orderless)))
|
||||
;; (add-hook! lsp-completion-mode 'my/lsp-mode-setup-completion))
|
||||
|
||||
;; bibliography file location
|
||||
(after! citar
|
||||
|
@ -115,6 +120,7 @@
|
|||
(setq web-mode-engines-alist
|
||||
'(("svelte" . "\\.svelte\\'")))
|
||||
(add-hook! web-mode (web-mode-use-tabs) (setq indent-tabs-mode t))
|
||||
(add-hook! web-mode (web-mode-toggle-current-element-highlight))
|
||||
|
||||
;; fix centaur tabs to show at the right times and add my muscle memory keybind
|
||||
(after! centaur-tabs
|
||||
|
@ -171,9 +177,16 @@
|
|||
;; (define-key sly-doc-map (kbd "s") 'cl-patterns-supercollider-documentation))
|
||||
(add-hook 'sly-connected-hook 'cl-patterns-helpers-load)))
|
||||
|
||||
;; adding supercollider path
|
||||
(setq exec-path (append exec-path '("/Applications/SuperCollider.app/Contents/MacOS/")))
|
||||
|
||||
;; tidal cycles!
|
||||
(setq tidal-boot-script-path "~/.cabal/share/aarch64-osx-ghc-9.4.2/tidal-1.9.3/BootTidal.hs")
|
||||
|
||||
;; add platformio to ino files
|
||||
(add-to-list 'auto-mode-alist '("\\.ino\\'" . arduino-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.ino\\'" . platformio-mode))
|
||||
|
||||
;; (defvar company-backends '())
|
||||
|
||||
(load! "obsidian-config.el")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue