From fd7efe5a5d11a4b5bf3caaad684cd2b9acc4059e Mon Sep 17 00:00:00 2001 From: max397574 Date: Wed, 6 Oct 2021 18:34:26 +0200 Subject: =?UTF-8?q?feat(settings):=20=E2=9C=A8started=20skeleton?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- settings_skeleton.lua | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 settings_skeleton.lua (limited to 'settings_skeleton.lua') diff --git a/settings_skeleton.lua b/settings_skeleton.lua new file mode 100644 index 0000000..cb0078d --- /dev/null +++ b/settings_skeleton.lua @@ -0,0 +1,45 @@ +-- theme template (kinda) +local settings = { + header = { + type = "text", + content = { + " /$$ ", + " |__/ ", + " /$$$$$$$ /$$$$$$ /$$$$$$ /$$ /$$ /$$ /$$$$$$/$$$$ ", + "| $$__ $$ /$$__ $$ /$$__ $$| $$ /$$/| $$| $$_ $$_ $$", + "| $$ \\ $$| $$$$$$$$| $$ \\ $$ \\ $$/$$/ | $$| $$ \\ $$ \\ $$", + "| $$ | $$| $$_____/| $$ | $$ \\ $$$/ | $$| $$ | $$ | $$", + "| $$ | $$| $$$$$$$| $$$$$$/ \\ $/ | $$| $$ | $$ | $$", + "|__/ |__/ \\_______/ \\______/ \\_/ |__/|__/ |__/ |__/", + }, + }, + body = { + content = { + [" Find File"] = { "Telescope find_files", "ff" }, + [" Find Word"] = { "Telescope live_grep", "lg" }, + [" Recent Files"] = { "Telescope oldfiles", "of" }, + [" File Browser"] = { "Telescope file_browser", "fb" }, + [" Config Files"] = { + 'lua require("telescope.builtin").find_files({cwd="~/.config"})', + "cf", + }, + [" Colorschemes"] = { "Telescope colorscheme", "cs" }, + [" New File"] = { "lua require'startup'.new_file()", "nf" }, + ["ﲉ Help Files"] = { "Telescope help_tags", "fh" }, + }, + }, + footer = {}, +} +return settings + +--[[ +type can be text or mapping + +text -> table with strings in it, can also be from a function +in function additional stuff can be done/defined +mapping -> ["title that will be displayed"] = { "command", "keys"} +e.g. [" Find File"] = { "Telescope find_files", "ff" }, +symbols can be found at +https://www.nerdfonts.com/cheat-sheet +]] +-- -- cgit v1.2.3