all repos

init.lua @ 9f7e841

my nvim config
3 files changed, 20 insertions(+), 0 deletions(-)
feat: added some things with snacks
Author: Oleksandr Smirnov olexsmir@gmail.com
Committed at: 2025-05-15 19:50:48 +0300
Parent: 511b285
M lua/core/autocmd.lua

@@ -38,3 +38,15 @@ "1", -- don't break a line after a one-letter word

} end, }) + +u.aucmd("User", { + pattern = "OilActionsPost", + callback = function(ev) + if ev.data.actions.type == "move" then + Snacks.rename.on_rename_file( + ev.data.actions.src_url, + ev.data.actions.dest_url + ) + end + end, +})
M lua/plugins/lsp/lazydev.lua

@@ -23,6 +23,7 @@ library = {

{ path = "${3rd}/luv/library", words = { "vim%.uv" } }, { path = "mini.test", words = { "MiniTest" } }, { path = "mini.ai", words = { "MiniAI" } }, + "snacks.nvim", "lazy.nvim", }, },
M lua/plugins/mini.lua

@@ -48,5 +48,12 @@ enabled = true,

doc = { inline = false }, }, }, + config = function(_, opts) + require("snacks").setup(opts) + + vim.api.nvim_create_user_command("SnacksScratch", function() + Snacks.scratch() + end, { nargs = 0 }) + end, }, }