more configs

This commit is contained in:
Gabe Farrell 2024-04-09 23:58:05 -04:00
parent 0d5af9ff94
commit 84fcaa87fa
5 changed files with 83 additions and 2 deletions

View file

@ -11,6 +11,44 @@ M.ui = {
Comment = { italic = true },
["@comment"] = { italic = true },
},
tabufline = {
lazyload = false,
},
nvdash = {
load_on_startup = true,
header = {
[[ ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ]],
[[ ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ]],
[[ ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ]],
[[ ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ]],
[[ ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ]],
[[ ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ]],
},
buttons = {
{ " Find File", "Spc f f", "Telescope find_files" },
{ "󰈚 Recent Files", "Spc f o", "Telescope oldfiles" },
{ "󰈭 Find Word", "Spc f w", "Telescope live_grep" },
{ " Bookmarks", "Spc m a", "Telescope marks" },
{ " Themes", "Spc t h", "Telescope themes" },
{ " Mappings", "Spc c h", "NvCheatsheet" },
},
},
}
-- M.plugins = {
-- default_plugin_config_replace = {
-- nvim_tree = {
-- renderer = {
-- icons = {
-- git = {
-- unstaged = "❖",
-- },
-- },
-- },
-- },
-- },
-- }
return M

View file

@ -15,5 +15,6 @@ map("i", "jk", "<ESC>")
-- custom Leader binds
map("n", "<Leader>sd", ":s/", { desc = "Shortcut to sed" })
map("n", "<Leader>qq", ":wqa<CR>", { desc = "Write all and quit all" })
map("n", "<Leader>qq", ":qa<CR>", { desc = "Write all and quit all" })
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")

View file

@ -7,6 +7,7 @@ vim.opt.mouse = ""
vim.opt.shiftwidth = 4
vim.opt.tabstop = 4
-- optimization for WSL
vim.api.nvim_create_autocmd({ "BufReadPost", "BufNewFile" }, {
once = true,
callback = function()
@ -64,3 +65,14 @@ vim.api.nvim_create_autocmd("BufWritePre", {
local o = vim.o
o.cursorlineopt = "both" -- to enable cursorline!
-- Highlight on yank
vim.api.nvim_create_autocmd("TextYankPost", {
desc = "Highlight when yanking (copying) text",
group = vim.api.nvim_create_augroup("highlight-yank", { clear = true }),
callback = function()
vim.highlight.on_yank { timeout = 500 }
end,
})
-- require("nvim-tree").setup(require "configs.nvimtree")

View file

@ -10,7 +10,7 @@ return {
"ray-x/go.nvim",
lazy = false,
dependencies = { -- optional packages
-- "ray-x/guihua.lua",
"ray-x/guihua.lua",
"neovim/nvim-lspconfig",
"nvim-treesitter/nvim-treesitter",
},