summaryrefslogtreecommitdiff
path: root/pkgs/custom-neovim/config/lua/plugins
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2025-07-09 13:11:23 -0400
committertriethyl <triethylammonium@pm.me>2025-07-09 13:11:23 -0400
commit4afdfee5c1ce99a09fc70075ca674b961fd3faed (patch)
tree081ca3902f26af9378113257c62bc75bd8903811 /pkgs/custom-neovim/config/lua/plugins
parentd65a4b2e6fb66f51b21da8d5397f89ea1c2aaedc (diff)
working on custom neovim
Former-commit-id: 4baf1a9c64b861ce1a934487b93b36bdb1438cf3
Diffstat (limited to 'pkgs/custom-neovim/config/lua/plugins')
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/alpha.lua13
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/dashboard.lua14
-rw-r--r--pkgs/custom-neovim/config/lua/plugins/persisted.lua3
3 files changed, 19 insertions, 11 deletions
diff --git a/pkgs/custom-neovim/config/lua/plugins/alpha.lua b/pkgs/custom-neovim/config/lua/plugins/alpha.lua
index 5ccdc3f..6599bdb 100644
--- a/pkgs/custom-neovim/config/lua/plugins/alpha.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/alpha.lua
@@ -8,7 +8,7 @@ dashboard.section.header.val = art.misc.hydra
dashboard.section.buttons.val = {
dashboard.button( "f", " > Find file", ":cd $HOME | Telescope find_files<CR>"),
dashboard.button( "r", " > Find recent file", ":Telescope oldfiles<CR>"),
- dashboard.button( "s", " > Load session", ""),
+ dashboard.button( "s", " > Load session", ":Telescope persisted<cr>"),
dashboard.button( "q", " > Quit", ":qa<CR>"),
}
@@ -20,14 +20,7 @@ vim.api.nvim_create_autocmd("BufEnter", {
pattern = "alpha",
callback = function()
vim.opt_local.foldenable = false -- disable folding
+ vim.opt_local.relativenumber = false
+ vim.opt_local.number = false
end,
})
-
--- Refresh dashboard when window resized.
-vim.api.nvim_create_autocmd("VimResized", {
- -- pattern = "alpha",
- callback = function()
- print("redrawn")
- vim.cmd.AlphaRedraw()
- end
-})
diff --git a/pkgs/custom-neovim/config/lua/plugins/dashboard.lua b/pkgs/custom-neovim/config/lua/plugins/dashboard.lua
index 4824c04..f8458c9 100644
--- a/pkgs/custom-neovim/config/lua/plugins/dashboard.lua
+++ b/pkgs/custom-neovim/config/lua/plugins/dashboard.lua
@@ -1,3 +1,15 @@
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/persisted.lua b/pkgs/custom-neovim/config/lua/plugins/persisted.lua
new file mode 100644
index 0000000..d3a5814
--- /dev/null
+++ b/pkgs/custom-neovim/config/lua/plugins/persisted.lua
@@ -0,0 +1,3 @@
+require("persisted").setup()
+
+require("telescope").load_extension("persisted")