Dodana obsługa snippets
This commit is contained in:
12
init.el
12
init.el
@@ -40,6 +40,7 @@ Missing packages are automatically installed."
|
||||
'company
|
||||
'jupyter
|
||||
'treemacs
|
||||
'yasnippet
|
||||
'winum
|
||||
'lsp-treemacs)
|
||||
|
||||
@@ -58,6 +59,15 @@ Missing packages are automatically installed."
|
||||
(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-selection-wrap-around t)) ;; Zawijanie w menu podpowiedzi
|
||||
|
||||
|
||||
|
||||
;; ----------------------------
|
||||
;; Magit i zarządzanie projektami
|
||||
;; ----------------------------
|
||||
|
||||
5
snippets/python-mode/locv
Normal file
5
snippets/python-mode/locv
Normal file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Location Vector
|
||||
# key: locv
|
||||
# --
|
||||
Location(Vector(0,0,0),(0,0,0))
|
||||
Reference in New Issue
Block a user