From a2816c42bbb3a5ed259e0b2399debf987af5f065 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 12 Sep 2025 23:45:45 +0545 Subject: [PATCH] chore: update plugin versions and disable automatic lint installation --- lazy-lock.json | 8 +- lua/plugins/lint.lua | 86 ++++----- lua/plugins/utility.lua | 391 +++++++++++++++++++--------------------- 3 files changed, 237 insertions(+), 248 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index d93e523..c2bf07e 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -7,7 +7,7 @@ "conform.nvim": { "branch": "master", "commit": "b4aab989db276993ea5dcb78872be494ce546521" }, "floaterm": { "branch": "main", "commit": "ae3de018d20dccd9372bbff7137e8a6d6030f69e" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, - "gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" }, + "gitsigns.nvim": { "branch": "main", "commit": "f780609807eca1f783a36a8a31c30a48fbe150c5" }, "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, "harpoon": { "branch": "harpoon2", "commit": "ed1f853847ffd04b2b61c314865665e1dadf22c7" }, "lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" }, @@ -16,7 +16,7 @@ "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, "markview.nvim": { "branch": "main", "commit": "e6b0f5aee8105adab6077509c46459812db4cffa" }, "mason-conform.nvim": { "branch": "main", "commit": "48da2ebd5efbaf8a99566eadc3ece82d523f03c5" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "5e085efe67fccb13372d54331d849219662a7e93" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "7f9a39fcd2ac6e979001f857727d606888f5909c" }, "mason-nvim-lint": { "branch": "main", "commit": "767b8ccdddaa977bec8987fd7507b9865a279235" }, "mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" }, "mini.ai": { "branch": "main", "commit": "e139eb1101beb0250fea322f8c07a42f0f175688" }, @@ -30,9 +30,9 @@ "nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" }, "nvim-genghis": { "branch": "main", "commit": "cdf584d05ffc9d5c1f247079991552249e4f7487" }, "nvim-lint": { "branch": "master", "commit": "f126af5345c7472e9a0cdbe1d1a29209be72c4c4" }, - "nvim-lspconfig": { "branch": "master", "commit": "c8b90ae5cbe21d547b342b05c9266dcb8ca0de8f" }, + "nvim-lspconfig": { "branch": "master", "commit": "d89f4891f0720cd2598e4bdd60010d8784b2ac8a" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, - "nvim-ts-autotag": { "branch": "main", "commit": "a1d526af391f6aebb25a8795cbc05351ed3620b5" }, + "nvim-ts-autotag": { "branch": "main", "commit": "c4ca798ab95b316a768d51eaaaee48f64a4a46bc" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1b212c2eee76d787bbea6aa5e92a2b534e7b4f8f" }, "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, "smartcolumn.nvim": { "branch": "main", "commit": "b9cdbdf42f7ac5a659204cd5926017c7ff724a19" }, diff --git a/lua/plugins/lint.lua b/lua/plugins/lint.lua index 8af7bd0..f32fdb6 100644 --- a/lua/plugins/lint.lua +++ b/lua/plugins/lint.lua @@ -1,45 +1,45 @@ return { - "mfussenegger/nvim-lint", - dependencies = { "rshkarin/mason-nvim-lint" }, - event = { "BufReadPost", "BufNewFile" }, - keys = { - { - "L", - mode = { "n" }, - function() - require("lint").try_lint() - end, - desc = "Trigger linting for current file", - }, - }, - config = function() - require("lint").linters_by_ft = { - ["*"] = { "codespell" }, - ["javascript"] = { "eslint_d", "cspell" }, - ["typescript"] = { "eslint_d", "cspell" }, - ["javascriptreact"] = { "eslint_d", "cspell" }, - ["typescriptreact"] = { "eslint_d", "cspell" }, - ["dockerfile"] = { "hadolint" }, - ["markdown"] = { "write_good", "markdownlint" }, - ["text"] = { "write_good" }, - ["sh"] = { "shellcheck" }, - ["yaml"] = { "actionlint" }, - ["python"] = { "ruff" }, - } - require("mason-nvim-lint").setup({ - ensure_installed = { - "eslint_d", - "hadolint", - "write_good", - "markdownlint", - "shellcheck", - "actionlint", - "djlint", - "ruff", - "codespell", - "cspell", - }, - automatic_installation = true, - }) - end, + 'mfussenegger/nvim-lint', + dependencies = { 'rshkarin/mason-nvim-lint' }, + event = { 'BufReadPost', 'BufNewFile' }, + keys = { + { + 'L', + mode = { 'n' }, + function() + require('lint').try_lint() + end, + desc = 'Trigger linting for current file', + }, + }, + config = function() + require('lint').linters_by_ft = { + ['*'] = { 'codespell' }, + ['javascript'] = { 'eslint_d', 'cspell' }, + ['typescript'] = { 'eslint_d', 'cspell' }, + ['javascriptreact'] = { 'eslint_d', 'cspell' }, + ['typescriptreact'] = { 'eslint_d', 'cspell' }, + ['dockerfile'] = { 'hadolint' }, + ['markdown'] = { 'write_good', 'markdownlint' }, + ['text'] = { 'write_good' }, + ['sh'] = { 'shellcheck' }, + ['yaml'] = { 'actionlint' }, + ['python'] = { 'ruff' }, + } + require('mason-nvim-lint').setup({ + ensure_installed = { + 'eslint_d', + 'hadolint', + 'write_good', + 'markdownlint', + 'shellcheck', + 'actionlint', + 'djlint', + 'ruff', + 'codespell', + 'cspell', + }, + automatic_installation = false, + }) + end, } diff --git a/lua/plugins/utility.lua b/lua/plugins/utility.lua index 7eb5bc8..bacfa26 100644 --- a/lua/plugins/utility.lua +++ b/lua/plugins/utility.lua @@ -1,213 +1,202 @@ return { - --harpoon - { - "ThePrimeagen/harpoon", - branch = "harpoon2", - keys = { - { - "", - function() - require("harpoon"):list():select(1) - end, - desc = "buffer j", - }, - { - "", - function() - require("harpoon"):list():select(2) - end, - desc = "buffer k", - }, - { - "", - function() - require("harpoon"):list():select(3) - end, - desc = "buffer l", - }, - { - "", - function() - require("harpoon"):list():select(4) - end, - desc = "buffer ;", - }, - }, - }, + --harpoon + { + 'ThePrimeagen/harpoon', + branch = 'harpoon2', + keys = { + { + '', + function() + require('harpoon'):list():select(1) + end, + desc = 'buffer j', + }, + { + '', + function() + require('harpoon'):list():select(2) + end, + desc = 'buffer k', + }, + { + '', + function() + require('harpoon'):list():select(3) + end, + desc = 'buffer l', + }, + { + '', + function() + require('harpoon'):list():select(4) + end, + desc = 'buffer ;', + }, + }, + }, - -- better escape - { - "max397574/better-escape.nvim", - config = function() - require("better_escape").setup({ - mappings = { - -- i for insert, other modes are the first letter too - i = { - -- map kj to exit insert mode - k = { - j = "", - }, - -- map jk and jj to exit insert mode - j = { - k = "", - j = "", - }, - -- disable jj - j = { - j = false, - }, - }, - }, - }) - end, - }, + -- better escape + { + 'max397574/better-escape.nvim', + config = function() + require('better_escape').setup({ + mappings = { + -- i for insert, other modes are the first letter too + i = { + -- map kj to exit insert mode + k = { + j = '', + }, + -- map jk and jj to exit insert mode + j = { + k = '', + j = '', + }, + -- disable jj + j = { + j = false, + }, + }, + }, + }) + end, + }, - -- Navigator - { - "numToStr/Navigator.nvim", - event = "VeryLazy", - config = function() - require("Navigator").setup({ - auto_save = "current", - disable_on_zoom = false, - mux = "auto", - }) - end, - }, + -- Navigator + { + 'numToStr/Navigator.nvim', + event = 'VeryLazy', + config = function() + require('Navigator').setup({ + auto_save = 'current', + disable_on_zoom = false, + mux = 'auto', + }) + end, + }, - -- float terminal - { - "akinsho/toggleterm.nvim", - cmd = { "ToggleTerm" }, - version = "*", - config = function() - require("toggleterm").setup({ - size = 10, - open_mapping = [[]], - hide_numbers = true, - shade_filetypes = {}, - shade_terminals = true, - shading_factor = "2", - start_in_insert = true, - insert_mappings = true, - terminal_mappings = true, - persist_size = true, - direction = "float", -- Use 'float' for floating terminal windows - close_on_exit = true, - shell = vim.o.shell, - float_opts = { - border = "curved", -- or 'single', 'double', 'shadow', etc. - winblend = 0, -- Set to 0 for full transparency - highlights = { - border = "Normal", - background = "Normal", - }, - }, - }) - end, - }, - { - "nvzone/floaterm", - dependencies = "nvzone/volt", - opts = { - mappings = { - term = function(buf) - vim.keymap.set({ "n", "t" }, "", function() - require("floaterm.api").cycle_term_bufs("prev") - end, { buffer = buf }) - end, - }, - }, - cmd = "FloatermToggle", - }, + -- float terminal + { + 'akinsho/toggleterm.nvim', + cmd = { 'ToggleTerm' }, + version = '*', + config = function() + require('toggleterm').setup({ + size = 10, + open_mapping = [[]], + hide_numbers = true, + shade_filetypes = {}, + shade_terminals = true, + shading_factor = '2', + start_in_insert = true, + insert_mappings = true, + terminal_mappings = true, + persist_size = true, + direction = 'float', -- Use 'float' for floating terminal windows + close_on_exit = true, + shell = vim.o.shell, + float_opts = { + border = 'curved', -- or 'single', 'double', 'shadow', etc. + winblend = 0, -- Set to 0 for full transparency + highlights = { + border = 'Normal', + background = 'Normal', + }, + }, + }) + end, + }, + { + 'nvzone/floaterm', + dependencies = 'nvzone/volt', + opts = { + mappings = { + term = function(buf) + vim.keymap.set({ 'n', 't' }, '', function() + require('floaterm.api').cycle_term_bufs('prev') + end, { buffer = buf }) + end, + }, + }, + cmd = 'FloatermToggle', + }, - -- smooth scrolling - { - "karb94/neoscroll.nvim", - opts = {}, - }, + -- smooth scrolling + { + 'karb94/neoscroll.nvim', + opts = {}, + }, - -- discord presence - -- { - -- "vyfor/cord.nvim", - -- event = "VeryLazy", - -- }, + -- discord presence + -- { + -- "vyfor/cord.nvim", + -- event = "VeryLazy", + -- }, - -- uv - { - "benomahony/uv.nvim", - ft = "python", - event = "BufReadPre", - opts = { - picker_integration = true, - keymaps = { - prefix = "u", -- Main prefix for uv commands - commands = true, -- Show uv commands menu (x) - run_file = true, -- Run current file (xr) - run_selection = true, -- Run selected code (xs) - run_function = true, -- Run function (xf) - venv = true, -- Environment management (xe) - init = true, -- Initialize uv project (xi) - add = true, -- Add a package (xa) - remove = true, -- Remove a package (xd) - sync = true, -- Sync packages (xc) - sync_all = true, -- Sync all packages, extras and groups (xC) - }, - }, - }, + -- uv + { + 'benomahony/uv.nvim', + ft = 'python', + event = 'BufReadPre', + opts = { + picker_integration = true, + keymaps = { + prefix = 'u', -- Main prefix for uv commands + commands = true, -- Show uv commands menu (x) + run_file = true, -- Run current file (xr) + run_selection = true, -- Run selected code (xs) + run_function = true, -- Run function (xf) + venv = true, -- Environment management (xe) + init = true, -- Initialize uv project (xi) + add = true, -- Add a package (xa) + remove = true, -- Remove a package (xd) + sync = true, -- Sync packages (xc) + sync_all = true, -- Sync all packages, extras and groups (xC) + }, + }, + }, - -- Project management - { - "ahmedkhalf/project.nvim", - config = function() - require("project_nvim").setup({ - detection_methods = { "lsp", "pattern" }, - patterns = { ".git", "_darcs", ".hg", ".bzr", ".svn", "Makefile", "package.json" }, - }) - end, - }, + { 'wakatime/vim-wakatime', event = 'VimEnter', lazy = false }, - { "wakatime/vim-wakatime", event = "VimEnter", lazy = false }, + -- { + -- "m4xshen/hardtime.nvim", + -- lazy = false, + -- opts = {}, + -- }, - -- { - -- "m4xshen/hardtime.nvim", - -- lazy = false, - -- opts = {}, - -- }, - - -- file operations - { - "chrisgrieser/nvim-genghis", - keys = { - { - "fp", - function() - require("genghis").createNewFile() - end, - desc = "New File", - }, - { - "fd", - function() - require("genghis").duplicateFile() - end, - desc = "Duplicate File", - }, - { - "fr", - function() - require("genghis").renameFile() - end, - desc = "Rename File", - }, - { - "fx", - function() - require("genghis").chmodx() - end, - desc = "Make Executable", - }, - }, - }, + -- file operations + { + 'chrisgrieser/nvim-genghis', + keys = { + { + 'fp', + function() + require('genghis').createNewFile() + end, + desc = 'New File', + }, + { + 'fd', + function() + require('genghis').duplicateFile() + end, + desc = 'Duplicate File', + }, + { + 'fr', + function() + require('genghis').renameFile() + end, + desc = 'Rename File', + }, + { + 'fx', + function() + require('genghis').chmodx() + end, + desc = 'Make Executable', + }, + }, + }, }