-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
142 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,3 +64,4 @@ site-lisp/package/ | |
/places | ||
/games | ||
/eaf | ||
/straight/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
(setq package-enable-at-startup nil) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -89,6 +89,7 @@ | |
|
||
(use-package subword | ||
:ensure nil | ||
:straight nil | ||
:init | ||
(general-define-key | ||
:states '(operator) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
;; -*- lexical-binding: t -*- | ||
(use-package lsp-bridge | ||
:ensure nil | ||
:straight (lsp-bridge :type git :host github :repo "manateelazycat/lsp-bridge" | ||
:files ("*" (:exclude ".git" "test"))) | ||
:init | ||
(setq acm-enable-tabnine nil | ||
;; TODO acm-enable-codeium | ||
acm-enable-yas nil | ||
;; TODO acm-enable-citre | ||
acm-candidate-match-function 'orderless-flex | ||
acm-enable-quick-access t ; only decides whether indexes are shown | ||
lsp-bridge-signature-show-function 'lsp-bridge-signature-posframe | ||
lsp-bridge-enable-hover-diagnostic t) | ||
:demand t | ||
:config | ||
(plist-put lsp-bridge-signature-posframe-params :poshandler 'posframe-poshandler-frame-top-center) | ||
|
||
(global-lsp-bridge-mode) | ||
|
||
(general-define-key | ||
:states '(insert emacs) | ||
"<tab>" 'jester/start-complete-or-yas) | ||
(general-define-key | ||
:states '(insert emacs) | ||
:definer 'minor-mode | ||
:keymaps 'acm-mode | ||
"TAB" nil | ||
"<tab>" 'jester/do-complete-or-yas | ||
"<C-m>" 'acm-insert-common | ||
"RET" nil | ||
"<return>" nil) | ||
(dotimes (i 10) | ||
(general-define-key | ||
:keymaps 'acm-mode-map | ||
(number-to-string i) 'acm-complete-quick-access) | ||
(general-define-key | ||
:keymaps 'acm-mode-map | ||
(format "M-%d" i) (eval `(lambda! (insert ,(number-to-string i))))))) | ||
|
||
;; https://emacs.stackexchange.com/a/7925/12854 | ||
(defun jester/do-complete-or-yas () | ||
"`yas-expand' or complete the symbol." | ||
(interactive) | ||
(when (or (not yas-minor-mode) | ||
(null (jester/yas-expand-no-prompt))) | ||
(call-interactively 'acm-complete))) | ||
|
||
(defun jester/start-complete-or-yas () | ||
(interactive) | ||
(when (or (not yas-minor-mode) | ||
(null (jester/yas-expand-no-prompt))) | ||
(lsp-bridge-popup-complete-menu))) | ||
|
||
|
||
|
||
(use-package orderless | ||
:autoload (orderless-initialism orderless-flex)) | ||
|
||
;; TODO flycheck | ||
|
||
|
||
(provide 'init-lsp-bridge) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
(setq straight-use-package-by-default nil | ||
straight-use-version-specific-build-dir t) | ||
|
||
(defvar bootstrap-version) | ||
(let ((bootstrap-file | ||
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory)) | ||
(bootstrap-version 6)) | ||
(unless (file-exists-p bootstrap-file) | ||
(with-current-buffer | ||
(url-retrieve-synchronously | ||
"https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el" | ||
'silent 'inhibit-cookies) | ||
(goto-char (point-max)) | ||
(eval-print-last-sexp))) | ||
(load bootstrap-file nil 'nomessage)) | ||
|
||
|
||
(provide 'init-straight) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
(use-package smerge-mode | ||
:ensure nil | ||
:straight nil | ||
:init | ||
(jester/with-leader | ||
"m u" 'smerge-keep-upper | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.