nvim plugins

* nvim-notify -> snacks.notifier
* snacks.bigfile
* catppuccin
This commit is contained in:
Henrik Bakken
2025-02-09 21:28:12 +01:00
parent a6f32ec3ed
commit e81eb6f712
+31 -12
View File
@@ -110,22 +110,40 @@ require("lazy").setup({
end, { noremap = true }) end, { noremap = true })
end, end,
}, },
-- snacks
{
"folke/snacks.nvim",
priority = 1000,
lazy = false,
---@type snacks.Config
opts = {
bigfile = {
enabled = true,
notify = true, -- show notification when big file detected
size = 1.5 * 1024 * 1024, -- 1.5MB
line_length = 1000, -- average line length (useful for minified files)
-- Enable or disable features when big file detected
---@param ctx {buf: number, ft:string}
setup = function(ctx)
if vim.fn.exists(":NoMatchParen") ~= 0 then
vim.cmd([[NoMatchParen]])
end
Snacks.util.wo(0, { foldmethod = "manual", statuscolumn = "", conceallevel = 0 })
vim.schedule(function()
if vim.api.nvim_buf_is_valid(ctx.buf) then
vim.bo[ctx.buf].syntax = ctx.ft
end
end)
end,
},
notifier = { enabled = true },
},
},
-- div utils -- div utils
"tpope/vim-eunuch", -- Move, Rename etc "tpope/vim-eunuch", -- Move, Rename etc
"dhruvasagar/vim-table-mode", -- tables "dhruvasagar/vim-table-mode", -- tables
"itchyny/vim-qfedit", -- editable quickfix list "itchyny/vim-qfedit", -- editable quickfix list
"mbbill/undotree", "mbbill/undotree",
{
"rcarriga/nvim-notify",
config = function()
require("notify").setup({
timeout = 2500,
background_colour = "#000000",
stages = "fade",
render = "compact",
})
end,
},
{ {
-- keep location upon reopening -- keep location upon reopening
"ethanholz/nvim-lastplace", "ethanholz/nvim-lastplace",
@@ -207,6 +225,7 @@ require("lazy").setup({
"mhartington/oceanic-next", "mhartington/oceanic-next",
"morhetz/gruvbox", "morhetz/gruvbox",
"sonph/onehalf", "sonph/onehalf",
{ "catppuccin/nvim", lazy = false, name = "catppuccin", priority = 1000 },
{ {
"Shatur/neovim-ayu", "Shatur/neovim-ayu",
config = function() config = function()
@@ -990,4 +1009,4 @@ vim.api.nvim_create_autocmd("ColorScheme", {
vim.api.nvim_set_hl(0, "EndOfBuffer", {}) vim.api.nvim_set_hl(0, "EndOfBuffer", {})
end, end,
}) })
vim.cmd("colorscheme OceanicNext") vim.cmd("colorscheme catppuccin-mocha")