Skip to content

Commit bfabbb2

Browse files
committed
configuration for ivy and treesitter
1 parent 506a317 commit bfabbb2

File tree

3 files changed

+43
-1
lines changed

3 files changed

+43
-1
lines changed

init.el

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,14 @@
3535
larsen-markdown
3636
larsen-company
3737
larsen-tramp
38-
larsen-helm
38+
;; larsen-helm
39+
larsen-ivy
3940
larsen-ibuffer
4041
larsen-treemacs
4142
larsen-snippets
4243

4344
;; Programming languages support
45+
larsen-treesitter
4446
larsen-lsp
4547
larsen-paredit
4648
larsen-elisp

lisp/larsen-ivy.el

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
(use-package ivy
2+
:init
3+
(ivy-mode t)
4+
:bind (("C-c h" . ivy-switch-buffer)
5+
("<s-escape>" . ivy-switch-buffer)
6+
("<f13>" . ivy-switch-buffer)
7+
("C-M-y" . ivy-switch-buffer)
8+
("<print>" . ivy-switch-buffer)
9+
; ("C-c v" . helm-show-kill-ring)
10+
("C-c s" . swiper))
11+
:custom
12+
(ivy-use-virtual-buffers t)
13+
(ivi-display-style 'fancy))
14+
15+
(use-package counsel
16+
:bind (("M-x" . counsel-M-x)
17+
("C-x C-f" . counsel-find-file))
18+
:config
19+
(counsel-mode t))
20+
21+
(use-package counsel-projectile
22+
:bind (("<f6>" . counsel-projectile-ag)))
23+
24+
(use-package ivy-rich
25+
:after counsel
26+
:init (ivy-rich-mode 1))
27+
28+
(use-package all-the-icons-ivy-rich
29+
:ensure t
30+
:init (all-the-icons-ivy-rich-mode 1))
31+
32+
(provide 'larsen-ivy)

lisp/larsen-treesitter.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
(use-package treesit-auto
2+
:custom
3+
(treesit-auto-install 'prompt)
4+
:config
5+
(treesit-auto-add-to-auto-mode-alist 'all)
6+
(global-treesit-auto-mode))
7+
8+
(provide 'larsen-treesitter)

0 commit comments

Comments
 (0)