aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorame <[email protected]>2024-04-17 20:59:39 -0500
committerame <[email protected]>2024-04-17 20:59:39 -0500
commit6c3a3a466f9412b1e1b3033aaad43a1e7c634358 (patch)
tree382320b4e816eb92adbb4303c5c0784ed76a48d0
parente0c7143a32254bb326dc97555e7bd787ebf1481d (diff)
meow
-rw-r--r--init.lua8
-rw-r--r--lua/config/whichkey.lua4
-rw-r--r--lua/opt.lua2
-rw-r--r--lua/startup/themes/e.lua132
4 files changed, 142 insertions, 4 deletions
diff --git a/init.lua b/init.lua
index dc1a74e..7ad12b4 100644
--- a/init.lua
+++ b/init.lua
@@ -58,8 +58,12 @@ return require('packer').startup(function(use)
use 'DNLHC/glance.nvim'
use 'marko-cerovac/material.nvim'
use 'Abstract-IDE/Abstract-cs'
- use 'nvim-telescope/telescope.nvim'
- use 'ggandor/flit.nvim'
+ use {
+ 'nvim-telescope/telescope.nvim', tag = '0.1.6',
+ -- or , branch = '0.1.x',
+ requires = { {'nvim-lua/plenary.nvim'} }
+ }
+ use 'ggandor/flit.nvim'
use 'RRethy/nvim-base16'
use 'lewis6991/impatient.nvim'
use 'danilamihailov/beacon.nvim'
diff --git a/lua/config/whichkey.lua b/lua/config/whichkey.lua
index 732d422..2f08465 100644
--- a/lua/config/whichkey.lua
+++ b/lua/config/whichkey.lua
@@ -63,7 +63,9 @@ function M.setup()
["f"] = { "<cmd>Telescope find_files<CR>", "find files" },
["b"] = { "<cmd>Telescope git_branches<CR>", "git branches" },
["c"] = { "<cmd>Telescope git_commits<CR>", "git commits" },
- ["l"] = { "<cmd>Telescope live_grep<CR>", "ripgrep" }
+ ["l"] = { "<cmd>Telescope live_grep<CR>", "ripgrep" },
+ ["z"] = { "<cmd>Telescope current_buffer_fuzzy_find<CR>", "fuzzy" },
+
},
["z"] = {
name = "packer",
diff --git a/lua/opt.lua b/lua/opt.lua
index 86a3b4b..a811fd0 100644
--- a/lua/opt.lua
+++ b/lua/opt.lua
@@ -7,7 +7,7 @@ require('startup').setup({theme = 'evil'})
require('gitsigns').setup()
--require("nvim-tree").setup()
require('telescope').setup()
-require('hardtime').setup({enabled=false})
+--require('hardtime').setup({enabled=false})
require('hex').setup()
require("todo-comments").setup{}
require('toggleterm').setup({
diff --git a/lua/startup/themes/e.lua b/lua/startup/themes/e.lua
new file mode 100644
index 0000000..b26978a
--- /dev/null
+++ b/lua/startup/themes/e.lua
@@ -0,0 +1,132 @@
+local settings = {
+ -- every line should be same width without escaped \
+ header = {
+ type = "text",
+ align = "center",
+ fold_section = false,
+ title = "Header",
+ margin = 5,
+ content = require("startup.headers").hydra_header,
+ highlight = "Statement",
+ default_color = "",
+ oldfiles_amount = 0,
+ },
+ header_2 = {
+ type = "text",
+ oldfiles_directory = false,
+ align = "center",
+ fold_section = false,
+ title = "Quote",
+ margin = 5,
+ content = require("startup.functions").quote(),
+ highlight = "Constant",
+ default_color = "",
+ oldfiles_amount = 0,
+ },
+ -- name which will be displayed and command
+ body = {
+ type = "mapping",
+ align = "center",
+ fold_section = true,
+ title = "Basic Commands",
+ margin = 5,
+ content = {
+ { " Find File", "Telescope find_files", "<leader>ff" },
+ { " Find Word", "Telescope live_grep", "<leader>lg" },
+ { " Recent Files", "Telescope oldfiles", "<leader>of" },
+ { " File Browser", "Telescope file_browser", "<leader>fb" },
+ { " Colorschemes", "Telescope colorscheme", "<leader>cs" },
+ { " New File", "lua require'startup'.new_file()", "<leader>nf" },
+ },
+ highlight = "String",
+ default_color = "",
+ oldfiles_amount = 0,
+ },
+ body_2 = {
+ type = "oldfiles",
+ oldfiles_directory = true,
+ align = "center",
+ fold_section = true,
+ title = "Oldfiles of Directory",
+ margin = 5,
+ content = {},
+ highlight = "String",
+ default_color = "#FFFFFF",
+ oldfiles_amount = 5,
+ },
+ footer = {
+ type = "oldfiles",
+ oldfiles_directory = false,
+ align = "center",
+ fold_section = true,
+ title = "Oldfiles",
+ margin = 5,
+ content = { "startup.nvim" },
+ highlight = "TSString",
+ default_color = "#FFFFFF",
+ oldfiles_amount = 5,
+ },
+
+ clock = {
+ type = "text",
+ content = function()
+ local clock = " " .. os.date("%H:%M")
+ local date = " " .. os.date("%d-%m-%y")
+ return { clock, date }
+ end,
+ oldfiles_directory = false,
+ align = "center",
+ fold_section = false,
+ title = "",
+ margin = 5,
+ highlight = "TSString",
+ default_color = "#FFFFFF",
+ oldfiles_amount = 10,
+ },
+
+ footer_2 = {
+ type = "text",
+ content = require("startup.functions").packer_plugins(),
+ oldfiles_directory = false,
+ align = "center",
+ fold_section = false,
+ title = "",
+ margin = 5,
+ highlight = "TSString",
+ default_color = "#FFFFFF",
+ oldfiles_amount = 10,
+ },
+
+ options = {
+ after = function()
+ require("startup.utils").oldfiles_mappings()
+ end,
+ mapping_keys = true,
+ cursor_column = 0.5,
+ empty_lines_between_mappings = true,
+ disable_statuslines = true,
+ paddings = { 2, 2, 2, 2, 2, 2, 2 },
+ },
+ mappings = {
+ execute_command = "<CR>",
+ open_file = "o",
+ open_file_split = "<c-o>",
+ open_section = "<TAB>",
+ open_help = "?",
+ },
+ colors = {
+ background = "#1f2227",
+ folded_section = "#56b6c2",
+ },
+ parts = {
+ "header",
+ "header_2",
+ "body",
+ "body_2",
+ "footer",
+ "clock",
+ "footer_2",
+ },
+}
+return settings
+