mirror of
https://github.com/Foltik/dotfiles
synced 2024-11-14 16:59:27 -05:00
29 May 2022 17:04:38
This commit is contained in:
parent
9447185be3
commit
7cc63fea46
@ -150,7 +150,7 @@
|
|||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Switch buffer" "," #'+vertico/switch-workspace-buffer
|
:desc "Switch buffer" "," #'+vertico/switch-workspace-buffer
|
||||||
:desc "Switch all buffers" ">" #'consult-buffer)
|
:desc "Switch all buffers" "<" #'consult-buffer)
|
||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Search online" "/" #'my/counsel-search)
|
:desc "Search online" "/" #'my/counsel-search)
|
||||||
@ -301,7 +301,7 @@
|
|||||||
|
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:prefix ("p" . "projects")
|
:prefix ("p" . "projects")
|
||||||
:desc "Switch project" "p" #'counsel-projectile-switch-project
|
:desc "Switch project" "p" #'my/projectile-switch-project
|
||||||
:desc "Add new project" "a" #'projectile-add-known-project
|
:desc "Add new project" "a" #'projectile-add-known-project
|
||||||
:desc "Remove project" "d" #'projectile-remove-known-project
|
:desc "Remove project" "d" #'projectile-remove-known-project
|
||||||
|
|
||||||
@ -581,6 +581,16 @@ _Q_: Disconnect _sd_: Down stack frame _bh_: Set hit count
|
|||||||
;; (setq projectile-project-search-path
|
;; (setq projectile-project-search-path
|
||||||
;; '("~/Code"))
|
;; '("~/Code"))
|
||||||
|
|
||||||
|
(defun my/projectile-switch-project ()
|
||||||
|
(interactive)
|
||||||
|
;; Prune projects which no longer exist
|
||||||
|
(dolist (project projectile-known-projects)
|
||||||
|
(unless (file-directory-p project)
|
||||||
|
(projectile-remove-known-project project)))
|
||||||
|
(call-interactively #'counsel-projectile-switch-project))
|
||||||
|
|
||||||
|
(setq lsp-ui-doc-show-with-mouse t)
|
||||||
|
|
||||||
(defun my/counsel-search ()
|
(defun my/counsel-search ()
|
||||||
(interactive)
|
(interactive)
|
||||||
(unless (boundp 'my/kagi-found)
|
(unless (boundp 'my/kagi-found)
|
||||||
|
@ -217,11 +217,12 @@ Unmap a bunch of the default keybindings.
|
|||||||
(projectile-invalidate-cache nil)
|
(projectile-invalidate-cache nil)
|
||||||
(+ivy/projectile-find-file))
|
(+ivy/projectile-find-file))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** Buffers
|
**** Buffers
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:desc "Switch buffer" "," #'+vertico/switch-workspace-buffer
|
:desc "Switch buffer" "," #'+vertico/switch-workspace-buffer
|
||||||
:desc "Switch all buffers" ">" #'consult-buffer)
|
:desc "Switch all buffers" "<" #'consult-buffer)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
**** Search
|
**** Search
|
||||||
@ -408,7 +409,7 @@ keybindings specific to =config.org=.
|
|||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(map! :leader
|
(map! :leader
|
||||||
:prefix ("p" . "projects")
|
:prefix ("p" . "projects")
|
||||||
:desc "Switch project" "p" #'counsel-projectile-switch-project
|
:desc "Switch project" "p" #'my/projectile-switch-project
|
||||||
:desc "Add new project" "a" #'projectile-add-known-project
|
:desc "Add new project" "a" #'projectile-add-known-project
|
||||||
:desc "Remove project" "d" #'projectile-remove-known-project
|
:desc "Remove project" "d" #'projectile-remove-known-project
|
||||||
|
|
||||||
@ -731,7 +732,21 @@ Setup: run =M-x dap-go-setup=
|
|||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
;; (setq projectile-project-search-path
|
;; (setq projectile-project-search-path
|
||||||
;; '("~/Code"))
|
;; '("~/Code"))
|
||||||
|
|
||||||
|
(defun my/projectile-switch-project ()
|
||||||
|
(interactive)
|
||||||
|
;; Prune projects which no longer exist
|
||||||
|
(dolist (project projectile-known-projects)
|
||||||
|
(unless (file-directory-p project)
|
||||||
|
(projectile-remove-known-project project)))
|
||||||
|
(call-interactively #'counsel-projectile-switch-project))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
|
|
||||||
|
** LSP
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
|
(setq lsp-ui-doc-show-with-mouse t)
|
||||||
|
#+END_SRC
|
||||||
|
|
||||||
** Counsel Search
|
** Counsel Search
|
||||||
#+BEGIN_SRC elisp
|
#+BEGIN_SRC elisp
|
||||||
(defun my/counsel-search ()
|
(defun my/counsel-search ()
|
||||||
|
Loading…
Reference in New Issue
Block a user