mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 15:21:09 +00:00
Compare commits
9
Commits
4f21a56a1f
..
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d9c69f9402 | ||
|
|
17180fd76a | ||
|
|
f039924a13 | ||
|
|
d5ac4f54a1 | ||
|
|
a82f0372be | ||
|
|
fab64cc52e | ||
|
|
c784a78f19 | ||
|
|
c23fcf3dda | ||
|
|
c4e2a6d8ff |
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "home/.local/Apps/neovim-distros/lunarvim/LunarVim"]
|
||||||
|
path = home/.local/Apps/neovim-distros/lunarvim/LunarVim
|
||||||
|
url = https://github.com/jukrb0x/LunarVim
|
||||||
@@ -477,7 +477,7 @@ EOF
|
|||||||
|
|
||||||
# Usage: mysqlCreateDbUser <username> [password] [database]
|
# Usage: mysqlCreateDbUser <username> [password] [database]
|
||||||
mysqlCreateDbUser() {
|
mysqlCreateDbUser() {
|
||||||
if [ $# -ne 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
echo "Usage: ${FUNCNAME[0]} <username> [password] [database]" >&2
|
echo "Usage: ${FUNCNAME[0]} <username> [password] [database]" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@@ -508,19 +508,21 @@ EOF
|
|||||||
# Create duckdb from csv. Usage csv2duckdb <csv-file>
|
# Create duckdb from csv. Usage csv2duckdb <csv-file>
|
||||||
csv2duckdb(){
|
csv2duckdb(){
|
||||||
csv=$1;
|
csv=$1;
|
||||||
|
dirName="$(dirname $csv)"
|
||||||
tbl="$(basename $csv)"
|
tbl="$(basename $csv)"
|
||||||
tbl=${tbl%.*};
|
tbl=${tbl%.*};
|
||||||
tbl="$(echo $tbl | sed 's/[^[:alnum:]]/_/g' )";
|
tbl="$(echo $tbl | sed 's/[^[:alnum:]]/_/g' )";
|
||||||
echo "CREATE TABLE $tbl AS SELECT * FROM '$csv';" | duckdb "$tbl.duckdb" ;
|
echo "CREATE TABLE $tbl AS SELECT * FROM '$csv';" | duckdb "$dirName/$tbl.duckdb" ;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Create sqlite3 db from csv. Usage csv2sqlite <csv-file>
|
# Create sqlite3 db from csv. Usage csv2sqlite <csv-file>
|
||||||
csv2sqlite(){
|
csv2sqlite(){
|
||||||
csv=$1;
|
csv=$1;
|
||||||
|
dirName="$(dirname $csv)"
|
||||||
tbl="$(basename $csv)"
|
tbl="$(basename $csv)"
|
||||||
tbl=${tbl%.*};
|
tbl=${tbl%.*};
|
||||||
tbl="$(echo $tbl | sed 's/[^[:alnum:]]/_/g' )";
|
tbl="$(echo $tbl | sed 's/[^[:alnum:]]/_/g' )";
|
||||||
echo "ATTACH '$tbl.db' AS sqdb (TYPE sqlite); CREATE TABLE sqdb.$tbl AS SELECT * FROM '$csv';" | duckdb ;
|
echo "ATTACH '$dirName/$tbl.db' AS sqdb (TYPE sqlite); CREATE TABLE sqdb.$tbl AS SELECT * FROM '$csv';" | duckdb ;
|
||||||
}
|
}
|
||||||
|
|
||||||
# Expose port of container using pasta. pastaExpose <container> <portmapping>
|
# Expose port of container using pasta. pastaExpose <container> <portmapping>
|
||||||
@@ -528,8 +530,8 @@ pastaExpose(){
|
|||||||
cont=$1;
|
cont=$1;
|
||||||
portMapping=$2;
|
portMapping=$2;
|
||||||
contPid=$(podman inspect -f '{{.State.Pid}}' $cont);
|
contPid=$(podman inspect -f '{{.State.Pid}}' $cont);
|
||||||
pasta -f --config-net -t $portMapping -u none -T none -U none --no-map-gw $contPid;
|
# pasta -f --config-net -t $portMapping -u none -T none -U none --no-map-gw $contPid;
|
||||||
# pasta -f --config-net -t $portMapping --dns-forward 169.254.1.1 -u none -T none -U none --no-map-gw --map-guest-addr 169.254.1.2 $contPid;
|
pasta -f --config-net -t $portMapping --dns-forward 169.254.1.1 -u none -T none -U none --no-map-gw --map-guest-addr 169.254.1.2 $contPid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
--[[
|
||||||
|
LazyVim configuration migrated from LunarVim
|
||||||
|
]]
|
||||||
|
|
||||||
|
-- Bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.uv.fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
-- Core LazyVim distribution (must be first)
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins", version = "*" },
|
||||||
|
|
||||||
|
-- Extras (use :LazyExtras to browse all available extras)
|
||||||
|
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||||
|
|
||||||
|
-- Import user plugins from lua/plugins/*.lua
|
||||||
|
{ import = "plugins" },
|
||||||
|
}, {
|
||||||
|
defaults = { lazy = true, version = "*" },
|
||||||
|
install = { colorscheme = { "habamax" } },
|
||||||
|
checker = { enabled = true },
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
"matchit",
|
||||||
|
"matchparen",
|
||||||
|
"netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -0,0 +1,57 @@
|
|||||||
|
{
|
||||||
|
"LazyVim": { "branch": "main", "commit": "c10948c50b18fae7f256433afdef09e432410480" },
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "642b0c595e11608b4c18219e93b88d7637af27bc" },
|
||||||
|
"NrrwRgn": { "branch": "master", "commit": "e027db9d94f94947153cd7b5ac9abd04371ab2b0" },
|
||||||
|
"SchemaStore.nvim": { "branch": "main", "commit": "322751401046ae2dbbe32eeb31992a5d4fcc8d92" },
|
||||||
|
"auto-session": { "branch": "main", "commit": "79ef41274354a486cf4f100a7adf4a7575802ccf" },
|
||||||
|
"blink-copilot": { "branch": "main", "commit": "41e91a659bd9b8cba9ba2ea68a69b52ba5a9ebd8" },
|
||||||
|
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||||
|
"bracey.vim": { "branch": "master", "commit": "4e1a22acc01787814819df1057d039d4ecf357eb" },
|
||||||
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
|
"catppuccin": { "branch": "main", "commit": "605b4603797de970e9f3a4238c199c850da03186" },
|
||||||
|
"conform.nvim": { "branch": "master", "commit": "3543d000dafbc41cc7761d860cfdb24e82154f75" },
|
||||||
|
"copilot.lua": { "branch": "master", "commit": "dada2f90220861d6e9d30eca6a3997cf5d0c9936" },
|
||||||
|
"editorconfig.nvim": { "branch": "master", "commit": "2af880947129f1ab776b732a4eecb92528472ef5" },
|
||||||
|
"emmet-vim": { "branch": "master", "commit": "92ef2f74f4093edc99db5e9e4cf7e40116a85bd6" },
|
||||||
|
"flash.nvim": { "branch": "main", "commit": "ec0bf2842189f65f60fd40bf3557cac1029cc932" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "a462f416e2ce4744531c6256252dee99a7d34a83" },
|
||||||
|
"grug-far.nvim": { "branch": "main", "commit": "c69859c1d5427ab5fc7ed12380ab521b4e336691" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
|
"lazydev.nvim": { "branch": "main", "commit": "01bc2aacd51cf9021eb19d048e70ce3dd09f7f93" },
|
||||||
|
"live-server.nvim": { "branch": "main", "commit": "85915d0e7dd926a54b0082aaeafc10a82bfe8288" },
|
||||||
|
"lualine.nvim": { "branch": "master", "commit": "221ce6b2d999187044529f49da6554a92f740a96" },
|
||||||
|
"markdown-preview.nvim": { "branch": "main", "commit": "5fec271fb91c7be7eca11d5b1c8da16add12e205" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "a5671269a1ddfa7790cdf97c14e600e269da550f" },
|
||||||
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "e51f9b259f066c4347f9a79ffde54c29a0619384" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
||||||
|
"mini.ai": { "branch": "main", "commit": "d73c36349aa7b0bab5f77ad71701a1d42211a1df" },
|
||||||
|
"mini.icons": { "branch": "main", "commit": "e56797f90192d81f1fda02e662fc3e8e3d775027" },
|
||||||
|
"mini.pairs": { "branch": "main", "commit": "4a014143fcb4e9df26198ccb3ecff3b9e77a048c" },
|
||||||
|
"mini.surround": { "branch": "main", "commit": "580e4cb98c5900d9fe743865fb5a5b2178b4ab18" },
|
||||||
|
"noice.nvim": { "branch": "main", "commit": "cf758e9df66451889aab56613a21b8673f045ec2" },
|
||||||
|
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
|
||||||
|
"nvim-dap": { "branch": "master", "commit": "6a5bba0ddea5d419a783e170c20988046376090d" },
|
||||||
|
"nvim-dap-ui": { "branch": "master", "commit": "f7d75cca202b52a60c520ec7b1ec3414d6e77b0f" },
|
||||||
|
"nvim-dap-virtual-text": { "branch": "master", "commit": "fbdb48c2ed45f4a8293d0d483f7730d24467ccb6" },
|
||||||
|
"nvim-lint": { "branch": "master", "commit": "01c9842c089069ab497430159312b2c8868a4590" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "229b79051b380377664edc4cbd534930154921a1" },
|
||||||
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
|
"nvim-surround": { "branch": "main", "commit": "2e93e154de9ff326def6480a4358bfc149d5da2c" },
|
||||||
|
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
||||||
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
|
||||||
|
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
||||||
|
"persistence.nvim": { "branch": "main", "commit": "c45ff862b53ce07a853a753fb0b33e148dbb99d2" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" },
|
||||||
|
"snacks.nvim": { "branch": "main", "commit": "e6fd58c82f2f3fcddd3fe81703d47d6d48fc7b9f" },
|
||||||
|
"tabular": { "branch": "master", "commit": "7bd1d0de5d390834220b7d0a791bb9734fafa0cc" },
|
||||||
|
"telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" },
|
||||||
|
"todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" },
|
||||||
|
"tokyonight.nvim": { "branch": "main", "commit": "545d72cde6400835d895160ecb5853874fd5156d" },
|
||||||
|
"trouble.nvim": { "branch": "main", "commit": "748ca2789044607f19786b1d837044544c55e80a" },
|
||||||
|
"ts-comments.nvim": { "branch": "main", "commit": "79e4337e4231ff8ca33dab85162b5ee8e78f22ce" },
|
||||||
|
"vim-fugitive": { "branch": "master", "commit": "96c1009fcf8ce60161cc938d149dd5a66d570756" },
|
||||||
|
"vim-gnupg": { "branch": "main", "commit": "6d106fa49df3d8c1e63fac8eb64b4a0174f7e83f" },
|
||||||
|
"vim-snippets": { "branch": "master", "commit": "4ed409154bcaa32fba6fd153cc0c915e44982872" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "fcbf4eea17cb299c02557d576f0d568878e354a4" }
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"extras": [
|
||||||
|
"lazyvim.plugins.extras.ai.copilot",
|
||||||
|
"lazyvim.plugins.extras.formatting.prettier",
|
||||||
|
"lazyvim.plugins.extras.lang.docker",
|
||||||
|
"lazyvim.plugins.extras.lang.json",
|
||||||
|
"lazyvim.plugins.extras.lang.typescript"
|
||||||
|
],
|
||||||
|
"install_version": 8,
|
||||||
|
"news": {
|
||||||
|
"NEWS.md": "11866"
|
||||||
|
},
|
||||||
|
"version": 8
|
||||||
|
}
|
||||||
@@ -0,0 +1,95 @@
|
|||||||
|
-- @section commands
|
||||||
|
-- Custom user commands migrated from LunarVim's config.lua vim.cmd block
|
||||||
|
|
||||||
|
--- @section commands-grep
|
||||||
|
-- Gr: Search with grep and show results in quickfix list
|
||||||
|
vim.api.nvim_create_user_command("Gr", function(input)
|
||||||
|
vim.cmd("silent execute 'grep! " .. input.args .. " | copen'")
|
||||||
|
end, { nargs = "+", desc = "Grep and open quickfix list" })
|
||||||
|
|
||||||
|
-- Grc: Raw grep command (no quickfix auto-open)
|
||||||
|
vim.api.nvim_create_user_command("Grc", function(input)
|
||||||
|
vim.cmd("grep " .. input.args)
|
||||||
|
end, { nargs = "*", desc = "Run grep without quickfix" })
|
||||||
|
|
||||||
|
--- @section commands-file
|
||||||
|
-- Header: Add file header via external script
|
||||||
|
vim.api.nvim_create_user_command("Header", function()
|
||||||
|
vim.cmd("0r!file-header '%'")
|
||||||
|
end, { desc = "Add file header from external file-header script" })
|
||||||
|
|
||||||
|
-- Termw: Open konsole terminal emulator
|
||||||
|
vim.api.nvim_create_user_command("Termw", function()
|
||||||
|
vim.cmd("!konsole -e bash-session &")
|
||||||
|
end, { desc = "Open konsole terminal" })
|
||||||
|
|
||||||
|
-- Term: Open embedded terminal in a horizontal split
|
||||||
|
vim.api.nvim_create_user_command("Term", function()
|
||||||
|
vim.cmd("sp | term")
|
||||||
|
end, { desc = "Open terminal in split window" })
|
||||||
|
|
||||||
|
-- EditSnippet: Open LuaSnip snippet files for editing
|
||||||
|
vim.api.nvim_create_user_command("EditSnippet", function()
|
||||||
|
require("luasnip.loaders").edit_snippet_files()
|
||||||
|
end, { desc = "Edit LuaSnip snippet files" })
|
||||||
|
|
||||||
|
-- Cwd: Change working directory to current file's directory
|
||||||
|
vim.api.nvim_create_user_command("Cwd", function()
|
||||||
|
vim.cmd("cd %:p:h")
|
||||||
|
end, { desc = "Change directory to current file" })
|
||||||
|
|
||||||
|
-- Tcd: Change tab-local working directory to current file's directory
|
||||||
|
vim.api.nvim_create_user_command("Tcd", function()
|
||||||
|
vim.cmd(":tcd %:p:h")
|
||||||
|
end, { desc = "Change tab directory to current file" })
|
||||||
|
|
||||||
|
-- Reload: Reload all buffers from disk
|
||||||
|
vim.api.nvim_create_user_command("Reload", function()
|
||||||
|
vim.cmd("bufdo execute 'checktime . bufnr('%')'")
|
||||||
|
end, { desc = "Reload all buffers" })
|
||||||
|
|
||||||
|
-- Rm: Delete current file from disk and close buffer
|
||||||
|
vim.api.nvim_create_user_command("Rm", function()
|
||||||
|
vim.cmd("!rm % | bd")
|
||||||
|
end, { desc = "Delete file and close buffer" })
|
||||||
|
|
||||||
|
-- CopyFilename: Copy current file path to system clipboard
|
||||||
|
vim.api.nvim_create_user_command("CopyFilename", function()
|
||||||
|
vim.fn.setreg("+", vim.fn.expand("%"))
|
||||||
|
end, { desc = "Copy file path to clipboard" })
|
||||||
|
|
||||||
|
-- Code: Open current file in VS Code at current line
|
||||||
|
vim.api.nvim_create_user_command("Code", function()
|
||||||
|
vim.cmd("!code ./ -g %:" .. (vim.fn.line(".") + 1))
|
||||||
|
end, { desc = "Open in VS Code at current line" })
|
||||||
|
|
||||||
|
-- <C-G>: Live grep word under cursor via Snacks picker
|
||||||
|
vim.keymap.set("n", "<C-G>", function()
|
||||||
|
LazyVim.pick("live_grep", { default_text = vim.fn.expand("<cword>") })()
|
||||||
|
end, { desc = "Snacks grep word under cursor" })
|
||||||
|
|
||||||
|
-- @section autocmds-filetype
|
||||||
|
-- Caddyfile: Set filetype for Caddyfile (any path, any name containing "Caddyfile")
|
||||||
|
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||||
|
pattern = "*Caddyfile",
|
||||||
|
callback = function()
|
||||||
|
vim.bo.filetype = "caddy"
|
||||||
|
end,
|
||||||
|
desc = "Detect Caddyfile filetype",
|
||||||
|
})
|
||||||
|
|
||||||
|
-- @section autocmds-emmet
|
||||||
|
-- Emmet: Enable Emmet for web development filetypes (migrated from LunarVim)
|
||||||
|
-- Disabled by default for all filetypes; enabled only for these specific filetypes.
|
||||||
|
-- vim.api.nvim_create_autocmd("FileType", {
|
||||||
|
-- pattern = { "html", "css", "vue", "jsx", "php", "javascriptreact" },
|
||||||
|
-- callback = function()
|
||||||
|
-- vim.cmd("EmmetInstall")
|
||||||
|
-- end,
|
||||||
|
-- desc = "Enable Emmet for web filetypes",
|
||||||
|
-- })
|
||||||
|
|
||||||
|
-- @section config-grepprg
|
||||||
|
-- Set grep program to `ag` (preserved from LunarVim)
|
||||||
|
-- LazyVim defaults to `rg --vimgrep`. This overrides it.
|
||||||
|
vim.opt.grepprg = "ag --vimgrep"
|
||||||
@@ -0,0 +1,103 @@
|
|||||||
|
-- @section keymaps
|
||||||
|
-- Custom keymaps migrated from LunarVim config.
|
||||||
|
-- LazyVim already defines many keymaps (e.g. <C-s> for save, <S-h/l> for buffer prev/next,
|
||||||
|
-- <leader>bd for delete buffer). Only keymaps that add to or differ from LazyVim defaults
|
||||||
|
-- are listed here. Grouped by function with @section markers.
|
||||||
|
|
||||||
|
local map = vim.keymap.set
|
||||||
|
|
||||||
|
--- @section keymaps-buffers
|
||||||
|
-- Meta+number: Jump to specific buffer (via BufferLine)
|
||||||
|
-- LazyVim provides <leader>bj for BufferLinePick (interactive pick).
|
||||||
|
-- These direct-access keys are preserved from your LunarVim config.
|
||||||
|
for i = 1, 9 do
|
||||||
|
map("n", "<M-" .. i .. ">", function()
|
||||||
|
vim.cmd("BufferLineGoToBuffer " .. i)
|
||||||
|
end, { desc = "Go to buffer " .. i })
|
||||||
|
end
|
||||||
|
|
||||||
|
--- @section keymaps-picker
|
||||||
|
-- <C-p>: Quick file find (Snacks picker replaces your Telescope "fd" picker)
|
||||||
|
map("n", "<C-p>", function()
|
||||||
|
LazyVim.pick("files")()
|
||||||
|
end, { desc = "Find Files" })
|
||||||
|
|
||||||
|
--- @section keymaps-external
|
||||||
|
-- Launch external tools from Neovim
|
||||||
|
map("n", "<Leader><Leader>t", ":!konsole&<CR>", { desc = "Open Konsole terminal" })
|
||||||
|
map("n", "<Leader><Leader>g", ":!git gui &<CR>", { desc = "Open Git GUI" })
|
||||||
|
|
||||||
|
--- @section keymaps-file
|
||||||
|
-- File-level operations
|
||||||
|
map("n", "<M-r>", ":e!<CR>", { desc = "Reload current file (discard changes)" })
|
||||||
|
map("n", "<M-q>", function()
|
||||||
|
Snacks.bufdelete()
|
||||||
|
end, { desc = "Delete current buffer (preserves window layout)" })
|
||||||
|
map("n", "<M-Q>", ":bd!<CR>", { desc = "Force delete buffer and close window" })
|
||||||
|
|
||||||
|
--- @section keymaps-comment
|
||||||
|
-- Toggle comment with Space+/ (normal and visual)
|
||||||
|
map("n", "c<Space>", "gcc", { desc = "Toggle comment", remap = true })
|
||||||
|
map("n", "<Space>/", "gcc", { desc = "Toggle comment", remap = true })
|
||||||
|
-- map("v", "<Space>/", "gc", { desc = "Toggle comment" })
|
||||||
|
|
||||||
|
--- @section keymaps-visual
|
||||||
|
-- Visual mode operations
|
||||||
|
map("v", "<C-h>", '"fy:%s#<C-r>f#', { desc = "Replace all occurrences of selected text" })
|
||||||
|
map("v", "<C-f>", '"fy/<C-r>f', { desc = "Search for selected word" })
|
||||||
|
|
||||||
|
--- @section keymaps-insert
|
||||||
|
-- Insert mode helpers
|
||||||
|
map("i", "<C-CR>", "<ESC>A;", { desc = "Append semicolon at end of line" })
|
||||||
|
map("i", "<C-E>", "<plug>(emmet-expand-abbr)", { desc = "Expand Emmet abbreviation" })
|
||||||
|
|
||||||
|
--- @section keymaps-window
|
||||||
|
-- Window navigation with Alt+arrows (preserved from LunarVim)
|
||||||
|
-- LazyVim defaults have <C-h/j/k/l> for window nav.
|
||||||
|
-- These Alt+arrow mappings give you an alternative.
|
||||||
|
map("n", "<M-Up>", "<C-W>k", { desc = "Move to window above" })
|
||||||
|
map("n", "<M-Down>", "<C-W>j", { desc = "Move to window below" })
|
||||||
|
map("n", "<M-Right>", "<C-W>l", { desc = "Move to window right" })
|
||||||
|
map("n", "<M-Left>", "<C-W>h", { desc = "Move to window left" })
|
||||||
|
|
||||||
|
--- @section keymaps-terminal
|
||||||
|
-- Terminal mode keymaps for window navigation and tab switching
|
||||||
|
map("t", "<C-PageUp>", "<C-\\><C-N><C-PageUp>", { desc = "Terminal: Previous tab" })
|
||||||
|
map("t", "<C-PageDown>", "<C-\\><C-N><C-PageDown>", { desc = "Terminal: Next tab" })
|
||||||
|
map("t", "<M-Up>", "<C-\\><C-N><C-W>k", { desc = "Terminal: Window up" })
|
||||||
|
map("t", "<M-Down>", "<C-\\><C-N><C-W>j", { desc = "Terminal: Window down" })
|
||||||
|
map("t", "<M-Right>", "<C-\\><C-N><C-W>l", { desc = "Terminal: Window right" })
|
||||||
|
map("t", "<M-Left>", "<C-\\><C-N><C-W>h", { desc = "Terminal: Window left" })
|
||||||
|
|
||||||
|
--- @section keymaps-buffer-switch
|
||||||
|
-- Buffer switching keys preserved from LunarVim.
|
||||||
|
-- NOTE: <C-j> and <C-k> conflict with LazyVim's default window navigation
|
||||||
|
-- (<C-j>=window down, <C-k>=window up). Since you use <M-Arrows> for windows,
|
||||||
|
-- these override <C-j/k> to buffer navigation instead.
|
||||||
|
map("n", "<C-PageUp>", ":BufferLineCyclePrev<CR>", { desc = "Previous buffer" })
|
||||||
|
map("n", "<C-PageDown>", ":BufferLineCycleNext<CR>", { desc = "Next buffer" })
|
||||||
|
map("n", "<C-S-PageUp>", ":BufferLineMovePrev<CR>", { desc = "Move buffer left" })
|
||||||
|
map("n", "<C-S-PageDown>", ":BufferLineMoveNext<CR>", { desc = "Move buffer right" })
|
||||||
|
map("n", "<C-j>", ":BufferLineCyclePrev<CR>", { desc = "Previous buffer" })
|
||||||
|
map("n", "<C-k>", ":BufferLineCycleNext<CR>", { desc = "Next buffer" })
|
||||||
|
map("n", "<C-S-j>", ":BufferLineMovePrev<CR>", { desc = "Move buffer left" })
|
||||||
|
map("n", "<C-S-k>", ":BufferLineMoveNext<CR>", { desc = "Move buffer right" })
|
||||||
|
|
||||||
|
--- @section keymaps-tab
|
||||||
|
map("n", "<C-S-T>", ":tabedit<CR>", { desc = "Open new tab" })
|
||||||
|
|
||||||
|
--- @section keymaps-dap
|
||||||
|
-- Quick DAP access keys (dap.core extra provides <leader>d prefix mappings)
|
||||||
|
-- These F-keys provide direct access to the most common debugging actions.
|
||||||
|
map("n", "<F5>", function()
|
||||||
|
require("dap").continue()
|
||||||
|
end, { desc = "DAP: Continue / Start debugging" })
|
||||||
|
map("n", "<F10>", function()
|
||||||
|
require("dap").step_over()
|
||||||
|
end, { desc = "DAP: Step over" })
|
||||||
|
map("n", "<F11>", function()
|
||||||
|
require("dap").step_into()
|
||||||
|
end, { desc = "DAP: Step into" })
|
||||||
|
map("n", "<F12>", function()
|
||||||
|
require("dap").step_out()
|
||||||
|
end, { desc = "DAP: Step out" })
|
||||||
@@ -0,0 +1,36 @@
|
|||||||
|
-- Bootstrap lazy.nvim
|
||||||
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
|
if not vim.uv.fs_stat(lazypath) then
|
||||||
|
local lazyrepo = "https://github.com/folke/lazy.nvim.git"
|
||||||
|
vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath })
|
||||||
|
end
|
||||||
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
require("lazy").setup({
|
||||||
|
-- Core LazyVim distribution (must be first)
|
||||||
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins", version = "*" },
|
||||||
|
|
||||||
|
-- Extras (use :LazyExtras to browse all available extras)
|
||||||
|
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||||
|
|
||||||
|
-- Import user plugins from lua/plugins/*.lua
|
||||||
|
{ import = "plugins" },
|
||||||
|
}, {
|
||||||
|
defaults = { lazy = true, version = "*" },
|
||||||
|
install = { colorscheme = { "habamax" } },
|
||||||
|
checker = { enabled = true },
|
||||||
|
performance = {
|
||||||
|
rtp = {
|
||||||
|
disabled_plugins = {
|
||||||
|
"gzip",
|
||||||
|
"matchit",
|
||||||
|
"matchparen",
|
||||||
|
"netrwPlugin",
|
||||||
|
"tarPlugin",
|
||||||
|
"tohtml",
|
||||||
|
"tutor",
|
||||||
|
"zipPlugin",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
-- @section vim-options
|
||||||
|
-- Override LazyVim default vim options to match your previous LunarVim config.
|
||||||
|
-- LazyVim defaults already include: shiftwidth=2, tabstop=2, number=true, list=true,
|
||||||
|
-- relativenumber=true.
|
||||||
|
|
||||||
|
-- Relativenumber: Your LunarVim config explicitly disabled it.
|
||||||
|
-- LazyVim defaults to true; this overrides it back to false.
|
||||||
|
vim.opt.relativenumber = false
|
||||||
|
|
||||||
|
-- Grepprg: Your LunarVim config used `ag --vimgrep`.
|
||||||
|
-- LazyVim defaults to `rg --vimgrep`. Uncomment below to switch to `ag`:
|
||||||
|
-- vim.opt.grepprg = "ag --vimgrep"
|
||||||
@@ -0,0 +1,28 @@
|
|||||||
|
-- @section snacks-picker
|
||||||
|
-- Snacks picker configuration preserved from LunarVim's Telescope settings.
|
||||||
|
-- LazyVim defaults to Snacks picker (no extra import needed since the
|
||||||
|
-- defaults system auto-enables it when Telescope/Fzf extras aren't imported).
|
||||||
|
|
||||||
|
-- Telescope's `file_ignore_patterns` handled differently in Snacks:
|
||||||
|
-- Snacks picker uses `fd`/`rg` which respect .gitignore by default.
|
||||||
|
-- Hidden files are shown, and VCS-ignored files are excluded.
|
||||||
|
-- Your original ignore patterns are listed below for reference; you can
|
||||||
|
-- adjust the find command or add global gitignore entries as needed.
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"folke/snacks.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
return vim.tbl_deep_extend("force", opts or {}, {
|
||||||
|
picker = {
|
||||||
|
sources = {
|
||||||
|
files = {
|
||||||
|
-- Show hidden files by default (dotfiles)
|
||||||
|
hidden = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,58 @@
|
|||||||
|
-- @section dap
|
||||||
|
-- DAP (Debug Adapter Protocol) configuration.
|
||||||
|
-- Core DAP support comes from the `lazyvim.plugins.extras.dap.core` extra
|
||||||
|
-- (imported in init.lua), which provides nvim-dap, nvim-dap-ui, and
|
||||||
|
-- <leader>d keybindings.
|
||||||
|
--
|
||||||
|
-- This file adds:
|
||||||
|
-- 1. F-key shortcuts for common debug actions
|
||||||
|
-- 2. PHP debug adapter configuration (migrated from LunarVim)
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"mfussenegger/nvim-dap",
|
||||||
|
-- @section dap-keymaps
|
||||||
|
-- F-key mappings for quick DAP access.
|
||||||
|
-- The dap.core extra already provides <leader>d{letter} bindings;
|
||||||
|
-- these F-keys are additional shortcuts preserved from your LunarVim config.
|
||||||
|
keys = {
|
||||||
|
{ "<F5>", function()
|
||||||
|
require("dap").continue()
|
||||||
|
end, desc = "DAP: Continue / Start" },
|
||||||
|
{ "<F10>", function()
|
||||||
|
require("dap").step_over()
|
||||||
|
end, desc = "DAP: Step Over" },
|
||||||
|
{ "<F11>", function()
|
||||||
|
require("dap").step_into()
|
||||||
|
end, desc = "DAP: Step Into" },
|
||||||
|
{ "<F12>", function()
|
||||||
|
require("dap").step_out()
|
||||||
|
end, desc = "DAP: Step Out" },
|
||||||
|
},
|
||||||
|
-- @section dap-php
|
||||||
|
-- PHP debug adapter setup (migrated from LunarVim)
|
||||||
|
-- Uses php-debug-adapter installed via Mason.
|
||||||
|
-- The adapter listens on port 9003 (Xdebug default).
|
||||||
|
init = function()
|
||||||
|
LazyVim.on_load("nvim-dap", function()
|
||||||
|
local dap = require("dap")
|
||||||
|
dap.adapters.php = {
|
||||||
|
type = "executable",
|
||||||
|
command = "node",
|
||||||
|
args = {
|
||||||
|
vim.fn.stdpath("data")
|
||||||
|
.. "/mason/packages/php-debug-adapter/extension/out/phpDebug.js",
|
||||||
|
},
|
||||||
|
}
|
||||||
|
dap.configurations.php = {
|
||||||
|
{
|
||||||
|
type = "php",
|
||||||
|
request = "launch",
|
||||||
|
name = "Listen for Xdebug",
|
||||||
|
port = 9003,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,18 @@
|
|||||||
|
-- @section lualine
|
||||||
|
-- Lualine statusline customization (migrated from LunarVim).
|
||||||
|
-- Your LunarVim config set lualine_b to show both branch name and current file.
|
||||||
|
-- This extends the default LazyVim lualine_b (which shows just "branch") to
|
||||||
|
-- also show the full file path (%f).
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"nvim-lualine/lualine.nvim",
|
||||||
|
opts = function(_, opts)
|
||||||
|
-- Extend the default lualine_b section to show branch + file path
|
||||||
|
-- (preserved from LunarVim: lvim.builtin.lualine.sections.lualine_b = { 'branch', '%f' })
|
||||||
|
opts.sections = opts.sections or {}
|
||||||
|
opts.sections.lualine_b = { "branch", "%f" }
|
||||||
|
return opts
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,153 @@
|
|||||||
|
-- @section plugins
|
||||||
|
-- Extra plugins migrated from LunarVim's `lvim.plugins` list.
|
||||||
|
-- Each plugin is defined as a lazy.nvim spec.
|
||||||
|
|
||||||
|
return {
|
||||||
|
--- @section plugins-editorconfig
|
||||||
|
{
|
||||||
|
"gpanders/editorconfig.nvim",
|
||||||
|
desc = "EditorConfig support (respects .editorconfig files)",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-emmet
|
||||||
|
{
|
||||||
|
"mattn/emmet-vim",
|
||||||
|
desc = "Emmet: HTML/CSS Zen coding expansion",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-fugitive
|
||||||
|
{
|
||||||
|
"tpope/vim-fugitive",
|
||||||
|
cmd = {
|
||||||
|
"G", "Git", "Gdiffsplit", "Gread", "Gwrite",
|
||||||
|
"Ggrep", "GMove", "GDelete", "GBrowse",
|
||||||
|
"GRemove", "GRename", "Glgrep", "Gedit",
|
||||||
|
},
|
||||||
|
ft = { "fugitive" },
|
||||||
|
desc = "Git integration (tpope)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"selimacerbas/live-server.nvim",
|
||||||
|
dependencies = {
|
||||||
|
"folke/which-key.nvim",
|
||||||
|
"nvim-telescope/telescope.nvim", -- recommended for path picker
|
||||||
|
},
|
||||||
|
init = function()
|
||||||
|
-- which-key group label only (best practice)
|
||||||
|
local ok, wk = pcall(require, "which-key")
|
||||||
|
if ok then wk.add({ { "<leader>l", group = "LiveServer" } }) end
|
||||||
|
end,
|
||||||
|
opts = {
|
||||||
|
default_port = 8000,
|
||||||
|
live_reload = { enabled = true, inject_script = true, debounce = 120, css_inject = true },
|
||||||
|
directory_listing = { enabled = true, show_hidden = false },
|
||||||
|
},
|
||||||
|
-- map to user commands (robust lazy-loading)
|
||||||
|
keys = {
|
||||||
|
{ "<leader>ls", "<cmd>LiveServerStart<cr>", desc = "Start (pick path & port)" },
|
||||||
|
{ "<leader>lo", "<cmd>LiveServerOpen<cr>", desc = "Open existing port in browser" },
|
||||||
|
{ "<leader>lr", "<cmd>LiveServerReload<cr>", desc = "Force reload (pick port)" },
|
||||||
|
{ "<leader>lt", "<cmd>LiveServerToggleLive<cr>", desc = "Toggle live-reload (pick port)" },
|
||||||
|
{ "<leader>li", "<cmd>LiveServerStatus<cr>", desc = "Show server status" },
|
||||||
|
{ "<leader>lS", "<cmd>LiveServerStop<cr>", desc = "Stop one (pick port)" },
|
||||||
|
{ "<leader>lA", "<cmd>LiveServerStopAll<cr>", desc = "Stop all" },
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
require("live_server").setup(opts)
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-markdown-preview
|
||||||
|
{
|
||||||
|
"harish2704/markdown-preview.nvim",
|
||||||
|
dependencies = { "selimacerbas/live-server.nvim" },
|
||||||
|
ft = 'markdown',
|
||||||
|
config = function()
|
||||||
|
require("markdown_preview").setup({
|
||||||
|
-- all optional; sane defaults shown
|
||||||
|
instance_mode = "takeover", -- "takeover" (one tab) or "multi" (tab per instance)
|
||||||
|
port = 0, -- 0 = auto (8421 for takeover, OS-assigned for multi)
|
||||||
|
open_browser = true,
|
||||||
|
default_theme = "light", -- "dark" or "light"; initial preview theme
|
||||||
|
debounce_ms = 300,
|
||||||
|
mermaid_elk = true,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
-- {
|
||||||
|
-- {
|
||||||
|
-- "iamcco/markdown-preview.nvim",
|
||||||
|
-- ft = 'markdown',
|
||||||
|
-- build = function()
|
||||||
|
-- require("lazy").load({ plugins = { "markdown-preview.nvim" } })
|
||||||
|
-- vim.fn["mkdp#util#install"]()
|
||||||
|
-- local app_dir = vim.fn.stdpath("data") .. "/lazy/markdown-preview.nvim/app"
|
||||||
|
-- vim.fn.system(
|
||||||
|
-- "cd "
|
||||||
|
-- .. app_dir
|
||||||
|
-- .. " && bun install mermaid@latest && cp node_modules/mermaid/dist/mermaid.min.js _static/mermaid.min.js"
|
||||||
|
-- )
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
|
-- },
|
||||||
|
|
||||||
|
-- --- @section plugins-bracey
|
||||||
|
{
|
||||||
|
"turbio/bracey.vim",
|
||||||
|
cmd = { "Bracey", "BracyStop", "BraceyReload", "BraceyEval" },
|
||||||
|
build = "npm install --prefix server",
|
||||||
|
desc = "Live HTML/CSS/JS editor preview",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-gnupg
|
||||||
|
{
|
||||||
|
"jamessan/vim-gnupg",
|
||||||
|
desc = "Transparent editing of GnuPG encrypted files",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-vim-snippets
|
||||||
|
{
|
||||||
|
"honza/vim-snippets",
|
||||||
|
event = "InsertEnter",
|
||||||
|
config = function()
|
||||||
|
require("luasnip.loaders.from_snipmate").lazy_load()
|
||||||
|
end,
|
||||||
|
desc = "SnipMate snippet collection (honza)",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-tabular
|
||||||
|
{
|
||||||
|
"godlygeek/tabular",
|
||||||
|
desc = "Text alignment and formatting",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-nrrwrgn
|
||||||
|
{ "chrisbra/NrrwRgn", desc = "Narrow region: edit a selection in a separate buffer" },
|
||||||
|
|
||||||
|
--- @section plugins-nvim-surround
|
||||||
|
{
|
||||||
|
"kylechui/nvim-surround",
|
||||||
|
keys = {
|
||||||
|
{ "S", mode = "v", desc = "Surround selection" },
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("nvim-surround").setup({
|
||||||
|
keymaps = { visual = "S" },
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "Surround text objects (parentheses, quotes, tags, etc.)",
|
||||||
|
},
|
||||||
|
|
||||||
|
--- @section plugins-auto-session
|
||||||
|
{
|
||||||
|
"rmagatti/auto-session",
|
||||||
|
config = function()
|
||||||
|
require("auto-session").setup({
|
||||||
|
log_level = "error",
|
||||||
|
-- Only restore/save sessions manually, not automatically
|
||||||
|
auto_session_create_enabled = false,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "Session management (manual mode)",
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
-- @section luasnip-dart
|
||||||
|
-- LuaSnip: Extend dart filetype with flutter snippets (migrated from LunarVim)
|
||||||
|
-- When editing .dart files, this adds flutter snippet sources so that
|
||||||
|
-- Flutter-specific completions (like `stless`, `stful`) are available.
|
||||||
|
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"L3MON4D3/LuaSnip",
|
||||||
|
init = function()
|
||||||
|
vim.api.nvim_create_autocmd("User", {
|
||||||
|
pattern = "VeryLazy",
|
||||||
|
once = true,
|
||||||
|
callback = function()
|
||||||
|
local ok, luasnip = pcall(require, "luasnip")
|
||||||
|
if ok then
|
||||||
|
luasnip.filetype_extend("dart", { "flutter" })
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
desc = "Add Flutter snippets to Dart buffers",
|
||||||
|
},
|
||||||
|
}
|
||||||
+1
Submodule home/.local/Apps/neovim-distros/lunarvim/LunarVim added at d9240249a3
@@ -349,6 +349,18 @@ dap.configurations.php = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local lspconfig = require('lspconfig')
|
||||||
|
local configs = require('lspconfig.configs')
|
||||||
|
if not configs.oxlint then
|
||||||
|
configs.oxlint = {
|
||||||
|
default_config = {
|
||||||
|
cmd = { 'oxlint', '--lsp' },
|
||||||
|
filetypes = { 'javascript', 'javascriptreact', 'typescript', 'typescriptreact' },
|
||||||
|
root_dir = lspconfig.util.root_pattern('.oxlintrc.json', 'package.json', '.git'),
|
||||||
|
},
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
lvim.plugins = {
|
lvim.plugins = {
|
||||||
{
|
{
|
||||||
"gpanders/editorconfig.nvim",
|
"gpanders/editorconfig.nvim",
|
||||||
|
|||||||
@@ -1,54 +1,55 @@
|
|||||||
{
|
{
|
||||||
"Comment.nvim": { "branch": "master", "commit": "0236521ea582747b58869cb72f70ccfa967d2e89" },
|
"Comment.nvim": { "branch": "master", "commit": "e30b7f2008e52442154b66f7c519bfd2f1e32acb" },
|
||||||
"LuaSnip": { "branch": "master", "commit": "1def35377854535bb3b0f4cc7a33c083cdb12571" },
|
"LuaSnip": { "branch": "master", "commit": "0abc8f390b278c3b4aabc4c004ac8a088b65cf24" },
|
||||||
"NrrwRgn": { "branch": "master", "commit": "6a3f40bff37fcff7d4245932b47118f071b925f9" },
|
"NrrwRgn": { "branch": "master", "commit": "e6f29bd507903b587229c544d3e1eba3cc0f0a13" },
|
||||||
"alpha-nvim": { "branch": "main", "commit": "29074eeb869a6cbac9ce1fbbd04f5f5940311b32" },
|
"alpha-nvim": { "branch": "main", "commit": "6c6a89d5b068b5251c8bdf0dd57bb921bcfeeb09" },
|
||||||
"auto-session": { "branch": "main", "commit": "292492ab7af4bd8b9e37e28508bc8ce995722fd5" },
|
"auto-session": { "branch": "main", "commit": "6cde3874a9283c2db55627acca5f28e4fa402320" },
|
||||||
"bigfile.nvim": { "branch": "main", "commit": "33eb067e3d7029ac77e081cfe7c45361887a311a" },
|
"bigfile.nvim": { "branch": "main", "commit": "33eb067e3d7029ac77e081cfe7c45361887a311a" },
|
||||||
"bracey.vim": { "branch": "master", "commit": "4e1a22acc01787814819df1057d039d4ecf357eb" },
|
"bracey.vim": { "branch": "master", "commit": "4e1a22acc01787814819df1057d039d4ecf357eb" },
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "73edc1f2732678e7a681e3d3be49782610914f6b" },
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
"cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" },
|
||||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
"editorconfig.nvim": { "branch": "master", "commit": "67758c3e8a2f79019322a60013e4ce0aad09dafa" },
|
"editorconfig.nvim": { "branch": "master", "commit": "67758c3e8a2f79019322a60013e4ce0aad09dafa" },
|
||||||
"emmet-vim": { "branch": "master", "commit": "e98397144982d1e75b20d94d55a82de3ec8f648d" },
|
"emmet-vim": { "branch": "master", "commit": "92ef2f74f4093edc99db5e9e4cf7e40116a85bd6" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "dd2fd1281d4b22e7b4a5bfafa3e142d958e251f2" },
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "805610a9393fa231f2c2b49cb521bfa413fadb3d" },
|
"gitsigns.nvim": { "branch": "main", "commit": "dd3f588bacbeb041be6facf1742e42097f62165d" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "9637670896b68805430e2f72cf5d16be5b97a22a" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "8f19915175395680808de529e4220da8dafc0759" },
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
"lir.nvim": { "branch": "master", "commit": "7a9d45de08fecd23a04aca1f96688d744830029e" },
|
"lir.nvim": { "branch": "master", "commit": "f1291b88d3649743165cfb5d0d44a7722d4021ea" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
|
"lualine.nvim": { "branch": "master", "commit": "131a558e13f9f28b15cd235557150ccb23f89286" },
|
||||||
"lunar.nvim": { "branch": "master", "commit": "08bbc93b96ad698d22fc2aa01805786bcedc34b9" },
|
"lunar.nvim": { "branch": "master", "commit": "08bbc93b96ad698d22fc2aa01805786bcedc34b9" },
|
||||||
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
"markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "a4caa0d083aab56f6cd5acf2d42331b74614a585" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "7b01e2974a47d489bb92f47a41e4c0088ea8f86e" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "49ff59aded1047a773670651cfa40e76e63c6377" },
|
"mason.nvim": { "branch": "main", "commit": "cbf8d285e1462dd24acf3507817be2bbcb035919" },
|
||||||
"neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" },
|
"mini.icons": { "branch": "main", "commit": "520995f1d75da0e4cc901ee95080b1ff2bc46b94" },
|
||||||
"nlsp-settings.nvim": { "branch": "main", "commit": "d92035e6c05cded5f1a7458b57506adbf29a5c9c" },
|
"neodev.nvim": { "branch": "main", "commit": "46aa467dca16cf3dfe27098042402066d2ae242d" },
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "3a4826687da4310af379515086d71faca4d21288" },
|
"nlsp-settings.nvim": { "branch": "main", "commit": "1ae83a5be572fd5e8c1547b5c4c582ce1a14c017" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "c15de7e7981f1111642e7e53799e1211d4606cb9" },
|
"none-ls.nvim": { "branch": "main", "commit": "f9d557ac7cd28a3a993b5ea49716498bd540b01f" },
|
||||||
"nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" },
|
"nvim-autopairs": { "branch": "master", "commit": "7b9923abad60b903ece7c52940e1321d39eccc79" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "5a2f7121869394502521c52b2bc581ab22c69447" },
|
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
|
||||||
"nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" },
|
"nvim-dap": { "branch": "master", "commit": "531771530d4f82ad2d21e436e3cc052d68d7aebb" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "eadcee1573ca9d0e0cd36a49f620186a8dfdc607" },
|
"nvim-dap-ui": { "branch": "master", "commit": "1a66cabaa4a4da0be107d5eda6d57242f0fe7e49" },
|
||||||
"nvim-navic": { "branch": "master", "commit": "8649f694d3e76ee10c19255dece6411c29206a54" },
|
"nvim-lspconfig": { "branch": "master", "commit": "deb0df61b2d6691e745b16a42755e10ad38218e9" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "fcfa7e02323d57bfacc3a141f8a74498e1522064" },
|
"nvim-navic": { "branch": "master", "commit": "f5eba192f39b453675d115351808bd51276d9de5" },
|
||||||
"nvim-tree.lua": { "branch": "master", "commit": "2bc725a3ebc23f0172fb0ab4d1134b81bcc13812" },
|
"nvim-surround": { "branch": "main", "commit": "8b47db616ef658b8fc27e61db2896aa2f40134de" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "3b308861a8d7d7bfbe9be51d52e54dcfd9fe3d38" },
|
"nvim-tree.lua": { "branch": "master", "commit": "07f541fcaa4a5ae019598240362449ab7e9812b3" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "cb064386e667def1d241317deed9fd1b38f0dc2e" },
|
"nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "6141a40173c6efa98242dc951ed4b6f892c97027" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "7d8dad2c837fcdf2e65997e68657c1a21c568074" },
|
||||||
"onedarker.nvim": { "branch": "freeze", "commit": "b00dd2189f264c5aeb4cf04c59439655ecd573ec" },
|
"onedarker.nvim": { "branch": "freeze", "commit": "b00dd2189f264c5aeb4cf04c59439655ecd573ec" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
|
"plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" },
|
||||||
"schemastore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" },
|
"schemastore.nvim": { "branch": "main", "commit": "59b4296a733a5b93ce2aee23ee406b6d279183cc" },
|
||||||
"structlog.nvim": { "branch": "main", "commit": "45b26a2b1036bb93c0e83f4225e85ab3cee8f476" },
|
"structlog.nvim": { "branch": "main", "commit": "45b26a2b1036bb93c0e83f4225e85ab3cee8f476" },
|
||||||
"tabular": { "branch": "master", "commit": "12437cd1b53488e24936ec4b091c9324cafee311" },
|
"tabular": { "branch": "master", "commit": "12437cd1b53488e24936ec4b091c9324cafee311" },
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },
|
"telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" },
|
||||||
"telescope.nvim": { "branch": "0.1.x", "commit": "d829aa64059001ee7b2c8c8aa9c4e6df0b17d893" },
|
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
|
||||||
"toggleterm.nvim": { "branch": "main", "commit": "fee58a0473fd92b28c34f8f724e4918b15ba30a3" },
|
"toggleterm.nvim": { "branch": "main", "commit": "9a88eae817ef395952e08650b3283726786fb5fb" },
|
||||||
"tokyonight.nvim": { "branch": "main", "commit": "b9b494fa7f7bbf2fe0747b47fa290fb7a4eddcc7" },
|
"tokyonight.nvim": { "branch": "main", "commit": "cdc07ac78467a233fd62c493de29a17e0cf2b2b6" },
|
||||||
"vim-fugitive": { "branch": "master", "commit": "61b51c09b7c9ce04e821f6cf76ea4f6f903e3cf4" },
|
"vim-fugitive": { "branch": "master", "commit": "3b753cf8c6a4dcde6edee8827d464ba9b8c4a6f0" },
|
||||||
"vim-gnupg": { "branch": "main", "commit": "f9b608f29003dfde6450931dc0f495a912973a88" },
|
"vim-gnupg": { "branch": "main", "commit": "f9b608f29003dfde6450931dc0f495a912973a88" },
|
||||||
"vim-illuminate": { "branch": "master", "commit": "5eeb7951fc630682c322e88a9bbdae5c224ff0aa" },
|
"vim-illuminate": { "branch": "master", "commit": "0d1e93684da00ab7c057410fecfc24f434698898" },
|
||||||
"vim-snippets": { "branch": "master", "commit": "ededcf7581962ee616cadab360d5966f3307f11a" },
|
"vim-snippets": { "branch": "master", "commit": "ededcf7581962ee616cadab360d5966f3307f11a" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }
|
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,11 @@ nvconf="$THIS_DIR/$PKG"
|
|||||||
|
|
||||||
if [[ -d $nvconf ]]; then
|
if [[ -d $nvconf ]]; then
|
||||||
mkdir -p $nvconf/cache
|
mkdir -p $nvconf/cache
|
||||||
|
if [[ -n "$NO_GUI" ]]; then
|
||||||
|
env XDG_CACHE_DIR=$nvconf/cache XDG_CACHE_HOME=$nvconf/cache XDG_DATA_HOME=$nvconf/share XDG_CONFIG_HOME=$nvconf nvim $@
|
||||||
|
else
|
||||||
exec -a "Lazyvim" alacritty -e env XDG_CACHE_DIR=$nvconf/cache XDG_CACHE_HOME=$nvconf/cache XDG_DATA_HOME=$nvconf/share XDG_CONFIG_HOME=$nvconf nvim $@ &
|
exec -a "Lazyvim" alacritty -e env XDG_CACHE_DIR=$nvconf/cache XDG_CACHE_HOME=$nvconf/cache XDG_DATA_HOME=$nvconf/share XDG_CONFIG_HOME=$nvconf nvim $@ &
|
||||||
|
fi
|
||||||
else
|
else
|
||||||
echo "invalid \$PKG. Available values:"
|
echo "invalid \$PKG. Available values:"
|
||||||
ls `dirname $nvconf`
|
ls `dirname $nvconf`
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user