mirror of
https://github.com/librephoenix/nixos-config
synced 2025-07-06 06:52:13 +05:30
Neotree and treemacs-symbols are helpful
This commit is contained in:
parent
a0305a2246
commit
93df45d711
2 changed files with 49 additions and 0 deletions
|
@ -161,6 +161,17 @@
|
|||
(setq global-auto-revert-mode nil)
|
||||
(setq auto-revert-use-notify t)
|
||||
|
||||
(defun neotree-snipe-dir ()
|
||||
(interactive)
|
||||
(if (projectile-project-root)
|
||||
(neotree-dir (projectile-project-root))
|
||||
(neotree-dir (file-name-directory (file-truename (buffer-name))))
|
||||
)
|
||||
)
|
||||
|
||||
(map! :leader :desc "Open neotree here" "o n" #'neotree-snipe-dir
|
||||
:desc "Hide neotree" "o N" #'neotree-hide)
|
||||
|
||||
;;;------ Registers ------;;;
|
||||
|
||||
(map! :leader
|
||||
|
@ -1100,4 +1111,17 @@ https://github.com/magit/magit/issues/460 (@cpitclaudel)."
|
|||
:hook (gdscript-mode . lsp-deferred)
|
||||
:ensure t)
|
||||
|
||||
(setq lsp-treemacs-deps-position-params
|
||||
'((side . right)
|
||||
(slot . 1)
|
||||
(window-width . 35)))
|
||||
|
||||
(setq lsp-treemacs-symbols-position-params
|
||||
'((side . right)
|
||||
(slot . 2)
|
||||
(window-width . 35)))
|
||||
|
||||
(map! :leader :desc "Open treemacs symbol outliner" "o s" #'lsp-treemacs-symbols
|
||||
:desc "Hide neotree" "o S" #'treemacs-quit)
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue