Dodana obsługa snippets

This commit is contained in:
pali112 2025-01-13 12:56:39 +01:00
parent 28d9308da7
commit 27f918b2e2
2 changed files with 17 additions and 0 deletions

12
init.el
View File

@ -40,6 +40,7 @@ Missing packages are automatically installed."
'company 'company
'jupyter 'jupyter
'treemacs 'treemacs
'yasnippet
'winum 'winum
'lsp-treemacs) 'lsp-treemacs)
@ -58,6 +59,15 @@ Missing packages are automatically installed."
(winum-mode)) (winum-mode))
(use-package yasnippet
:ensure t
:config
(yas-global-mode 1)) ;; Włącz YASnippet globalnie
(setq yas-snippet-dirs '("~/.emacs.d/snippets")) ;; Ścieżka do własnych snippetów
(use-package yasnippet-snippets
:ensure t
:after yasnippet) ;; Wymaga załadowanego yasnippet
@ -261,6 +271,8 @@ Missing packages are automatically installed."
(setq company-minimum-prefix-length 1) ;; Minimalna długość prefiksu dla podpowiedzi (setq company-minimum-prefix-length 1) ;; Minimalna długość prefiksu dla podpowiedzi
(setq company-selection-wrap-around t)) ;; Zawijanie w menu podpowiedzi (setq company-selection-wrap-around t)) ;; Zawijanie w menu podpowiedzi
;; ---------------------------- ;; ----------------------------
;; Magit i zarządzanie projektami ;; Magit i zarządzanie projektami
;; ---------------------------- ;; ----------------------------

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Location Vector
# key: locv
# --
Location(Vector(0,0,0),(0,0,0))