wip
This commit is contained in:
1 parent
0499c3bc85
commit
f775a1ee88
10 files changed
+174
-17
No files matched your search
+1
-1
@@ -1 +1 @@
|
||||
{"distribution": "custom", "masonTools": ["basedpyright", "basedpyright-langserver", "bash-language-server", "black", "clang-format", "clangd", "codespell", "cspell", "emmet-ls", "eslint_d", "isort", "jdtls", "lua-language-server", "markdownlint", "mypy", "phpcs", "prettier", "pylint", "ruff", "shfmt", "stylua", "tailwindcss-language-server", "trivy", "typescript-language-server"], "plugins": ["2kabhishek/nerdy.nvim", "2kabhishek/termim.nvim", "Exafunction/codeium.vim", "HiPhish/rainbow-delimiters.nvim", "L3MON4D3/LuaSnip", "LudoPinelli/comment-box.nvim", "LunarVim/bigfile.nvim", "MunifTanjim/nui.nvim", "NStefan002/screenkey.nvim", "ThePrimeagen/refactoring.nvim", "akinsho/toggleterm.nvim", "altermo/ultimate-autopair.nvim", "antosha417/nvim-lsp-file-operations", "creativenull/dotfyle-metadata.nvim", "debugloop/telescope-undo.nvim", "echasnovski/mini.files", "echasnovski/mini.icons", "echasnovski/mini.nvim", "folke/flash.nvim", "folke/lazy.nvim", "folke/noice.nvim", "folke/persistence.nvim", "folke/trouble.nvim", "folke/twilight.nvim", "folke/which-key.nvim", "folke/zen-mode.nvim", "gbprod/yanky.nvim", "hrsh7th/cmp-buffer", "hrsh7th/cmp-cmdline", "hrsh7th/cmp-nvim-lsp", "hrsh7th/cmp-nvim-lsp-signature-help", "hrsh7th/cmp-nvim-lua", "hrsh7th/cmp-path", "hrsh7th/nvim-cmp", "iamcco/markdown-preview.nvim", "kristijanhusak/vim-dadbod-completion", "kristijanhusak/vim-dadbod-ui", "lukas-reineke/indent-blankline.nvim", "m-demare/hlargs.nvim", "m4xshen/hardtime.nvim", "max397574/better-escape.nvim", "mfussenegger/nvim-dap", "mfussenegger/nvim-lint", "mg979/vim-visual-multi", "michaelb/sniprun", "mstuttgart/odoo-snippets", "mvllow/modes.nvim", "nacro90/numb.nvim", "navarasu/onedark.nvim", "neovim/nvim-lspconfig", "numToStr/Navigator.nvim", "nvim-lua/plenary.nvim", "nvim-lualine/lualine.nvim", "nvim-neo-tree/neo-tree.nvim", "nvim-neotest/neotest", "nvim-neotest/neotest-jest", "nvim-neotest/neotest-python", "nvim-neotest/nvim-nio", "nvim-pack/nvim-spectre", "nvim-telescope/telescope-file-browser.nvim", "nvim-telescope/telescope-fzf-native.nvim", "nvim-telescope/telescope-symbols.nvim", "nvim-telescope/telescope-ui-select.nvim", "nvim-telescope/telescope.nvim", "nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter-context", "nvim-treesitter/nvim-treesitter-textobjects", "nvimdev/dashboard-nvim", "nvimdev/lspsaga.nvim", "olimorris/neotest-rspec", "onsails/lspkind.nvim", "rafamadriz/friendly-snippets", "rcarriga/nvim-dap-ui", "rcarriga/nvim-notify", "rshkarin/mason-nvim-lint", "saadparwaiz1/cmp_luasnip", "smjonas/inc-rename.nvim", "stevearc/conform.nvim", "stevearc/dressing.nvim", "tpope/vim-dadbod", "uga-rosa/ccc.nvim", "wakatime/vim-wakatime", "williamboman/mason-lspconfig.nvim", "williamboman/mason.nvim", "willothy/flatten.nvim", "windwp/nvim-ts-autotag", "zapling/mason-conform.nvim", "zapling/mason-lock.nvim"], "pluginManager": "lazy.nvim", "keymaps": [{"desc": "Escape and clear hlsearch", "noremap": true, "lhs": "<Esc>", "mode": "n", "rhs": "<Cmd>noh<CR><Esc>"}, {"desc": "Toggle IA (Codeium)", "noremap": true, "lhs": "<Space>cI", "mode": "n", "rhs": "<Cmd>CodeiumToggle<CR>"}, {"desc": "Toggle auto-format on-save globally.", "noremap": true, "lhs": "<Space>cft", "mode": "n", "rhs": "<function>"}, {"desc": "Toggle auto-format on-save for buffer.", "noremap": true, "lhs": "<Space>cfb", "mode": "n", "rhs": "<function>"}, {"desc": "Format file or range (in visual mode)", "noremap": true, "lhs": "<Space>cff", "mode": "v", "rhs": "<function>"}, {"desc": "Format file or range (in visual mode)", "noremap": true, "lhs": "<Space>cff", "mode": "n", "rhs": "<function>"}, {"desc": "Trigger linting for current file", "noremap": true, "lhs": "<Space>cL", "mode": "n", "rhs": "<function>"}, {"desc": "Left File Explorer", "noremap": true, "lhs": "<Space><Tab>", "mode": "n", "rhs": ":Neotree toggle left<CR>"}, {"desc": "Copy Git URL", "noremap": true, "lhs": "<Space>yg", "mode": "v", "rhs": "<Cmd>lua require\"gitlinker\".get_buf_range_url(\"v\")<CR>"}, {"desc": "Extract Variable", "noremap": true, "lhs": "<Space>rv", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Extract Variable')<CR>"}, {"desc": "Refactor Commands", "noremap": true, "lhs": "<Space>rr", "mode": "v", "rhs": "<Esc><Cmd>lua require('telescope').extensions.refactoring.refactors()<CR>"}, {"desc": "Inline Variable", "noremap": true, "lhs": "<Space>ri", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Inline Variable')<CR>"}, {"desc": "Extract To File", "noremap": true, "lhs": "<Space>rf", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>"}, {"desc": "Extract Function", "noremap": true, "lhs": "<Space>re", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Extract Function')<CR>"}, {"desc": "Current Word", "noremap": true, "lhs": "<Space>jw", "mode": "v", "rhs": "<Cmd>lua require(\"flash\").jump({ pattern = vim.fn.expand(\"<lt>cword>\")})<CR>"}, {"desc": "ReLine truncated
|
||||
{"distribution": "custom", "masonTools": ["basedpyright", "basedpyright-langserver", "bash-language-server", "black", "clang-format", "clangd", "codespell", "cspell", "emmet-ls", "eslint_d", "isort", "jdtls", "lua-language-server", "markdownlint", "mypy", "phpcs", "prettier", "pylint", "pyright", "pyright-langserver", "ruff", "shfmt", "stylua", "tailwindcss-language-server", "trivy", "typescript-language-server", "vscode-css-language-server", "vscode-json-language-server"], "keymaps": [{"desc": "Next Buffer", "noremap": true, "lhs": "<Tab>", "mode": "n", "rhs": "<Cmd>bnext<CR>"}, {"desc": "Escape and clear hlsearch", "noremap": true, "lhs": "<Esc>", "mode": "n", "rhs": "<Cmd>noh<CR><Esc>"}, {"desc": "Copy Git URL", "noremap": true, "lhs": "<Space>yg", "mode": "v", "rhs": "<Cmd>lua require\"gitlinker\".get_buf_range_url(\"v\")<CR>"}, {"desc": "Extract Variable", "noremap": true, "lhs": "<Space>rv", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Extract Variable')<CR>"}, {"desc": "Refactor Commands", "noremap": true, "lhs": "<Space>rr", "mode": "v", "rhs": "<Esc><Cmd>lua require('telescope').extensions.refactoring.refactors()<CR>"}, {"desc": "Inline Variable", "noremap": true, "lhs": "<Space>ri", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Inline Variable')<CR>"}, {"desc": "Extract To File", "noremap": true, "lhs": "<Space>rf", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Extract Function To File')<CR>"}, {"desc": "Extract Function", "noremap": true, "lhs": "<Space>re", "mode": "v", "rhs": "<Esc><Cmd>lua require('refactoring').refactor('Extract Function')<CR>"}, {"desc": "Current Word", "noremap": true, "lhs": "<Space>jw", "mode": "v", "rhs": "<Cmd>lua require(\"flash\").jump({ pattern = vim.fn.expand(\"<lt>cword>\")})<CR>"}, {"desc": "Remote Treesitter", "noremap": true, "lhs": "<Space>jt", "mode": "v", "rhs": "<Cmd>lua require('flash').treesitter_search()<CR>"}, {"desc": "Search", "noremap": true, "lhs": "<Space>js", "mode": "v", "rhs": "<Cmd>lua require('flash').jump()<CR>"}, {"desc": "Previous Jump", "noremap": true, "lhs": "<Space>jp", "mode": "v", "rhs": "<Cmd>lua require('flash').jump({continue = true})<CR>"}, {"desc": "Search Forward", "noremap": true, "lhs": "<Space>jn", "mode": "v", "rhs": "<Cmd>lua require('flash').jump({search = { forward = true, wrap = false, multi_window = false },})<CR>"}, {"desc": "Treesitter", "noremap": true, "lhs": "<Space>jk", "mode": "v", "rhs": "<Cmd>lua require('flash').treesitter()<CR>"}, {"desc": "Remote", "noremap": true, "lhs": "<Space>jj", "mode": "v", "rhs": "<Cmd>lua require('flash').remote()<CR>"}, {"desc": "Diagnostics", "noremap": true, "lhs": "<Space>jd", "mode": "v", "rhs": "<Cmd>FlashDiagnostics<CR>"}, {"desc": "Search Backward", "noremap": true, "lhs": "<Space>jN", "mode": "v", "rhs": "<Cmd>lua require('flash').jump({search = { forward = false, wrap = false, multi_window = false },})<CR>"}, {"desc": "Delete Comment Style", "noremap": true, "lhs": "<Space>Cd", "mode": "v", "rhs": "<Cmd>CBd<CR>"}, {"desc": "Catalog", "noremap": true, "lhs": "<Space>Cc", "mode": "v", "rhs": "<Cmd>CBcatalog<CR>"}, {"desc": "Marked", "noremap": true, "lhs": "<Space>Cm", "mode": "v", "rhs": "<Cmd>CBllbox14<CR>"}, {"desc": "Line", "noremap": true, "lhs": "<Space>Cl", "mode": "v", "rhs": "<Cmd>CBline<CR>"}, {"desc": "Tiled line", "noremap": true, "lhs": "<Space>Ct", "mode": "v", "rhs": "<Cmd>CBllline<CR>"}, {"desc": "Comment Box", "noremap": true, "lhs": "<Space>Cb", "mode": "v", "rhs": "<Cmd>CBccbox<CR>"}, {"desc": "Run Code", "noremap": true, "lhs": "<Space>cx", "mode": "v", "rhs": "<Esc><Cmd>'<lt>,'>SnipRun<CR>"}, {"desc": "Unique", "noremap": true, "lhs": "<Space>cu", "mode": "v", "rhs": ":!uniq<CR>"}, {"desc": "Sort Asc", "noremap": true, "lhs": "<Space>cs", "mode": "v", "rhs": ":sort<CR>"}, {"desc": "Sort Case Insensitive", "noremap": true, "lhs": "<Space>ci", "mode": "v", "rhs": ":sort i<CR>"}, {"desc": "Sort Desc", "noremap": true, "lhs": "<Space>cS", "mode": "v", "rhs": ":sort!<CR>"}, {"desc": "Copy Git URL", "noremap": true, "lhs": "<Space>yg", "mode": "n", "rhs": "<Cmd>lua require\"gitlinker\".get_buf_range_url()<CR>"}, {"desc": "File Name", "noremap": true, "lhs": "<Space>yf", "mode": "n", "rhs": "<Cmd>CopyFileName<CR>"}, {"desc": "Copy Whole File", "noremap": true, "lhs": "<Space>ya", "mode": "n", "rhs": "<Cmd>%y+<CR>"}, {"desc": "Absolute Path", "noremap": true, "lhs": "<Space>yP", "mode": "n", "rhs": "<Cmd>CopyAbsolutePath<CR>"}, {"desc": "Relative Path", "noremap": true, "lhs": "<Space>yp", "mode": "n", "rhs": "<Cmd>CopyRelativePath<CR>"}, {"desc": "Quickfix List (Trouble)", "noremap": true, "lhs": "<Space>xQ", "mode": "n", "rhs": "<Cmd>Trouble qflist toggle<CR>"}, {"desc": "Location List (Trouble)", "noremap": true, "lhs": "<Space>xL", "mode": "n", "rhs": "<Cmd>Trouble loclist toggle<CR>"}, {"desc": "LSP references/definitions/... (Trouble)", "noremap": true, "lhs": "<Space>xS", "mode": "n", "rhsLine truncated
|
||||
@@ -20,6 +20,7 @@ local options = {
|
||||
ignorecase = true, -- ignore case in search patterns
|
||||
inccommand = 'split', -- preview incremental substitute
|
||||
laststatus = 3,
|
||||
title = true, -- title for context
|
||||
list = false,
|
||||
-- listchars = { trail = "", tab = "", nbsp = "_", extends = ">", precedes = "<" }, -- highlight
|
||||
mouse = 'a', -- allow the mouse to be used in neovim
|
||||
|
||||
+14
-12
@@ -1,9 +1,9 @@
|
||||
{
|
||||
"LuaSnip": { "branch": "master", "commit": "7ad2eaeaca56d6ed63acacbfc114b99f1f67b982" },
|
||||
"LuaSnip": { "branch": "master", "commit": "45db5addf8d0a201e1cf247cae4cdce605ad3768" },
|
||||
"Navigator.nvim": { "branch": "master", "commit": "91d86506ac2a039504d5205d32a1d4bc7aa57072" },
|
||||
"better-escape.nvim": { "branch": "master", "commit": "d337e02b140d909345441392de47a42d283747c1" },
|
||||
"bigfile.nvim": { "branch": "main", "commit": "33eb067e3d7029ac77e081cfe7c45361887a311a" },
|
||||
"ccc.nvim": { "branch": "main", "commit": "4fb5abaef2f2e0540fe22d4d74a9841205fff9e4" },
|
||||
"ccc.nvim": { "branch": "main", "commit": "790aa881d7f47bc7cc07ad03f1216bb7caf9ef67" },
|
||||
"cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" },
|
||||
"cmp-cmdline": { "branch": "main", "commit": "d250c63aa13ead745e3a40f61fdd3470efde3923" },
|
||||
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
|
||||
@@ -12,8 +12,9 @@
|
||||
"cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" },
|
||||
"cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" },
|
||||
"codeium.vim": { "branch": "main", "commit": "1513aef682a9b3363c0bf60292e6ddc781c716ce" },
|
||||
"codesnap.nvim": { "branch": "main", "commit": "c2924bf6c9a2c2c03318fae9b7fe0706412b9d9c" },
|
||||
"comment-box.nvim": { "branch": "main", "commit": "06bb771690bc9df0763d14769b779062d8f12bc5" },
|
||||
"conform.nvim": { "branch": "master", "commit": "62eba813b7501b39612146cbf29cd07f1d4ac29c" },
|
||||
"conform.nvim": { "branch": "master", "commit": "0ebe875d9c306f5fc829db38492ffff2a70d8e9d" },
|
||||
"dashboard-nvim": { "branch": "master", "commit": "fabf5feec96185817c732d47d363f34034212685" },
|
||||
"dotfyle-metadata.nvim": { "branch": "main", "commit": "342ef8f3f98f3ccc451c9cf2be74e95149ced05d" },
|
||||
"dressing.nvim": { "branch": "master", "commit": "c5775a888adbc50652cb370073fcfec963eca93e" },
|
||||
@@ -21,10 +22,10 @@
|
||||
"flatten.nvim": { "branch": "main", "commit": "e420e531d2ab24aebcf7b3c9fca28e6c5c34964d" },
|
||||
"friendly-snippets": { "branch": "main", "commit": "00ebcaa159e817150bd83bfe2d51fa3b3377d5c4" },
|
||||
"hardtime.nvim": { "branch": "main", "commit": "6513bf42cd9261669d1ee41ff8b4065dfdc53a09" },
|
||||
"hlargs.nvim": { "branch": "main", "commit": "cc0d9ee75e5ffba730393049119361b9e3a5b1b6" },
|
||||
"hlargs.nvim": { "branch": "main", "commit": "9adab9f2a3270c6413b808405479caaf972be953" },
|
||||
"inc-rename.nvim": { "branch": "main", "commit": "8ba77017ca468f3029bf88ef409c2d20476ea66b" },
|
||||
"indent-blankline.nvim": { "branch": "master", "commit": "db926997af951da38e5004ec7b9fbdc480b48f5d" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
|
||||
"lazy.nvim": { "branch": "main", "commit": "48b52b5cfcf8f88ed0aff8fde573a5cc20b1306d" },
|
||||
"lspkind.nvim": { "branch": "master", "commit": "cff4ae321a91ee3473a92ea1a8c637e3a9510aec" },
|
||||
"lspsaga.nvim": { "branch": "main", "commit": "4ce44df854f447cf0a8972e5387b3aeb5efc798b" },
|
||||
"lualine.nvim": { "branch": "master", "commit": "b431d228b7bbcdaea818bdc3e25b8cdbe861f056" },
|
||||
@@ -36,7 +37,7 @@
|
||||
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
|
||||
"mini.files": { "branch": "main", "commit": "2e262838a773c0bc3ccbc9c4bcf4a1a012497ea2" },
|
||||
"mini.icons": { "branch": "main", "commit": "12e7b5d47bfc1b4c5ba4278fb49ec9100138df14" },
|
||||
"mini.nvim": { "branch": "main", "commit": "b5ee41d2b8ab54f8b6b383b488e822c5cc431871" },
|
||||
"mini.nvim": { "branch": "main", "commit": "08430e1ae29d54f2cb54a7d3f9062f2f2a0b4909" },
|
||||
"modes.nvim": { "branch": "main", "commit": "3188692abf02a8838ec75e59d68c2ce3e4323f5c" },
|
||||
"neo-tree.nvim": { "branch": "main", "commit": "206241e451c12f78969ff5ae53af45616ffc9b72" },
|
||||
"neotest": { "branch": "master", "commit": "6d6ad113f56edc7c3f2a77a0836ea8c1b955ebea" },
|
||||
@@ -52,20 +53,20 @@
|
||||
"nvim-dap-ui": { "branch": "master", "commit": "1c351e4e417d4691da12948b6ecf966936a56d28" },
|
||||
"nvim-lint": { "branch": "master", "commit": "debabca63c0905b59ce596a55a8e33eafdf66342" },
|
||||
"nvim-lsp-file-operations": { "branch": "master", "commit": "92a673de7ecaa157dd230d0128def10beb56d103" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "2a6f00ff66e276ab3289be8bb9f844f7ab385848" },
|
||||
"nvim-lspconfig": { "branch": "master", "commit": "3ad562700d0615818bf358268ac8914f6ce2b079" },
|
||||
"nvim-nio": { "branch": "master", "commit": "a428f309119086dc78dd4b19306d2d67be884eee" },
|
||||
"nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" },
|
||||
"nvim-spectre": { "branch": "master", "commit": "ba7fb777edff6c1fbbeffd343e113af64c04e90a" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "7a64148896289a91cb2a92e9da3f76d5512a3fb8" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "0f3332788e0bd37716fbd25f39120dcfd557c90f" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "41e3abf6bfd9a9a681eb1f788bdeba91c9004b2b" },
|
||||
"nvim-treesitter": { "branch": "master", "commit": "64cc1ef764a0b137a642d05cacdfe1126124fb35" },
|
||||
"nvim-treesitter-context": { "branch": "master", "commit": "0ec9a8e00cedfb52e3c2259b55f46a7c18fc2429" },
|
||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "3a3c6244553f13fdd92d312c82722b57ce6c4bec" },
|
||||
"nvim-ts-autotag": { "branch": "main", "commit": "e239a560f338be31337e7abc3ee42515daf23f5e" },
|
||||
"nvim-web-devicons": { "branch": "master", "commit": "3722e3d1fb5fe1896a104eb489e8f8651260b520" },
|
||||
"odoo-snippets": { "branch": "main", "commit": "5e6b7191e3ea60bba00df6cdbc031291b194768d" },
|
||||
"onedark.nvim": { "branch": "master", "commit": "fae34f7c635797f4bf62fb00e7d0516efa8abe37" },
|
||||
"persistence.nvim": { "branch": "main", "commit": "f6aad7dde7fcf54148ccfc5f622c6d5badd0cc3d" },
|
||||
"plenary.nvim": { "branch": "master", "commit": "ec289423a1693aeae6cd0d503bac2856af74edaa" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "9f3d10e66a79e8975926f8cb930856e4930d9da4" },
|
||||
"rainbow-delimiters.nvim": { "branch": "master", "commit": "bb48714623a4fae73c42e4b318b4587464111769" },
|
||||
"refactoring.nvim": { "branch": "master", "commit": "c406fc5fb4d7ba5fce7b668637075fad6e75e9f8" },
|
||||
"screenkey.nvim": { "branch": "main", "commit": "b1516d5d610c89555062397d29fa7f32fc8ec431" },
|
||||
"sniprun": { "branch": "master", "commit": "a29d7b1c313b00980015ad79fa0ab512a0729940" },
|
||||
@@ -80,12 +81,13 @@
|
||||
"trouble.nvim": { "branch": "main", "commit": "6efc446226679fda0547c0fd6a7892fd5f5b15d8" },
|
||||
"twilight.nvim": { "branch": "main", "commit": "1584c0b0a979b71fd86b18d302ba84e9aba85b1b" },
|
||||
"ultimate-autopair.nvim": { "branch": "v0.6", "commit": "53ed7c65e466963c916251f9ce6df7dd3685dc36" },
|
||||
"vim-alternate": { "branch": "master", "commit": "57a6d2797b3bec39f5c075104082b0c0835535ed" },
|
||||
"vim-dadbod": { "branch": "master", "commit": "7888cb7164d69783d3dce4e0283decd26b82538b" },
|
||||
"vim-dadbod-completion": { "branch": "master", "commit": "880f7e9f2959e567c718d52550f9fae1aa07aa81" },
|
||||
"vim-dadbod-ui": { "branch": "master", "commit": "2f344874918a3ab6bbe68fb866b3f003a639a5d2" },
|
||||
"vim-visual-multi": { "branch": "master", "commit": "38b0e8d94a5499ccc17d6159763d32c79f53417b" },
|
||||
"vim-wakatime": { "branch": "master", "commit": "53bba6bb8342de9cbdafc82142a9b5e82008d858" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "6c1584eb76b55629702716995cca4ae2798a9cca" },
|
||||
"which-key.nvim": { "branch": "main", "commit": "bfec3d6bc0a9b0b2cb11644642f78c2c3915eef0" },
|
||||
"yanky.nvim": { "branch": "main", "commit": "73215b77d22ebb179cef98e7e1235825431d10e4" },
|
||||
"zen-mode.nvim": { "branch": "main", "commit": "29b292bdc58b76a6c8f294c961a8bf92c5a6ebd6" }
|
||||
}
|
||||
@@ -141,6 +141,11 @@ return {
|
||||
vim.keymap.set('n', '<leader>cI', '<cmd>CodeiumToggle<cr>', { desc = 'Toggle IA (Codeium)' })
|
||||
end,
|
||||
},
|
||||
{ -- Alternate
|
||||
'ton/vim-alternate',
|
||||
lazy = true,
|
||||
ft = { 'cpp', 'h', 'hpp', 'c' },
|
||||
},
|
||||
{
|
||||
'nacro90/numb.nvim',
|
||||
event = 'CmdlineEnter',
|
||||
|
||||
@@ -0,0 +1,94 @@
|
||||
local alpha = require('alpha')
|
||||
local dashboard = require('alpha.themes.dashboard')
|
||||
|
||||
dashboard.section.header.val = {
|
||||
[[ ]],
|
||||
[[ ]],
|
||||
[[ ████ ██████ █████ ██ ]],
|
||||
[[ ███████████ █████ ]],
|
||||
[[ █████████ ███████████████████ ███ ███████████ ]],
|
||||
[[ █████████ ███ █████████████ █████ ██████████████ ]],
|
||||
[[ █████████ ██████████ █████████ █████ █████ ████ █████ ]],
|
||||
[[ ███████████ ███ ███ █████████ █████ █████ ████ █████ ]],
|
||||
[[ ██████ █████████████████████ ████ █████ █████ ████ ██████ ]],
|
||||
[[ ]],
|
||||
}
|
||||
dashboard.section.header.opts.hl = 'AlphaHeader'
|
||||
|
||||
local function button(sc, txt, leader_txt, keybind, keybind_opts)
|
||||
local sc_after = sc:gsub('%s', ''):gsub(leader_txt, '<leader>')
|
||||
|
||||
local opts = {
|
||||
position = 'center',
|
||||
shortcut = sc,
|
||||
cursor = 5,
|
||||
width = 36,
|
||||
align_shortcut = 'right',
|
||||
hl_shortcut = 'AlphaShortcut',
|
||||
}
|
||||
|
||||
if nil == keybind then
|
||||
keybind = sc_after
|
||||
end
|
||||
|
||||
keybind_opts = vim.F.if_nil(keybind_opts, { noremap = true, silent = true, nowait = true })
|
||||
opts.keymap = { 'n', sc_after, keybind, keybind_opts }
|
||||
|
||||
local function on_press()
|
||||
local key = vim.api.nvim_replace_termcodes(sc_after .. '<Ignore>', true, false, true)
|
||||
vim.api.nvim_feedkeys(key, 't', false)
|
||||
end
|
||||
|
||||
return {
|
||||
type = 'button',
|
||||
val = txt,
|
||||
on_press = on_press,
|
||||
opts = opts,
|
||||
}
|
||||
end
|
||||
|
||||
local leader = ' '
|
||||
dashboard.section.buttons.val = {
|
||||
button('space f f', ' Find File ', leader, ':Telescope find_files<CR>'),
|
||||
button('space f h', ' Find Hidden File ', leader, ':Telescope find_files hidden=true no_ignore=true<CR>'),
|
||||
button('space f o', ' Recent File ', leader, ':Telescope oldfiles<CR>'),
|
||||
button('space f w', ' Find Word ', leader, ':Telescope live_grep<CR>'),
|
||||
button('space f n', ' New File ', leader, ':ene <BAR> startinsert <CR>'),
|
||||
button('space n', ' Settings', leader, ':e $MYVIMRC | :cd %:p:h <CR>'),
|
||||
button('space l', ' Lazy', leader, ':Lazy<CR>'),
|
||||
button('space q', ' Quit', leader, ':qa<CR>'),
|
||||
}
|
||||
dashboard.section.buttons.opts.hl = 'String'
|
||||
|
||||
local function footer()
|
||||
local stats = require('lazy').stats()
|
||||
local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100)
|
||||
return ' Have fun with Neovim' .. ' Neovim loaded ' .. stats.count .. ' plugins in ' .. ms .. 'ms'
|
||||
end
|
||||
|
||||
dashboard.section.footer.val = footer()
|
||||
dashboard.section.footer.opts.hl = 'AlphaFooter'
|
||||
|
||||
local head_butt_padding = 2
|
||||
local occu_height = #dashboard.section.header.val + 2 * #dashboard.section.buttons.val + head_butt_padding
|
||||
local header_padding = math.max(0, math.ceil((vim.fn.winheight('$') - occu_height) * 0.40))
|
||||
local foot_butt_padding = 1
|
||||
|
||||
dashboard.config.layout = {
|
||||
{ type = 'padding', val = header_padding },
|
||||
dashboard.section.header,
|
||||
{ type = 'padding', val = head_butt_padding },
|
||||
dashboard.section.buttons,
|
||||
{ type = 'padding', val = foot_butt_padding },
|
||||
dashboard.section.footer,
|
||||
}
|
||||
|
||||
alpha.setup(dashboard.opts)
|
||||
|
||||
vim.api.nvim_create_autocmd('User', {
|
||||
pattern = 'LazyVimStarted',
|
||||
callback = function()
|
||||
dashboard.section.footer.val = footer()
|
||||
pcall(vim.cmd.AlphaRedraw)
|
||||
end,
|
||||
})
|
||||
@@ -14,7 +14,6 @@ dashboard.setup({
|
||||
config = {
|
||||
week_header = {
|
||||
enable = true,
|
||||
append = { '', icons.ui.Circle .. ' Learn, Make, Explore! ' .. icons.ui.Circle },
|
||||
},
|
||||
packages = { enable = true },
|
||||
project = { enable = true, limit = 8 },
|
||||
|
||||
@@ -18,7 +18,7 @@ local cmp_nvim_lsp = require('cmp_nvim_lsp')
|
||||
-- import mason_lspconfig plugin
|
||||
local mason_lspconfig = require('mason-lspconfig')
|
||||
|
||||
local keymap = vim.keymap -- for conciseness
|
||||
-- local keymap = vim.keymap -- for conciseness
|
||||
|
||||
-- vim.api.nvim_create_autocmd('LspAttach', {
|
||||
-- group = vim.api.nvim_create_augroup('UserLspConfig', {}),
|
||||
@@ -102,10 +102,15 @@ mason_lspconfig.setup({
|
||||
diagnostics = {
|
||||
globals = { 'vim' },
|
||||
},
|
||||
hint = { enable = true },
|
||||
completion = {
|
||||
callSnippet = 'Replace',
|
||||
},
|
||||
workspace = {
|
||||
library = {
|
||||
[vim.fn.expand('$VIMRUNTIME/lua')] = true,
|
||||
[vim.fn.stdpath('config') .. '/lua'] = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
@@ -173,7 +173,7 @@ lualine.setup({
|
||||
-- section_separators = '',
|
||||
theme = 'onedark',
|
||||
disabled_filetypes = {
|
||||
'dashboard',
|
||||
statusline = { 'neo-tree', 'alpha', 'dashboard', 'lspsagaoutline' },
|
||||
},
|
||||
},
|
||||
-- extensions = { 'quickfix', 'man', 'mason', 'lazy', 'toggleterm', 'nvim-tree' },
|
||||
|
||||
@@ -53,6 +53,7 @@ local n_mappings = {
|
||||
{ '<leader>bx', '<cmd>DapTerminate<cr>', desc = 'Exit' },
|
||||
|
||||
{ '<leader>c', group = ' Code' },
|
||||
{ '<leader>a', '<cmd>Alternate<cr>', desc = 'Toggle Alternate' },
|
||||
{ '<leader>cF', '<cmd>retab<cr>', desc = 'Fix Tabs' },
|
||||
{ '<leader>cP', '<cmd>CccConvert<cr>', desc = 'Convert Color' },
|
||||
{ '<leader>cR', '<cmd>ReloadConfig<cr>', desc = 'Reload Configs' },
|
||||
@@ -217,6 +218,17 @@ local n_mappings = {
|
||||
{ '<leader>on', '<cmd>set relativenumber!<cr>', desc = 'Relative Numbers' },
|
||||
{ '<leader>oo', '<cmd>Telescope vim_options<cr>', desc = 'All Options' },
|
||||
|
||||
{ '<leader>p', group = ' ScreenShot' },
|
||||
{ '<leader>py', '<cmd>CodeSnap<cr>', mode = 'x', desc = 'Save selected code snapshot into clipboard' },
|
||||
{ '<leader>ps', '<cmd>CodeSnapSave<cr>', mode = 'x', desc = 'Save selected code snapshot in ~/Pictures' },
|
||||
{
|
||||
'<leaderp>h',
|
||||
'<cmd>CodeSnapHighlight<cr>',
|
||||
mode = 'x',
|
||||
desc = 'Highlight and snapshot selected code into clipboard',
|
||||
},
|
||||
{ '<leader>pi', '<cmd>CodeSnapASCII<cr>', mode = 'x', desc = 'Save ASCII code snapshot into clipboard' },
|
||||
|
||||
{ '<leader>q', group = ' Quit' },
|
||||
{ '<leader>qa', '<cmd>qall<cr>', desc = 'Quit All' },
|
||||
{ '<leader>qc', '<cmd>bw<cr>', desc = 'Close Buffer' },
|
||||
@@ -228,6 +240,30 @@ local n_mappings = {
|
||||
{ '<leader>qw', '<cmd>wq<cr>', desc = 'Write and Quit' },
|
||||
|
||||
{ '<leader>r', group = ' Refactor' },
|
||||
{
|
||||
'<leader>rc',
|
||||
function()
|
||||
local file_name = vim.api.nvim_buf_get_name(0)
|
||||
local file_type = vim.bo.filetype
|
||||
|
||||
if file_type == 'c' then
|
||||
vim.cmd(':terminal gcc ' .. file_name .. '; ./a.out ')
|
||||
elseif file_type == 'python' then
|
||||
vim.cmd(':terminal python ' .. file_name)
|
||||
elseif file_type == 'java' then
|
||||
vim.cmd(':terminal javac ' .. file_name .. '; java ' .. file_name)
|
||||
elseif file_type == 'lua' then
|
||||
vim.cmd(':terminal lua ' .. file_name)
|
||||
-- elseif file_type == 'js' then
|
||||
-- vim.cmd(':terminal node ' .. file_name)
|
||||
-- elseif file_type == 'rust' then
|
||||
-- vim.cmd(':terminal rustc ' .. file_name .. '; ./a.out ')
|
||||
-- elseif file_type == 'ts' then
|
||||
-- vim.cmd(':terminal tsc ' .. file_name .. '; node ' .. file_name)
|
||||
end
|
||||
end,
|
||||
desc = 'Code Runner',
|
||||
},
|
||||
{
|
||||
'<leader>rR',
|
||||
"<Esc><cmd>lua require('telescope').extensions.refactoring.refactors()<CR>",
|
||||
|
||||
@@ -113,6 +113,21 @@ return {
|
||||
event = { 'VimEnter' },
|
||||
lazy = false,
|
||||
},
|
||||
{ -- Codesnap
|
||||
'mistricky/codesnap.nvim',
|
||||
lazy = true,
|
||||
build = 'make',
|
||||
opts = {
|
||||
save_path = '~/Pictures/screenshots/code',
|
||||
has_breadcrumbs = false,
|
||||
show_workspace = false,
|
||||
bg_theme = 'default',
|
||||
watermark = 'S4NKALP',
|
||||
code_font_family = 'Iosevka NF',
|
||||
code_font_size = 12,
|
||||
},
|
||||
cmd = { 'CodeSnap', 'CodeSnapSave', 'CodeSnapHighlight', 'CodeSnapASCII' },
|
||||
},
|
||||
{
|
||||
'mvllow/modes.nvim',
|
||||
event = { 'BufReadPost', 'BufNewFile' },
|
||||
|
||||
Reference in new issue
Block a user