mirror of
https://github.com/tiyn/dotfiles.git
synced 2026-03-19 14:44:46 +01:00
updated neovim to use modern lazy
This commit is contained in:
32
.config/nvim/lua/autocmd.lua
Normal file
32
.config/nvim/lua/autocmd.lua
Normal file
@@ -0,0 +1,32 @@
|
||||
-- highlighting yanked regions
|
||||
vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
callback = function()
|
||||
vim.highlight.on_yank({ higroup = "YankHighlight" })
|
||||
end,
|
||||
})
|
||||
|
||||
-- -- gnikdroy/projections.nvim
|
||||
-- local Session = require("projections.session")
|
||||
-- vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
|
||||
-- callback = function()
|
||||
-- Session.store(vim.loop.cwd())
|
||||
-- end,
|
||||
-- })
|
||||
--
|
||||
-- vim.api.nvim_create_autocmd({ "VimEnter" }, {
|
||||
-- callback = function()
|
||||
-- if vim.fn.argc() ~= 0 then
|
||||
-- return
|
||||
-- end
|
||||
-- local session_info = Session.info(vim.loop.cwd())
|
||||
-- if session_info ~= nil then
|
||||
-- Session.restore(vim.loop.cwd())
|
||||
-- end
|
||||
-- end,
|
||||
-- desc = "Restore last session automatically",
|
||||
-- })
|
||||
|
||||
-- stevearc/oil.nvim
|
||||
vim.api.nvim_create_user_command("Renamer", function(opts)
|
||||
vim.cmd("Oil " .. opts.args)
|
||||
end, { nargs = "*" })
|
||||
Reference in New Issue
Block a user