summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/custom-neovim/config')
-rw-r--r--pkgs/custom-neovim/config/init.lua1
-rw-r--r--pkgs/custom-neovim/config/lua/art.lua2
-rw-r--r--pkgs/custom-neovim/config/lua/colorscheme.lua21
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/alpha.lua3
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/dashboard.lua15
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/mini/starter.lua18
6 files changed, 20 insertions, 40 deletions
diff --git a/pkgs/custom-neovim/config/init.lua b/pkgs/custom-neovim/config/init.lua
index c1007bb..2aee2a2 100644
--- a/pkgs/custom-neovim/config/init.lua
+++ b/pkgs/custom-neovim/config/init.lua
@@ -6,6 +6,7 @@ require("art")
require("options")
require("mappings")
require("autocommands")
+require("colorscheme")
require("neovide")
-- Require plugin configs.
diff --git a/pkgs/custom-neovim/config/lua/art.lua b/pkgs/custom-neovim/config/lua/art.lua
index ae5b8c9..f36a5d9 100644
--- a/pkgs/custom-neovim/config/lua/art.lua
+++ b/pkgs/custom-neovim/config/lua/art.lua
@@ -1,6 +1,6 @@
-- Credits to the ascii.nvim plugin and jgs on the ascii art archive.
-art = {
+Art = {
space = {
saturn = {
[[ ~+ ]],
diff --git a/pkgs/custom-neovim/config/lua/colorscheme.lua b/pkgs/custom-neovim/config/lua/colorscheme.lua
index 59cb970..82e1420 100644
--- a/pkgs/custom-neovim/config/lua/colorscheme.lua
+++ b/pkgs/custom-neovim/config/lua/colorscheme.lua
@@ -9,8 +9,19 @@ local link_highlight = function(first_highlight, second_highlight)
vim.cmd.highlight {bang = true, "link", first_highlight, second_highlight}
end
-if correct_borderless_windows then
- link_highlight("TelescopeBorder", "Comment")
- link_highlight("TelescopeResultsTitle", "Comment")
- link_highlight("TelescopePreviewTitle", "Comment")
-end
+vim.api.nvim_create_autocmd({"ColorScheme", "VimEnter"}, {
+ callback = function()
+ -- Fixes some colorschemes having borderless floating windows.
+ if correct_borderless_windows then
+ link_highlight("FloatBorder", "Comment")
+
+ link_highlight("TelescopeBorder", "Comment")
+ link_highlight("TelescopeResultsTitle", "Variable")
+ link_highlight("TelescopePreviewTitle", "Variable")
+ link_highlight("TelescopePromptTitle", "Variable")
+ link_highlight("TelescopePromptNormal", "Variable")
+ link_highlight("TelescopePromptBorder", "Variable")
+ link_highlight("TelescopePromptPrefix", "Variable")
+ end
+ end,
+})
diff --git a/pkgs/custom-neovim/config/lua/plugins/alpha.lua b/pkgs/custom-neovim/config/lua/plugins/alpha.lua
index e0fa7e9..42ad1e4 100644
--- a/pkgs/custom-neovim/config/lua/plugins/alpha.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/alpha.lua
@@ -2,7 +2,7 @@ local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
-- Set header
-dashboard.section.header.val = art.misc.hydra
+dashboard.section.header.val = Art.misc.hydra
-- Set menu
dashboard.section.buttons.val = {
@@ -25,3 +25,4 @@ vim.api.nvim_create_autocmd("BufEnter", {
vim.opt_local.number = false
end,
})
+
diff --git a/pkgs/custom-neovim/config/lua/plugins/dashboard.lua b/pkgs/custom-neovim/config/lua/plugins/dashboard.lua
deleted file mode 100644
index f8458c9..0000000
--- a/pkgs/custom-neovim/config/lua/plugins/dashboard.lua
+++ /dev/null
@@ -1,15 +0,0 @@
-require('dashboard').setup {
- theme = "doom",
- config = {
- header = art.misc.hydra,
- center = {
- {
- icon = " ",
- desc = "Find file",
- key = "f",
- action = ":cd $HOME | Telescope find_files<cr>",
- },
- },
- vertical_center = true,
- },
-}
diff --git a/pkgs/custom-neovim/config/lua/plugins/mini/starter.lua b/pkgs/custom-neovim/config/lua/plugins/mini/starter.lua
deleted file mode 100644
index c05483a..0000000
--- a/pkgs/custom-neovim/config/lua/plugins/mini/starter.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local starter = require('mini.starter')
-local my_items = {
- { name = 'Item #1 from function', action = "echo 'Item #1'", section = '' },
- { name = [[Another item in 'Section 1']], action = 'lua print(math.random() + 10)', section = '' },
-}
-starter.setup({
- evaluate_single = true,
- header = table.concat(art.misc.hydra, "\n"),
- footer = "",
- items = my_items,
- content_hooks = {
- -- starter.gen_hook.adding_bullet(),
- -- starter.gen_hook.indexing('all', { 'Builtin actions' }),
- starter.gen_hook.aligning('center', 'center'),
- starter.gen_hook.padding(0, 0),
- },
-})
-