This repository has no description
0

Configure Feed

Select the types of activity you want to include in your feed.

1local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" 2if not vim.loop.fs_stat(lazypath) then 3 -- stylua: ignore 4 vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", 5 lazypath }) 6end 7vim.opt.rtp:prepend(lazypath) 8 9vim.api.nvim_create_user_command("RaiseTmuxPane", function() 10 -- run shell command 11 12 local out = vim.fn.system("tmux list-panes -a -F '#I #{pane_tty}'") 13 local tty = vim.env.TTY 14 if tty == nil then 15 return 16 end 17 local _, _, window_id = string.find(out, "(%d+) " .. tty) 18 if window_id == nil then 19 return 20 end 21 vim.fn.system("tmux select-window -t '" .. window_id .. "'") 22end, {}) 23 24vim.api.nvim_create_user_command("Nurl", function() 25 local url = vim.fn.input("Enter a URL: ") 26 local rev = vim.fn.input("Enter the revision (e.g., v0.2.0 or empty string): ") 27 28 local cmd = string.format("nurl %s %s 2>/dev/null", url, rev) 29 30 local output = vim.fn.systemlist(cmd) 31 if vim.v.shell_error == 0 and #output > 0 then 32 vim.api.nvim_put(output, "l", true, true) 33 else 34 print("Error executing command or command returned empty result.") 35 end 36end, {}) 37 38require("lazy").setup({ 39 { 40 "AstroNvim/AstroNvim", 41 import = "astronvim.plugins", 42 }, 43 { import = "plugins" }, 44})