mirror of
https://github.com/gabehf/nvim-conf.git
synced 2026-03-11 00:10:30 -07:00
more configs
This commit is contained in:
parent
0d5af9ff94
commit
84fcaa87fa
5 changed files with 83 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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>")
|
||||
|
|
|
|||
|
|
@ -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")
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue