Updates to most things, new keybinds, local terminal.

This commit is contained in:
calcu1on
2025-02-14 23:19:38 -05:00
parent d7645de63d
commit 87b443444c
10 changed files with 70 additions and 89 deletions

9
lua/plugins/ahoy.lua Normal file
View File

@@ -0,0 +1,9 @@
return {
-- dir = "/Users/danchadwick/Projects/neovim/ahoy.nvim",
"calcu1on/ahoy.nvim",
config = function()
local ahoy = require('ahoy')
vim.keymap.set('n', '<leader>sf', function() ahoy.save_file() end)
end
}

View File

@@ -1,76 +0,0 @@
return {
"goolord/alpha-nvim",
event = "VimEnter", -- load plugin after all configuration is set
dependencies = {
"nvim-tree/nvim-web-devicons",
},
config = function()
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")
dashboard.section.header.val = {
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[ ]],
[[  ]],
[[ ████ ██████ █████ ██ ]],
[[ ███████████ █████  ]],
[[ █████████ ███████████████████ ███ ███████████ ]],
[[ █████████ ███ █████████████ █████ ██████████████ ]],
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
[[ ]],
[[ ]],
[[ ]],
}
_Gopts = {
position = "center",
hl = "Type",
-- wrap = "overflow";
}
-- Set menu
dashboard.section.buttons.val = {
-- dashboard.button("SPC j", "󰈚 Restore Session", ":SessionRestore<cr>"),
dashboard.button("e", " New file", ":ene <BAR> startinsert <CR>"),
dashboard.button("f", " Find file", ":cd $HOME/dotfiles/.config | Telescope find_files<CR>"),
dashboard.button("g", "󰱼 Find word", ":Telescope live_grep<CR>"),
dashboard.button("r", " Recent", ":Telescope oldfiles<CR>"),
dashboard.button("c", " Config", ":e $MYVIMRC <CR>"),
dashboard.button("m", "󱌣 Mason", ":Mason<CR>"),
dashboard.button("l", "󰒲 Lazy", ":Lazy<CR>"),
dashboard.button("u", "󰂖 Update plugins", "<cmd>lua require('lazy').sync()<CR>"),
dashboard.button("q", " Quit NVIM", ":qa<CR>"),
}
--local function footer()
--return "Mohammed Babiker Babai"
--end
--dashboard.section.footer.val = footer()
dashboard.opts.opts.noautocmd = true
alpha.setup(dashboard.opts)
require("alpha").setup(dashboard.opts)
vim.api.nvim_create_autocmd("User", {
pattern = "LazyVimStarted",
callback = function()
local stats = require("lazy").stats()
local count = (math.floor(stats.startuptime * 100) / 100)
dashboard.section.footer.val = {
"󱐌 " .. stats.count .. " plugins loaded in " .. count .. " ms"
}
pcall(vim.cmd.AlphaRedraw)
end,
})
end,
}

View File

@@ -1,3 +0,0 @@
return {
"renerocksai/calendar-vim"
}

View File

@@ -26,11 +26,11 @@ return {
sorter = conf.generic_sorter({}),
}):find()
end
vim.keymap.set("n", "<C-h>", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window" })
-- vim.keymap.set("n", "<C-h>", function() toggle_telescope(harpoon:list()) end, { desc = "Open harpoon window" })
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
vim.keymap.set("n", "<leader>c", function() harpoon:list():clear() end)
vim.keymap.set("n", "<leader>r", function() harpoon:list():remove() end)
-- vim.keymap.set("n", "<C-h>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
vim.keymap.set("n", "<leader>h", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
-- Toggle previous & next buffers stored within Harpoon list
-- vim.keymap.set("n", "<C-S-P>", function() harpoon:list():prev() end)
-- vim.keymap.set("n", "<C-S-N>", function() harpoon:list():next() end)

View File

@@ -4,7 +4,7 @@ return {
'nvim-tree/nvim-web-devicons'
},
config = function()
require('lualine'). setup({
require('lualine').setup({
options= {
theme = 'dracula'
}

View File

@@ -8,6 +8,6 @@ return {
},
config = function()
vim.keymap.set("n", "<C-n>", ':Neotree filesystem reveal left<CR>', {})
vim.keymap.set("n", "<C-e>", ':Neotree position=current<CR>', {})
vim.keymap.set("n", "<C-e>", ':Neotree filesystem reveal current<CR>', {})
end
}

13
lua/plugins/oil.lua Normal file
View File

@@ -0,0 +1,13 @@
return {
{
'stevearc/oil.nvim',
---@module 'oil'
---@type oil.SetupOpts
opts = {},
-- Optional dependencies
dependencies = { { "echasnovski/mini.icons", opts = {} } },
-- dependencies = { "nvim-tree/nvim-web-devicons" }, -- use if you prefer nvim-web-devicons
-- Lazy loading is not recommended because it is very tricky to make it work correctly in all situations.
lazy = false,
}
}

View File

@@ -1,2 +0,0 @@
return {
}