summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/configs/lazyvim.lua
diff options
context:
space:
mode:
authorcryxtalix <fgx8p9t@protonmail.com>2026-05-09 00:15:07 +0800
committercryxtalix <fgx8p9t@protonmail.com>2026-05-09 00:15:07 +0800
commit8fbf7c2a9ce92b97941bff2c8b52c1d52d9834d2 (patch)
treeaa4cb6f169758fb9abdcf5b378a1a8ccc6902344 /.config/nvim/lua/configs/lazyvim.lua
parent1302056eddd9a69ea2d0ffdf8bedd8582fb5a907 (diff)
Update
Diffstat (limited to '.config/nvim/lua/configs/lazyvim.lua')
-rw-r--r--.config/nvim/lua/configs/lazyvim.lua40
1 files changed, 0 insertions, 40 deletions
diff --git a/.config/nvim/lua/configs/lazyvim.lua b/.config/nvim/lua/configs/lazyvim.lua
deleted file mode 100644
index 0b643b4..0000000
--- a/.config/nvim/lua/configs/lazyvim.lua
+++ /dev/null
@@ -1,40 +0,0 @@
-local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
-if not vim.loop.fs_stat(lazypath) then
- vim.fn.system({
- "git",
- "clone",
- "--filter=blob:none",
- "https://github.com/folke/lazy.nvim.git",
- "--branch=stable", -- latest stable release
- lazypath,
- })
-end
-vim.opt.rtp:prepend(lazypath)
-
--- Rename Tmux Window to File Opened by Neovim
--- https://github.com/Dyslectric/neovim-tmux-window-rename
-if vim.env.TMUX ~= nil then
- -- Define an autocommand for BufEnter and FocusGained events
- vim.api.nvim_create_autocmd({"BufEnter", "FocusGained"}, {
- pattern = "*",
- callback = function()
- local file_name = vim.fn.expand("%:t")
- local folder_name = vim.fn.expand("%:p:h:t")
- local tmux_command = string.format(
- "tmux rename-window 'Nv:%s/%s'", folder_name, file_name
- )
- vim.fn.system(tmux_command)
- end
- })
-
- -- Define an autocommand for the VimLeave event
- vim.api.nvim_create_autocmd("VimLeave", {
- pattern = "*",
- callback = function()
- local shell = vim.env.SHELL or "sh"
- vim.fn.system("tmux set-window-option automatic-rename on")
- end
- })
-end
-
-require("lazy").setup("plugins")