diff options
Diffstat (limited to 'lua/snippets')
-rw-r--r-- | lua/snippets/c.lua | 2 | ||||
-rw-r--r-- | lua/snippets/java.lua | 4 | ||||
-rw-r--r-- | lua/snippets/make.lua | 47 | ||||
-rw-r--r-- | lua/snippets/norg.lua | 4 | ||||
-rw-r--r-- | lua/snippets/openscad.lua | 2 | ||||
-rw-r--r-- | lua/snippets/php.lua | 2 | ||||
-rw-r--r-- | lua/snippets/tex.lua | 4 |
7 files changed, 9 insertions, 56 deletions
diff --git a/lua/snippets/c.lua b/lua/snippets/c.lua index be0a683..88a503f 100644 --- a/lua/snippets/c.lua +++ b/lua/snippets/c.lua @@ -1,4 +1,4 @@ -require('core.snippets.shorthands') +require("core.snippets.shorthands") --- create a decleration of a function from it's definition using treesitter ---@param func string diff --git a/lua/snippets/java.lua b/lua/snippets/java.lua index ebd1233..1cb8162 100644 --- a/lua/snippets/java.lua +++ b/lua/snippets/java.lua @@ -1,5 +1,5 @@ -require('core.snippets.shorthands') -require('core.snippets.functions') +require("core.snippets.shorthands") +require("core.snippets.functions") --- shortcut to choose between java access modifiers ---@param idx number index of the node diff --git a/lua/snippets/make.lua b/lua/snippets/make.lua deleted file mode 100644 index fefdf92..0000000 --- a/lua/snippets/make.lua +++ /dev/null @@ -1,47 +0,0 @@ -require('core.snippets.shorthands') - -return { - -- basic make template snippet - s("make", { - t({ "PKG_CONFIG = pkg-config", "CC = cc", "VERSION = " }), - i(1, "0.1"), - t({ "", "", "# flags and incs", "PKGS = " }), - i(2), - t({ "", "CFLAGS = -DVERSION=\\\"$(VERSION)\\\" -Wall" }), - i(3), - t({ "", "LIBS = `$(PKG_CONFIG) --libs --cflags $(PKGS)`" }), - i(4), - t({ "", "", "PREFIX = " }), - i(5, "/usr/local"), - t({ "", "MANDIR = $(PREFIX)/share/man" }), - t({ "", "", "all: " }), - i(6, "main"), - t({ "", "" }), - rep(6), - t(": "), - rep(6), - t({ ".o", "\t$(CC) *.o $(CFLAGS) $(LIBS) -o $@", "" }), - rep(6), - t(".o: "), - rep(6), - t({ ".c", "", "clean:", "\trm -f " }), - rep(6), - t({ " *.o", "", "install: " }), - rep(6), - t({ "", "\tmkdir -p $(PREFIX)/bin", "\tcp -f " }), - rep(6), - t({ " $(PREFIX)/bin", "\tchmod 755 $(PREFIX)/bin/" }), - rep(6), - t({ "", "\tmkdir -p $(MANDIR)/man1", "\tcp -f " }), - rep(6), - t({ ".1 $(MANDIR)/man1", "\tchmod 644 $(MANDIR)/man1/" }), - rep(6), - t({ ".1", "", "uninstall: " }), - rep(6), - t({ "", "\trm -f $(PREFIX)/bin/" }), - rep(6), - t(" $(MANDIR)/man1/"), - rep(6), - t(".1") - }) -} diff --git a/lua/snippets/norg.lua b/lua/snippets/norg.lua index 588ec4f..67d3964 100644 --- a/lua/snippets/norg.lua +++ b/lua/snippets/norg.lua @@ -1,5 +1,5 @@ -require('core.snippets.shorthands') -require('core.snippets.functions') +require("core.snippets.shorthands") +require("core.snippets.functions") return { -- header level 1, usually this has the same name as the file diff --git a/lua/snippets/openscad.lua b/lua/snippets/openscad.lua index c430f2d..caf19b9 100644 --- a/lua/snippets/openscad.lua +++ b/lua/snippets/openscad.lua @@ -1,4 +1,4 @@ -require('core.snippets.shorthands') +require("core.snippets.shorthands") return { -- translate snippet diff --git a/lua/snippets/php.lua b/lua/snippets/php.lua index 93713a4..88c542f 100644 --- a/lua/snippets/php.lua +++ b/lua/snippets/php.lua @@ -1,4 +1,4 @@ -require('core.snippets.shorthands') +require("core.snippets.shorthands") return { s("php", { diff --git a/lua/snippets/tex.lua b/lua/snippets/tex.lua index 0e87437..f7fdfed 100644 --- a/lua/snippets/tex.lua +++ b/lua/snippets/tex.lua @@ -1,5 +1,5 @@ -require('core.snippets.shorthands') -require('core.snippets.functions') +require("core.snippets.shorthands") +require("core.snippets.functions") return { -- document snippet |