diff --git a/programs/vim/default.nix b/programs/vim/default.nix index 419077f..dece322 100644 --- a/programs/vim/default.nix +++ b/programs/vim/default.nix @@ -1,7 +1,8 @@ { imports = [ - ./extraLua.nix + ./startup.nix + ./telescope.nix ./lsp.nix ./colorScheme.nix ]; diff --git a/programs/vim/extraLua.nix b/programs/vim/extraLua.nix deleted file mode 100644 index cdf7088..0000000 --- a/programs/vim/extraLua.nix +++ /dev/null @@ -1,6 +0,0 @@ -{ - extraConfigLua = '' - vim.api.nvim_command('set number') - print("Welcome to Vim, Hertog! :3") - ''; -} diff --git a/programs/vim/file_browser.nix b/programs/vim/file_browser.nix new file mode 100644 index 0000000..f67fc58 --- /dev/null +++ b/programs/vim/file_browser.nix @@ -0,0 +1,10 @@ +{ + plugins.telescope = { + enable = true; + extensions = { + filebrowser = { + enable = true; + }; + }; + }; +} diff --git a/programs/vim/startup.nix b/programs/vim/startup.nix new file mode 100644 index 0000000..8805d49 --- /dev/null +++ b/programs/vim/startup.nix @@ -0,0 +1,97 @@ +{ + plugins.startup = { + enable = true; + extraOptions= { + keygen_church = { + type = "text"; + title = "PRAISE THE CODE"; + defaultColor = "#FF0000"; + highlight = ""; + margin = 5; + align = "center"; + content = [ + " █ " + " ▓ █ ▓ " + " ░█░ " + " █ " + " ▓ █ ▓ " + " █ ▓ █ ▓ █ " + " ▓ █ ▒ █ ▓ █ ▓ █ ▒ █ ▓ " + " ▒ ▓ █ ▒ ▓ █ ▓ █ ▓ █ ▓ ▒ █ ▓ ▒ " + " ░ ▒ ▓ █ ▒ ▓ █ ▓ █ ▓ █ ▓ ▒ █ ▓ ▒ ░ " + "░ ░ ▒ ▓ █ ▒ ▓ █ ▓ █ ▓ █ ▓ ▒ █ ▓ ▒ ░ ░" + " ▓ █ ▓ █ ▓ █ ▓ " + " ▓ ▓ ▓ ▓ ▓ ▓ " + " ▒ ▓ ▒ ▓ ▓ ▓ ▒ ▓ ▒ " + " ░▒▓▒░ ▒ ▒ ▒ ░▒▓▒░ " + " ▓ ▓ ░░░▒░░░ ▓ ▓ " + " ▓ ▒ ▒ ▒ ▓ " + " ▒ ░░░░▒▒▒▒▒░░░░ ▒ " + " ▒ ▒ ▒ " + " ░ ▓▒░░▒░░▒▓ ░ " + " ░ ▒ ▒ ░ " + " ▒ ▒ " + " ▒ ▒ " + " ▒▒▒ " + ]; + oldfilesAmount = 0; + }; + praise = { + type = "text"; + content = ["PRAISE THE CODE"]; + align = "center"; + highlight = ""; + defautlColor = "#CCCCCC"; + }; + piano = { + type = "text"; + align = "center"; + highlight = ""; + defaultColor = "#FF0000"; + content = [ + "░▓░▓░░▓░▓░▓░░▓░▓░░▓░▓░▓░░" + "░░░░░░░░░░░░░░░░░░░░░░░░░" + ]; + }; + body = { + type = "mapping"; + align = "center"; + foldSection = false; + title = "Commands"; + margin = 0; + content = [ + [ "READ AS IS WRITTEN" "Telescope find_files" "f" ] # Requires telescope + [ "THE OLD CODE REMAINS" "Telescope oldfiles" "r" ] # Requires telescope + [ "WANDER THROUGH THE ARCHIVES" "Telescope file_browser" "b" ] # Requires telescope and file_browser + [ "REMEMBER ALL THAT HAS BEEN" "Telescope git_commits" "l" ] # Requires telescope + [ "AWAIT ALL THAT WILL" "Telescope git_status" "s" ] # Requires telescope + [ "RECORD FOR THOSE TO COME" "lua require'startup'.new_file()" "n" ] + ]; + highlight = ""; + default_color = "#BF0000"; + }; + options = { + mappingKeys = true; + disableStatuslines = true; + cursonColum = 0.5; + paddings = [ 10 1 1 0]; + }; + mappings = { + executeCommand = ""; + openFile = "o"; + openFileSplit = ""; + openSection = ""; + openHelp = "?"; + }; + colors = { + background = "#000000"; + }; + parts = [ + "keygen_church" + "praise" + "body" + "piano" + ]; + }; + }; +} diff --git a/programs/vim/telescope.nix b/programs/vim/telescope.nix new file mode 100644 index 0000000..68a5112 --- /dev/null +++ b/programs/vim/telescope.nix @@ -0,0 +1,5 @@ +{ + plugins.telescope = { + enable = true; + }; +}