mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-09-10 15:21:09 +00:00
Updates
This commit is contained in:
@@ -2,18 +2,21 @@
|
|||||||
"LazyVim": { "branch": "main", "commit": "c10948c50b18fae7f256433afdef09e432410480" },
|
"LazyVim": { "branch": "main", "commit": "c10948c50b18fae7f256433afdef09e432410480" },
|
||||||
"LuaSnip": { "branch": "master", "commit": "642b0c595e11608b4c18219e93b88d7637af27bc" },
|
"LuaSnip": { "branch": "master", "commit": "642b0c595e11608b4c18219e93b88d7637af27bc" },
|
||||||
"NrrwRgn": { "branch": "master", "commit": "e027db9d94f94947153cd7b5ac9abd04371ab2b0" },
|
"NrrwRgn": { "branch": "master", "commit": "e027db9d94f94947153cd7b5ac9abd04371ab2b0" },
|
||||||
|
"SchemaStore.nvim": { "branch": "main", "commit": "322751401046ae2dbbe32eeb31992a5d4fcc8d92" },
|
||||||
"auto-session": { "branch": "main", "commit": "79ef41274354a486cf4f100a7adf4a7575802ccf" },
|
"auto-session": { "branch": "main", "commit": "79ef41274354a486cf4f100a7adf4a7575802ccf" },
|
||||||
|
"blink-copilot": { "branch": "main", "commit": "41e91a659bd9b8cba9ba2ea68a69b52ba5a9ebd8" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
"blink.cmp": { "branch": "main", "commit": "78336bc89ee5365633bcf754d93df01678b5c08f" },
|
||||||
"bracey.vim": { "branch": "master", "commit": "4e1a22acc01787814819df1057d039d4ecf357eb" },
|
"bracey.vim": { "branch": "master", "commit": "4e1a22acc01787814819df1057d039d4ecf357eb" },
|
||||||
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
|
||||||
"catppuccin": { "branch": "main", "commit": "605b4603797de970e9f3a4238c199c850da03186" },
|
"catppuccin": { "branch": "main", "commit": "605b4603797de970e9f3a4238c199c850da03186" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "3543d000dafbc41cc7761d860cfdb24e82154f75" },
|
"conform.nvim": { "branch": "master", "commit": "3543d000dafbc41cc7761d860cfdb24e82154f75" },
|
||||||
|
"copilot.lua": { "branch": "master", "commit": "dada2f90220861d6e9d30eca6a3997cf5d0c9936" },
|
||||||
"editorconfig.nvim": { "branch": "master", "commit": "2af880947129f1ab776b732a4eecb92528472ef5" },
|
"editorconfig.nvim": { "branch": "master", "commit": "2af880947129f1ab776b732a4eecb92528472ef5" },
|
||||||
"emmet-vim": { "branch": "master", "commit": "92ef2f74f4093edc99db5e9e4cf7e40116a85bd6" },
|
"emmet-vim": { "branch": "master", "commit": "92ef2f74f4093edc99db5e9e4cf7e40116a85bd6" },
|
||||||
"flash.nvim": { "branch": "main", "commit": "ec0bf2842189f65f60fd40bf3557cac1029cc932" },
|
"flash.nvim": { "branch": "main", "commit": "ec0bf2842189f65f60fd40bf3557cac1029cc932" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "a462f416e2ce4744531c6256252dee99a7d34a83" },
|
"gitsigns.nvim": { "branch": "main", "commit": "a462f416e2ce4744531c6256252dee99a7d34a83" },
|
||||||
"grug-far.nvim": { "branch": "main", "commit": "c995bbacf8229dc096ec1c3d60f8531059c86c1b" },
|
"grug-far.nvim": { "branch": "main", "commit": "c69859c1d5427ab5fc7ed12380ab521b4e336691" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
"lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "01bc2aacd51cf9021eb19d048e70ce3dd09f7f93" },
|
"lazydev.nvim": { "branch": "main", "commit": "01bc2aacd51cf9021eb19d048e70ce3dd09f7f93" },
|
||||||
"live-server.nvim": { "branch": "main", "commit": "85915d0e7dd926a54b0082aaeafc10a82bfe8288" },
|
"live-server.nvim": { "branch": "main", "commit": "85915d0e7dd926a54b0082aaeafc10a82bfe8288" },
|
||||||
@@ -22,9 +25,10 @@
|
|||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "a5671269a1ddfa7790cdf97c14e600e269da550f" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "a5671269a1ddfa7790cdf97c14e600e269da550f" },
|
||||||
"mason-nvim-dap.nvim": { "branch": "main", "commit": "e51f9b259f066c4347f9a79ffde54c29a0619384" },
|
"mason-nvim-dap.nvim": { "branch": "main", "commit": "e51f9b259f066c4347f9a79ffde54c29a0619384" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
"mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" },
|
||||||
"mini.ai": { "branch": "main", "commit": "bfb26d9072670c3aaefab0f53024b2f3729c8083" },
|
"mini.ai": { "branch": "main", "commit": "d73c36349aa7b0bab5f77ad71701a1d42211a1df" },
|
||||||
"mini.icons": { "branch": "main", "commit": "ff2e4f1d29f659cc2bad0f9256f2f6195c6b2428" },
|
"mini.icons": { "branch": "main", "commit": "e56797f90192d81f1fda02e662fc3e8e3d775027" },
|
||||||
"mini.pairs": { "branch": "main", "commit": "d5a29b6254dad07757832db505ea5aeab9aad43a" },
|
"mini.pairs": { "branch": "main", "commit": "4a014143fcb4e9df26198ccb3ecff3b9e77a048c" },
|
||||||
|
"mini.surround": { "branch": "main", "commit": "580e4cb98c5900d9fe743865fb5a5b2178b4ab18" },
|
||||||
"noice.nvim": { "branch": "main", "commit": "cf758e9df66451889aab56613a21b8673f045ec2" },
|
"noice.nvim": { "branch": "main", "commit": "cf758e9df66451889aab56613a21b8673f045ec2" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
|
"nui.nvim": { "branch": "main", "commit": "f535005e6ad1016383f24e39559833759453564e" },
|
||||||
"nvim-dap": { "branch": "master", "commit": "6a5bba0ddea5d419a783e170c20988046376090d" },
|
"nvim-dap": { "branch": "master", "commit": "6a5bba0ddea5d419a783e170c20988046376090d" },
|
||||||
@@ -34,7 +38,7 @@
|
|||||||
"nvim-lspconfig": { "branch": "master", "commit": "229b79051b380377664edc4cbd534930154921a1" },
|
"nvim-lspconfig": { "branch": "master", "commit": "229b79051b380377664edc4cbd534930154921a1" },
|
||||||
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
"nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "2e93e154de9ff326def6480a4358bfc149d5da2c" },
|
"nvim-surround": { "branch": "main", "commit": "2e93e154de9ff326def6480a4358bfc149d5da2c" },
|
||||||
"nvim-treesitter": { "branch": "main", "commit": "7caec274fd19c12b55902a5b795100d21531391f" },
|
"nvim-treesitter": { "branch": "main", "commit": "4916d6592ede8c07973490d9322f187e07dfefac" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
|
"nvim-treesitter-textobjects": { "branch": "main", "commit": "851e865342e5a4cb1ae23d31caf6e991e1c99f1e" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "88c1453db4ba7dd24131086fe51fdf74e587d275" },
|
||||||
"persistence.nvim": { "branch": "main", "commit": "c45ff862b53ce07a853a753fb0b33e148dbb99d2" },
|
"persistence.nvim": { "branch": "main", "commit": "c45ff862b53ce07a853a753fb0b33e148dbb99d2" },
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
{
|
{
|
||||||
"extras": [
|
"extras": [
|
||||||
|
"lazyvim.plugins.extras.ai.copilot",
|
||||||
|
"lazyvim.plugins.extras.coding.mini-surround",
|
||||||
|
"lazyvim.plugins.extras.formatting.prettier",
|
||||||
|
"lazyvim.plugins.extras.lang.docker",
|
||||||
|
"lazyvim.plugins.extras.lang.json",
|
||||||
|
"lazyvim.plugins.extras.lang.typescript"
|
||||||
],
|
],
|
||||||
"install_version": 8,
|
"install_version": 8,
|
||||||
"news": {
|
"news": {
|
||||||
|
|||||||
@@ -4,96 +4,96 @@
|
|||||||
--- @section commands-grep
|
--- @section commands-grep
|
||||||
-- Gr: Search with grep and show results in quickfix list
|
-- Gr: Search with grep and show results in quickfix list
|
||||||
vim.api.nvim_create_user_command("Gr", function(input)
|
vim.api.nvim_create_user_command("Gr", function(input)
|
||||||
vim.cmd("silent execute 'grep! " .. input.args .. " | copen'")
|
vim.cmd("silent execute 'grep! " .. input.args .. " | copen'")
|
||||||
end, { nargs = "+", desc = "Grep and open quickfix list" })
|
end, { nargs = "+", desc = "Grep and open quickfix list" })
|
||||||
|
|
||||||
-- Grc: Raw grep command (no quickfix auto-open)
|
-- Grc: Raw grep command (no quickfix auto-open)
|
||||||
vim.api.nvim_create_user_command("Grc", function(input)
|
vim.api.nvim_create_user_command("Grc", function(input)
|
||||||
vim.cmd("grep " .. input.args)
|
vim.cmd("grep " .. input.args)
|
||||||
end, { nargs = "*", desc = "Run grep without quickfix" })
|
end, { nargs = "*", desc = "Run grep without quickfix" })
|
||||||
|
|
||||||
--- @section commands-file
|
--- @section commands-file
|
||||||
-- Header: Add file header via external script
|
-- Header: Add file header via external script
|
||||||
vim.api.nvim_create_user_command("Header", function()
|
vim.api.nvim_create_user_command("Header", function()
|
||||||
vim.cmd("0r!file-header '%'")
|
vim.cmd("0r!file-header '%'")
|
||||||
end, { desc = "Add file header from external file-header script" })
|
end, { desc = "Add file header from external file-header script" })
|
||||||
|
|
||||||
-- Termw: Open konsole terminal emulator
|
-- Termw: Open konsole terminal emulator
|
||||||
vim.api.nvim_create_user_command("Termw", function()
|
vim.api.nvim_create_user_command("Termw", function()
|
||||||
vim.cmd("!konsole -e bash-session &")
|
vim.cmd("!konsole -e bash-session &")
|
||||||
end, { desc = "Open konsole terminal" })
|
end, { desc = "Open konsole terminal" })
|
||||||
|
|
||||||
-- Term: Open embedded terminal in a horizontal split
|
-- Term: Open embedded terminal in a horizontal split
|
||||||
vim.api.nvim_create_user_command("Term", function()
|
vim.api.nvim_create_user_command("Term", function()
|
||||||
vim.cmd("sp | term")
|
vim.cmd("sp | term")
|
||||||
end, { desc = "Open terminal in split window" })
|
end, { desc = "Open terminal in split window" })
|
||||||
|
|
||||||
-- EditSnippet: Open LuaSnip snippet files for editing
|
-- EditSnippet: Open LuaSnip snippet files for editing
|
||||||
vim.api.nvim_create_user_command("EditSnippet", function()
|
vim.api.nvim_create_user_command("EditSnippet", function()
|
||||||
require("luasnip.loaders").edit_snippet_files()
|
require("luasnip.loaders").edit_snippet_files()
|
||||||
end, { desc = "Edit LuaSnip snippet files" })
|
end, { desc = "Edit LuaSnip snippet files" })
|
||||||
|
|
||||||
-- Cwd: Change working directory to current file's directory
|
-- Cwd: Change working directory to current file's directory
|
||||||
vim.api.nvim_create_user_command("Cwd", function()
|
vim.api.nvim_create_user_command("Cwd", function()
|
||||||
vim.cmd("cd %:p:h")
|
vim.cmd("cd %:p:h")
|
||||||
end, { desc = "Change directory to current file" })
|
end, { desc = "Change directory to current file" })
|
||||||
|
|
||||||
-- Tcd: Change tab-local working directory to current file's directory
|
-- Tcd: Change tab-local working directory to current file's directory
|
||||||
vim.api.nvim_create_user_command("Tcd", function()
|
vim.api.nvim_create_user_command("Tcd", function()
|
||||||
vim.cmd(":tcd %:p:h")
|
vim.cmd(":tcd %:p:h")
|
||||||
end, { desc = "Change tab directory to current file" })
|
end, { desc = "Change tab directory to current file" })
|
||||||
|
|
||||||
-- Reload: Reload all buffers from disk
|
-- Reload: Reload all buffers from disk
|
||||||
vim.api.nvim_create_user_command("Reload", function()
|
vim.api.nvim_create_user_command("Reload", function()
|
||||||
vim.cmd("bufdo execute 'checktime . bufnr('%')'")
|
vim.cmd("bufdo execute 'checktime . bufnr('%')'")
|
||||||
end, { desc = "Reload all buffers" })
|
end, { desc = "Reload all buffers" })
|
||||||
|
|
||||||
-- Rm: Delete current file from disk and close buffer
|
-- Rm: Delete current file from disk and close buffer
|
||||||
vim.api.nvim_create_user_command("Rm", function()
|
vim.api.nvim_create_user_command("Rm", function()
|
||||||
vim.cmd("!rm % | bd")
|
vim.cmd("!rm % | bd")
|
||||||
end, { desc = "Delete file and close buffer" })
|
end, { desc = "Delete file and close buffer" })
|
||||||
|
|
||||||
-- CopyFilename: Copy current file path to system clipboard
|
-- CopyFilename: Copy current file path to system clipboard
|
||||||
vim.api.nvim_create_user_command("CopyFilename", function()
|
vim.api.nvim_create_user_command("CopyFilename", function()
|
||||||
vim.fn.setreg("+", vim.fn.expand("%"))
|
vim.fn.setreg("+", vim.fn.expand("%"))
|
||||||
end, { desc = "Copy file path to clipboard" })
|
end, { desc = "Copy file path to clipboard" })
|
||||||
|
|
||||||
-- Code: Open current file in VS Code at current line
|
-- Code: Open current file in VS Code at current line
|
||||||
vim.api.nvim_create_user_command("Code", function()
|
vim.api.nvim_create_user_command("Code", function()
|
||||||
vim.cmd("!code ./ -g %:" .. (vim.fn.line(".") + 1))
|
vim.cmd("!code ./ -g %:" .. (vim.fn.line(".") + 1))
|
||||||
end, { desc = "Open in VS Code at current line" })
|
end, { desc = "Open in VS Code at current line" })
|
||||||
|
|
||||||
--- @section keymaps-grep (defined as keymap in vim.cmd, moved here for clarity)
|
--- @section keymaps-grep (defined as keymap in vim.cmd, moved here for clarity)
|
||||||
-- <C-/>: Search word under cursor with custom Gr command
|
-- <C-/>: Search word under cursor with custom Gr command
|
||||||
vim.keymap.set("n", "<C-/>", function()
|
vim.keymap.set("n", "<C-/>", function()
|
||||||
vim.cmd("Gr " .. vim.fn.expand("<cword>"))
|
vim.cmd("Gr " .. vim.fn.expand("<cword>"))
|
||||||
end, { desc = "Grep word under cursor (custom Gr)" })
|
end, { desc = "Grep word under cursor (custom Gr)" })
|
||||||
|
|
||||||
-- <C-G>: Live grep word under cursor via Snacks picker
|
-- <C-G>: Live grep word under cursor via Snacks picker
|
||||||
vim.keymap.set("n", "<C-G>", function()
|
vim.keymap.set("n", "<C-G>", function()
|
||||||
LazyVim.pick("live_grep", { default_text = vim.fn.expand("<cword>") })()
|
LazyVim.pick("live_grep", { default_text = vim.fn.expand("<cword>") })()
|
||||||
end, { desc = "Snacks grep word under cursor" })
|
end, { desc = "Snacks grep word under cursor" })
|
||||||
|
|
||||||
-- @section autocmds-filetype
|
-- @section autocmds-filetype
|
||||||
-- Caddyfile: Set filetype for Caddyfile (any path, any name containing "Caddyfile")
|
-- Caddyfile: Set filetype for Caddyfile (any path, any name containing "Caddyfile")
|
||||||
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||||
pattern = "*Caddyfile",
|
pattern = "*Caddyfile",
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.bo.filetype = "caddy"
|
vim.bo.filetype = "caddy"
|
||||||
end,
|
end,
|
||||||
desc = "Detect Caddyfile filetype",
|
desc = "Detect Caddyfile filetype",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- @section autocmds-emmet
|
-- @section autocmds-emmet
|
||||||
-- Emmet: Enable Emmet for web development filetypes (migrated from LunarVim)
|
-- Emmet: Enable Emmet for web development filetypes (migrated from LunarVim)
|
||||||
-- Disabled by default for all filetypes; enabled only for these specific filetypes.
|
-- Disabled by default for all filetypes; enabled only for these specific filetypes.
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
-- vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "html", "css", "vue", "jsx", "php", "javascriptreact" },
|
-- pattern = { "html", "css", "vue", "jsx", "php", "javascriptreact" },
|
||||||
callback = function()
|
-- callback = function()
|
||||||
vim.cmd("EmmetInstall")
|
-- vim.cmd("EmmetInstall")
|
||||||
end,
|
-- end,
|
||||||
desc = "Enable Emmet for web filetypes",
|
-- desc = "Enable Emmet for web filetypes",
|
||||||
})
|
-- })
|
||||||
|
|
||||||
-- @section config-grepprg
|
-- @section config-grepprg
|
||||||
-- Set grep program to `ag` (preserved from LunarVim)
|
-- Set grep program to `ag` (preserved from LunarVim)
|
||||||
|
|||||||
Reference in New Issue
Block a user