From e520d29e8b5bbab6c3926dd9f72a25e84f3787c7 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Tue, 19 Mar 2024 17:56:56 +0545 Subject: [PATCH] . --- config/nvim/after/dashboard-theme/doom.lua | 27 +++++++ config/nvim/after/dashboard-theme/headers.lua | 54 ++++++++++++++ config/nvim/after/dashboard-theme/hyper.lua | 72 +++++++++++++++++++ config/nvim/after/dashboard-theme/landing.lua | 61 ++++++++++++++++ config/nvim/after/dashboard-theme/minimal.lua | 38 ++++++++++ config/nvim/dotfyle.json | 2 - config/nvim/lazy-lock.json | 33 +++++---- config/nvim/lazyvim.json | 1 - config/nvim/lua/config/autocmds.lua | 11 +++ config/nvim/lua/config/keymaps.lua | 9 +++ config/nvim/lua/config/lazy.lua | 31 ++++---- .../nvim/lua/plugins/dashboard-theme/doom.lua | 27 +++++++ .../lua/plugins/dashboard-theme/headers.lua | 54 ++++++++++++++ .../lua/plugins/dashboard-theme/hyper.lua | 58 +++++++++++++++ .../lua/plugins/dashboard-theme/landing.lua | 47 ++++++++++++ .../lua/plugins/dashboard-theme/minimal.lua | 31 ++++++++ .../extras/editor/marks/harpoon-extended.lua | 13 +++- .../plugins/extras/lang/ansible-extended.lua | 49 ------------- .../lua/plugins/extras/lazyvim/dashboard.lua | 29 ++++---- 19 files changed, 546 insertions(+), 101 deletions(-) create mode 100644 config/nvim/after/dashboard-theme/doom.lua create mode 100644 config/nvim/after/dashboard-theme/headers.lua create mode 100644 config/nvim/after/dashboard-theme/hyper.lua create mode 100644 config/nvim/after/dashboard-theme/landing.lua create mode 100644 config/nvim/after/dashboard-theme/minimal.lua create mode 100644 config/nvim/lua/plugins/dashboard-theme/doom.lua create mode 100644 config/nvim/lua/plugins/dashboard-theme/headers.lua create mode 100644 config/nvim/lua/plugins/dashboard-theme/hyper.lua create mode 100644 config/nvim/lua/plugins/dashboard-theme/landing.lua create mode 100644 config/nvim/lua/plugins/dashboard-theme/minimal.lua delete mode 100644 config/nvim/lua/plugins/extras/lang/ansible-extended.lua diff --git a/config/nvim/after/dashboard-theme/doom.lua b/config/nvim/after/dashboard-theme/doom.lua new file mode 100644 index 00000000..ad735e2b --- /dev/null +++ b/config/nvim/after/dashboard-theme/doom.lua @@ -0,0 +1,27 @@ +local header_collection = require('plugins.dashboard-theme.headers') +return { + theme = 'doom', + config = { + header = header_collection.dash, + center = { + { + icon = ' ', + icon_hl = 'Title', + desc = 'Find File ', + desc_hl = 'String', + key = 'f', + key_hl = 'Number', + key_format = ' %s', -- remove default surrounding `[]` + action = 'Telescope find_files' + }, + { + icon = ' ', + desc = 'Quit', + key = 'q', + key_format = ' %s', -- remove default surrounding `[]` + action = 'qa' + }, + }, + footer = {} --your footer + } +} diff --git a/config/nvim/after/dashboard-theme/headers.lua b/config/nvim/after/dashboard-theme/headers.lua new file mode 100644 index 00000000..dab872b4 --- /dev/null +++ b/config/nvim/after/dashboard-theme/headers.lua @@ -0,0 +1,54 @@ +local M = {} + +M.default = { + " ", + " ", + " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ", + " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ", + " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ", + " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ", + " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ", + " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ", + " ", + " ", +} + +M.dash = { + " ", + " ", + "▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄", + "█ ▄ ▄ █", + "█ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █", + "█ █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ █", + "█ ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █ █", + "█ ▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █", + "█ █▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄ █", + "█ ▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █ █", + "█ █▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █ █", + "█ █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ █", + "█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█", + " ", + " " +} + +M.neovim_mini1 = { + "", + "", + " _______ ____ ____.__ ", + " \\ \\ ____ ___\\ \\ / /|__| _____ ", + " / | \\_/ __ \\/ _ \\ Y / | |/ \\ ", + "/ | \\ ___( <_> ) / | | Y Y \\", + "\\____|__ /\\___ >____/ \\___/ |__|__|_| /", + " \\/ \\/ \\/ ", + "", + +} +M.neovim_mini2 = { + " __ ", + " .-----.-----.-----.--.--|__|--------. ", + " | | -__| _ | | | | | ", + " |__|__|_____|_____|\\___/|__|__|__|__| ", + "" +} + +return M diff --git a/config/nvim/after/dashboard-theme/hyper.lua b/config/nvim/after/dashboard-theme/hyper.lua new file mode 100644 index 00000000..e4a6cc2b --- /dev/null +++ b/config/nvim/after/dashboard-theme/hyper.lua @@ -0,0 +1,72 @@ +local header_collection = require('plugins.dashboard-theme.headers') +local limit = 9 + +return { + theme = 'hyper', + change_to_vcs_root = true, + shortcut_type = 'number', + hide = { + statusline = true, -- hide statusline default is true + tabline = true, -- hide the tabline + winbar = true, -- hide winbar + }, + config = { + header = header_collection.default, + week_header = { + enable = false, + }, + packages = { enable = true }, -- show how many plugins neovim loaded + project = { + enable = false, + limit = 8, + icon = ' ', + group = '@function', + label = 'Projects', + action = 'Telescope find_files cwd=' + }, + mru = { + limit = limit, + icon = ' ', + label = 'Recent (Last ' .. tostring(limit) .. ' files)', + }, + shortcut = { + { + icon = ' ', + desc = 'New file', + group = 'DiagnosticOk', + action = 'ene', + key = 'e' + }, + { + icon = ' ', + desc = 'Open notes', + group = 'DiagnosticWarn', + action = 'Neorg index', + key = 'n' + }, + { + icon = ' ', + desc = 'Files', + group = 'DiagnosticInfo', + action = 'Telescope find_files', + key = 'f', + }, + { + icon = ' ', + desc = 'Words', + group = 'DiagnosticWarn', + action = 'Telescope live_grep', + key = 'g', + }, + { + icon = ' ', + desc = 'Todo', + group = 'DiagnosticOk', + action = 'TodoTelescope', + key = 't', + }, + { icon = '󰚰 ', desc = 'Update', group = '@property', action = 'Lazy update', key = 'u' }, + { icon = ' ', desc = 'Quit', group = 'DiagnosticError', action = 'qa', key = 'q' }, + }, + }, + } diff --git a/config/nvim/after/dashboard-theme/landing.lua b/config/nvim/after/dashboard-theme/landing.lua new file mode 100644 index 00000000..5b8fbb0a --- /dev/null +++ b/config/nvim/after/dashboard-theme/landing.lua @@ -0,0 +1,61 @@ +local header_collection = require('plugins.dashboard-theme.headers') + +return { + theme = 'hyper', + change_to_vcs_root = true, + shortcut_type = 'number', + hide = { + statusline = true, -- hide statusline default is true + tabline = true, -- hide the tabline + winbar = true, -- hide winbar + }, + config = { + header = header_collection.default, + week_header = { + enable = false, + }, + packages = { enable = true }, -- show how many plugins neovim loaded + project = { enable = false }, + mru = { }, + shortcut = { + { + icon = ' ', + desc = 'New file', + group = 'DiagnosticOk', + action = 'ene', + key = 'e' + }, + { + icon = ' ', + desc = 'Open notes', + group = 'DiagnosticWarn', + action = 'Neorg index', + key = 'n' + }, + { + icon = ' ', + desc = 'Files', + group = 'DiagnosticInfo', + action = 'Telescope find_files', + key = 'f', + }, + { + icon = ' ', + desc = 'Words', + group = 'DiagnosticWarn', + action = 'Telescope live_grep', + key = 'g', + }, + { + icon = ' ', + desc = 'Todo', + group = 'DiagnosticOk', + action = 'TodoTelescope', + key = 't', + }, + { icon = '󰚰 ', desc = 'Update', group = '@property', action = 'Lazy update', key = 'u' }, + { icon = ' ', desc = 'Quit', group = 'DiagnosticError', action = 'qa', key = 'q' }, + }, + }, + } + diff --git a/config/nvim/after/dashboard-theme/minimal.lua b/config/nvim/after/dashboard-theme/minimal.lua new file mode 100644 index 00000000..a54325d1 --- /dev/null +++ b/config/nvim/after/dashboard-theme/minimal.lua @@ -0,0 +1,38 @@ +local header_collection = require('plugins.dashboard-theme.headers') +return { + theme = 'doom', + config = { + header = header_collection.dash, + center = { + { + icon = ' ', + icon_hl = 'Title', + desc = 'New file', + desc_hl = 'String', + action = 'ene', + }, + { + icon = ' ', + icon_hl = 'Title', + desc = 'Open notes', + desc_hl = 'String', + action = 'Neorg index', + }, + { + icon = ' ', + icon_hl = 'Title', + desc = 'Find files', + desc_hl = 'String', + action = 'Telescope find_files', + }, + { + icon = ' ', + icon_hl = 'Title', + desc = 'Quit', + desc_hl = 'String', + action = 'qa', + }, + }, + footer = {} --your footer + } +} diff --git a/config/nvim/dotfyle.json b/config/nvim/dotfyle.json index 41d653ee..113d2a04 100644 --- a/config/nvim/dotfyle.json +++ b/config/nvim/dotfyle.json @@ -1,8 +1,6 @@ { "distribution": "LazyVim", "masonTools": [ - "ansible-language-server", - "ansible-lint", "bash-language-server", "beautysh", "biome", diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index 9cec02f3..a8924ad1 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -1,7 +1,7 @@ { "LazyVim": { "branch": "main", "commit": "0107a1079be7fb92f7d5b7e2c40818f47cf425d9" }, "LuaSnip": { "branch": "master", "commit": "a7a4b4682c4b3e2ba82b82a4e6e5f5a0e79dec32" }, - "SchemaStore.nvim": { "branch": "main", "commit": "9f74c6a52f4f6adaf3b3d64b15d2363219afefae" }, + "SchemaStore.nvim": { "branch": "main", "commit": "4d798fd5b692c8fce77268aba8f6f926b0c9f835" }, "actions-preview.nvim": { "branch": "master", "commit": "5072b1b1065a6b22bdd46b5c21780a91d6a08071" }, "autolist.nvim": { "branch": "main", "commit": "5f70a5f99e96c8fe3069de042abd2a8ed2deb855" }, "bigfile.nvim": { "branch": "main", "commit": "33eb067e3d7029ac77e081cfe7c45361887a311a" }, @@ -15,20 +15,20 @@ "cmp_luasnip": { "branch": "master", "commit": "05a9ab28b53f71d1aece421ef32fee2cb857a843" }, "codeium.vim": { "branch": "main", "commit": "bef9cbaa5c19ab85d8048f364bfc0ac8c7ab335d" }, "compiler.nvim": { "branch": "main", "commit": "3d3fe576cad12d9c2011c4101fc93737761bd342" }, - "conform.nvim": { "branch": "master", "commit": "67ee2258e08ccb91345d52f62484b657feccef25" }, + "conform.nvim": { "branch": "master", "commit": "41586cbc81b8d344a795264989a3db79d0a27615" }, "crates.nvim": { "branch": "main", "commit": "b4f4987ccdb1cc3899ee541ef4375c73c48c4570" }, - "dashboard-nvim": { "branch": "master", "commit": "413442b12d85315fc626c44a0ce4929b213ef604" }, + "dashboard-nvim": { "branch": "master", "commit": "92c94c8c3c92ddd29e1181a0aebcc22f2fe96f71" }, "dial.nvim": { "branch": "master", "commit": "27eb570085db2ef44bff4f620d3806039184651c" }, "diffview.nvim": { "branch": "main", "commit": "3dc498c9777fe79156f3d32dddd483b8b3dbd95f" }, - "dooku.nvim": { "branch": "main", "commit": "123e34d3b0b4cfb8b2e6d686bc713b671123cbf0" }, + "dooku.nvim": { "branch": "main", "commit": "c1a6b9a4c6b8d6589925ae1104e9df973914198d" }, "dressing.nvim": { "branch": "master", "commit": "18e5beb3845f085b6a33c24112b37988f3f93c06" }, "edgy.nvim": { "branch": "main", "commit": "0b35dc6da4cae6cc2f724bc610eadf955cd2319b" }, "flash.nvim": { "branch": "main", "commit": "48817af25f51c0590653bbc290866e4890fe1cbe" }, "friendly-snippets": { "branch": "main", "commit": "dcd4a586439a1c81357d5b9d26319ae218cc9479" }, "garbage-day.nvim": { "branch": "main", "commit": "029214aff15487822fbbbce6c622d1c380a20fed" }, - "gitsigns.nvim": { "branch": "main", "commit": "4e348641b8206c3b8d23080999e3ddbe4ca90efc" }, + "gitsigns.nvim": { "branch": "main", "commit": "078041e9d060a386b0c9d3a8c7a7b019a35d3fb0" }, "glance.nvim": { "branch": "master", "commit": "8ed5cf3b3b1231ea696d88c9efd977027429d869" }, - "grapple.nvim": { "branch": "main", "commit": "9cecb0af4493d75239446604f237f46fd6b19f81" }, + "grapple.nvim": { "branch": "main", "commit": "6dc1bad1f67d2984d942ef43d87b98ef34447ab9" }, "headlines.nvim": { "branch": "master", "commit": "618ef1b2502c565c82254ef7d5b04402194d9ce3" }, "hydra.nvim": { "branch": "master", "commit": "55de54543d673824435930ecf533256eea2e565b" }, "icon-picker.nvim": { "branch": "master", "commit": "3ee9a0ea9feeef08ae35e40c8be6a2fa2c20f2d3" }, @@ -50,25 +50,24 @@ "mini.surround": { "branch": "main", "commit": "a1b590cc3b676512de507328d6bbab5e43794720" }, "multicursors.nvim": { "branch": "main", "commit": "8b3e14682eed06a532b155c7eae33e174846b3fd" }, "neo-tree.nvim": { "branch": "v3.x", "commit": "742db4e60c74e5fbcc596aaf9e7575e1342dfd09" }, - "neoconf.nvim": { "branch": "main", "commit": "68753daced3b41d6b5e4a441b10a69c1ec33523c" }, + "neoconf.nvim": { "branch": "main", "commit": "7eb9b339869c84494c0fdf68b96e53a764289938" }, "neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" }, "neogen": { "branch": "main", "commit": "b95347a588401a755eadd17482edc1662876bd58" }, "noice.nvim": { "branch": "main", "commit": "bf67d70bd7265d075191e7812d8eb42b9791f737" }, - "nui.nvim": { "branch": "main", "commit": "3dc46d725f7b94bee5117c0a699b57b1902b5d65" }, + "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, "nvim-cmp": { "branch": "main", "commit": "04e0ca376d6abdbfc8b52180f8ea236cbfddf782" }, - "nvim-dap": { "branch": "master", "commit": "c43c2473ecb482a9d91f32c1d4c0098fffad3c7d" }, - "nvim-dap-ui": { "branch": "master", "commit": "9720eb5fa2f41988e8770f973cd11b76dd568a5d" }, + "nvim-dap": { "branch": "master", "commit": "c1695e500c7d552a0a19953a9aefcc89178fb1af" }, + "nvim-dap-ui": { "branch": "master", "commit": "13888eb35faaba48efaf49130b83e0d12e042e1b" }, "nvim-dap-virtual-text": { "branch": "master", "commit": "baa5b0dc6663284cce32e0d00ac1f2511b13496f" }, "nvim-devdocs": { "branch": "master", "commit": "521d24661ffe6d1ba025debea2675c765a9c1ee1" }, "nvim-lint": { "branch": "master", "commit": "03b1fc593638098a35de26d768d5f43b0fe57041" }, "nvim-lsp-file-operations": { "branch": "master", "commit": "223aca86b737dc66e9c51ebcda8788a8d9cc6cf2" }, - "nvim-lspconfig": { "branch": "master", "commit": "5b364bd4db0fb68a56ffe427a370920854acb834" }, + "nvim-lspconfig": { "branch": "master", "commit": "eb012f03bb3b4aca9e875d146008b923d0e07e65" }, "nvim-notify": { "branch": "master", "commit": "5371f4bfc1f6d3adf4fe9d62cd3a9d44356bfd15" }, "nvim-puppeteer": { "branch": "main", "commit": "ea340595967919222f3ba5c6c6def0787a336c82" }, - "nvim-recorder": { "branch": "main", "commit": "f37f8e80b32c2a5dca2bd8f6d9dce278b3f5e434" }, "nvim-spectre": { "branch": "master", "commit": "d1db6c1d37252b5a38f199e2f590c5a1617d9254" }, - "nvim-treesitter": { "branch": "master", "commit": "f87882858438834d2fbb6379aa2be37de901751b" }, - "nvim-treesitter-context": { "branch": "master", "commit": "b8b7e52c1517d401d7c519787d5dc4528c41291a" }, + "nvim-treesitter": { "branch": "master", "commit": "567a76780cd4f982dae1ec57e3dad6174bef3680" }, + "nvim-treesitter-context": { "branch": "master", "commit": "2484f58384be24da375558c88402f2998193eff6" }, "nvim-treesitter-endwise": { "branch": "master", "commit": "60e8c288e011403f248b5f6478dde12bed8a6c55" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "d2a4ffc22d9d38d44edb73da007b3cf43451e9b4" }, "nvim-ts-autotag": { "branch": "main", "commit": "531f48334c422222aebc888fd36e7d109cb354cd" }, @@ -84,7 +83,7 @@ "plenary.nvim": { "branch": "master", "commit": "f7adfc4b3f4f91aab6caebf42b3682945fbc35be" }, "rainbow-delimiters.nvim": { "branch": "master", "commit": "2200900e3c1aae21dadb65c2ea2e91bcc39ca368" }, "refactoring.nvim": { "branch": "master", "commit": "d2786877c91aa409c824f27b4ce8a9f560dda60a" }, - "rustaceanvim": { "branch": "master", "commit": "69a22c2ec63ab375190006751562b62ebb318250" }, + "rustaceanvim": { "branch": "master", "commit": "b0548ff58d34caa220f8806c518fedb6453fc48e" }, "search-replace.nvim": { "branch": "main", "commit": "d92290a02d97f4e9b8cd60d28b56b403432158d5" }, "smart-splits.nvim": { "branch": "master", "commit": "83bdcc3db3b272a6e73b0f3aea0f5bc0a8da2696" }, "sqlite.lua": { "branch": "master", "commit": "40701b6151f8883980c1548647116de39b763540" }, @@ -94,7 +93,7 @@ "telescope-lazy.nvim": { "branch": "main", "commit": "3487d6212fe1b5750ae239e2207f4cb603004d36" }, "telescope-undo.nvim": { "branch": "main", "commit": "d3afc1c105535a90caec092ce27a113f77ba7b84" }, "telescope-zoxide": { "branch": "main", "commit": "68966349aa1b8e9ade403e18479ecf79447389a7" }, - "telescope.nvim": { "branch": "master", "commit": "e9e01d699843af530ef4ad2c8679a7e273bb3dd1" }, + "telescope.nvim": { "branch": "master", "commit": "c816406bd50ade6ec754474f08974154487d417c" }, "todo-comments.nvim": { "branch": "main", "commit": "833d8dd8b07eeda37a09e99460f72a02616935cb" }, "tokyonight.nvim": { "branch": "main", "commit": "c025baf23b62f044eff1f4ef561c45de636f0e32" }, "trouble.nvim": { "branch": "main", "commit": "f1168feada93c0154ede4d1fe9183bf69bac54ea" }, @@ -103,7 +102,7 @@ "tsc.nvim": { "branch": "main", "commit": "ec4e6c2493df1b3a8d381ff7a482685cb4122063" }, "vim-floaterm": { "branch": "master", "commit": "c0535d758004bcce016839e318cbbe802b92c469" }, "vim-illuminate": { "branch": "master", "commit": "305bf07b919ac526deb5193280379e2f8b599926" }, - "vim-startuptime": { "branch": "master", "commit": "308b0088a864c4711a96e45b6734cf9294074f65" }, + "vim-startuptime": { "branch": "master", "commit": "ac2cccb5be617672add1f4f3c0a55ce99ba34e01" }, "vim-wakatime": { "branch": "master", "commit": "56b4d073adaf18c04c7bb5728d41c03b2f25754d" }, "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, "yanky.nvim": { "branch": "main", "commit": "7c5cbf0122ff2dfbb6a92f14885894f65949cc8b" } diff --git a/config/nvim/lazyvim.json b/config/nvim/lazyvim.json index 52403d5a..f1c17023 100644 --- a/config/nvim/lazyvim.json +++ b/config/nvim/lazyvim.json @@ -7,7 +7,6 @@ "plugins.extras.coding.annotation", "plugins.extras.coding.dial", "plugins.extras.coding.multicursor", - "plugins.extras.coding.recorder", "plugins.extras.coding.refactoring", "plugins.extras.coding.treesitter.endwise", "plugins.extras.coding.treesitter.node-action", diff --git a/config/nvim/lua/config/autocmds.lua b/config/nvim/lua/config/autocmds.lua index e8afe705..5d030632 100644 --- a/config/nvim/lua/config/autocmds.lua +++ b/config/nvim/lua/config/autocmds.lua @@ -130,3 +130,14 @@ ac("BufWritePre", { vim.fn.mkdir(vim.fn.fnamemodify(file, ":p:h"), "p") end, }) + +-- Highlight when yanking (copying) text +-- Try it with `yap` in normal mode +-- See `:help vim.highlight.on_yank()` +vim.api.nvim_create_autocmd('TextYankPost', { + desc = 'Highlight when yanking (copying) text', + group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), + callback = function() + vim.highlight.on_yank() + end, +}) diff --git a/config/nvim/lua/config/keymaps.lua b/config/nvim/lua/config/keymaps.lua index 562b12fe..61d3331c 100644 --- a/config/nvim/lua/config/keymaps.lua +++ b/config/nvim/lua/config/keymaps.lua @@ -1,4 +1,5 @@ local map = vim.keymap.set +local api = vim.api local o = vim.opt local Util = require("lazyvim.util") @@ -121,6 +122,12 @@ map("n", "", "$", { desc = "Last character of Line" }) -- Copy whole text to clipboard map("n", "", ":%y+", { desc = "Copy whole text to clipboard", silent = true }) +-- clipboard +map("v", "y", '"+y', { desc = "Yank to clipboard" }) + +-- Duplicate paragraph +map('n', 'p', 'yapp', { desc = 'Duplicate Paragraph' }) + -- Motion map("c", "", "", { desc = "Start Of Line" }) map("i", "", "", { desc = "Start Of Line" }) @@ -163,3 +170,5 @@ map("n", "fd", function() vim.cmd("Dashboard") end end, { desc = "Dashboard" }) + + diff --git a/config/nvim/lua/config/lazy.lua b/config/nvim/lua/config/lazy.lua index fa9a928a..891b1901 100644 --- a/config/nvim/lua/config/lazy.lua +++ b/config/nvim/lua/config/lazy.lua @@ -2,40 +2,43 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then -- bootstrap lazy.nvim -- stylua: ignore - vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", - lazypath }) + vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath }) end vim.opt.rtp:prepend(vim.env.LAZY or lazypath) require("lazy").setup({ spec = { - { - "LazyVim/LazyVim", - import = "lazyvim.plugins", - opts = { colorscheme = "catppuccin" }, - }, + -- add LazyVim and import its plugins + { "LazyVim/LazyVim", import = "lazyvim.plugins" }, + -- import any extras modules here + -- { import = "lazyvim.plugins.extras.lang.typescript" }, + -- { import = "lazyvim.plugins.extras.lang.json" }, + -- { import = "lazyvim.plugins.extras.ui.mini-animate" }, + -- import/override with your plugins { import = "plugins" }, - { import = "lazyvim.plugins.extras.lazyrc" }, }, defaults = { - lazy = true, + -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. + -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default. + lazy = false, + -- It's recommended to leave version=false for now, since a lot the plugin that support versioning, + -- have outdated releases, which may break your Neovim install. version = false, -- always use the latest git commit -- version = "*", -- try installing the latest stable version for plugins that support semver }, + install = { colorscheme = { "tokyonight", "habamax" } }, checker = { enabled = true }, -- automatically check for plugin updates performance = { - cache = { - enabled = true, - -- disable_events = {}, - }, rtp = { -- disable some rtp plugins disabled_plugins = { "gzip", + -- "matchit", + -- "matchparen", + -- "netrwPlugin", "tarPlugin", "tohtml", "tutor", - "netrwPlugin", "zipPlugin", }, }, diff --git a/config/nvim/lua/plugins/dashboard-theme/doom.lua b/config/nvim/lua/plugins/dashboard-theme/doom.lua new file mode 100644 index 00000000..ad735e2b --- /dev/null +++ b/config/nvim/lua/plugins/dashboard-theme/doom.lua @@ -0,0 +1,27 @@ +local header_collection = require('plugins.dashboard-theme.headers') +return { + theme = 'doom', + config = { + header = header_collection.dash, + center = { + { + icon = ' ', + icon_hl = 'Title', + desc = 'Find File ', + desc_hl = 'String', + key = 'f', + key_hl = 'Number', + key_format = ' %s', -- remove default surrounding `[]` + action = 'Telescope find_files' + }, + { + icon = ' ', + desc = 'Quit', + key = 'q', + key_format = ' %s', -- remove default surrounding `[]` + action = 'qa' + }, + }, + footer = {} --your footer + } +} diff --git a/config/nvim/lua/plugins/dashboard-theme/headers.lua b/config/nvim/lua/plugins/dashboard-theme/headers.lua new file mode 100644 index 00000000..dab872b4 --- /dev/null +++ b/config/nvim/lua/plugins/dashboard-theme/headers.lua @@ -0,0 +1,54 @@ +local M = {} + +M.default = { + " ", + " ", + " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ", + " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ", + " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ", + " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ", + " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ", + " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ ", + " ", + " ", +} + +M.dash = { + " ", + " ", + "▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄", + "█ ▄ ▄ █", + "█ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █", + "█ █ ▄ █▄█ ▄▄▄ █ █▄█ █ █ █", + "█ ▄▄ █▄█▄▄▄█ █▄█▄█▄▄█▄▄█ █ █", + "█ ▄ █▄▄█ ▄ ▄▄ ▄█ ▄▄▄▄▄▄▄▄▄▄▄▄▄▄ █", + "█ █▄▄▄▄ ▄▄▄ █ ▄ ▄▄▄ ▄ ▄▄▄ ▄ ▄ █ ▄ █", + "█ ▄ █ █▄█ █▄█ █ █ █▄█ █ █▄█ ▄▄▄ █ █ █", + "█ █▄█ ▄ █▄▄█▄▄█ █ ▄▄█ █ ▄ █ █▄█▄█ █ █", + "█ █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█ █▄█▄▄▄█ █", + "█▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█", + " ", + " " +} + +M.neovim_mini1 = { + "", + "", + " _______ ____ ____.__ ", + " \\ \\ ____ ___\\ \\ / /|__| _____ ", + " / | \\_/ __ \\/ _ \\ Y / | |/ \\ ", + "/ | \\ ___( <_> ) / | | Y Y \\", + "\\____|__ /\\___ >____/ \\___/ |__|__|_| /", + " \\/ \\/ \\/ ", + "", + +} +M.neovim_mini2 = { + " __ ", + " .-----.-----.-----.--.--|__|--------. ", + " | | -__| _ | | | | | ", + " |__|__|_____|_____|\\___/|__|__|__|__| ", + "" +} + +return M diff --git a/config/nvim/lua/plugins/dashboard-theme/hyper.lua b/config/nvim/lua/plugins/dashboard-theme/hyper.lua new file mode 100644 index 00000000..12d6a160 --- /dev/null +++ b/config/nvim/lua/plugins/dashboard-theme/hyper.lua @@ -0,0 +1,58 @@ +local header_collection = require('plugins.dashboard-theme.headers') +local limit = 9 + +return { + theme = 'hyper', + change_to_vcs_root = true, + shortcut_type = 'number', + hide = { + statusline = true, -- hide statusline default is true + tabline = true, -- hide the tabline + winbar = true, -- hide winbar + }, + config = { + header = header_collection.default, + week_header = { + enable = false, + }, + packages = { enable = true }, -- show how many plugins neovim loaded + project = { + enable = false, + limit = 8, + icon = ' ', + group = '@function', + label = 'Projects', + action = 'Telescope find_files cwd=' + }, + mru = { + limit = limit, + icon = ' ', + label = 'Recent (Last ' .. tostring(limit) .. ' files)', + }, + shortcut = { + { + icon = ' ', + desc = 'New file', + group = 'DiagnosticOk', + action = 'ene', + key = 'n' + }, + { + icon = ' ', + desc = 'Files', + group = 'DiagnosticInfo', + action = 'Telescope find_files', + key = 'f', + }, + { + icon = ' ', + desc = 'Words', + group = 'DiagnosticWarn', + action = 'Telescope live_grep', + key = 'g', + }, + { icon = '󰚰 ', desc = 'Lazy', group = '@property', action = 'Lazy', key = 'l' }, + { icon = ' ', desc = 'Quit', group = 'DiagnosticError', action = 'qa', key = 'q' }, + }, + }, + } diff --git a/config/nvim/lua/plugins/dashboard-theme/landing.lua b/config/nvim/lua/plugins/dashboard-theme/landing.lua new file mode 100644 index 00000000..a38843be --- /dev/null +++ b/config/nvim/lua/plugins/dashboard-theme/landing.lua @@ -0,0 +1,47 @@ +local header_collection = require('plugins.dashboard-theme.headers') + +return { + theme = 'hyper', + change_to_vcs_root = true, + shortcut_type = 'number', + hide = { + statusline = true, -- hide statusline default is true + tabline = true, -- hide the tabline + winbar = true, -- hide winbar + }, + config = { + header = header_collection.default, + week_header = { + enable = false, + }, + packages = { enable = true }, -- show how many plugins neovim loaded + project = { enable = false }, + mru = { }, + shortcut = { + { + icon = ' ', + desc = 'New file', + group = 'DiagnosticOk', + action = 'ene', + key = 'e' + }, + { + icon = ' ', + desc = 'Files', + group = 'DiagnosticInfo', + action = 'Telescope find_files', + key = 'f', + }, + { + icon = ' ', + desc = 'Words', + group = 'DiagnosticWarn', + action = 'Telescope live_grep', + key = 'g', + }, + { icon = '󰚰 ', desc = 'Update', group = '@property', action = 'Lazy update', key = 'u' }, + { icon = ' ', desc = 'Quit', group = 'DiagnosticError', action = 'qa', key = 'q' }, + }, + }, + } + diff --git a/config/nvim/lua/plugins/dashboard-theme/minimal.lua b/config/nvim/lua/plugins/dashboard-theme/minimal.lua new file mode 100644 index 00000000..130ac951 --- /dev/null +++ b/config/nvim/lua/plugins/dashboard-theme/minimal.lua @@ -0,0 +1,31 @@ +local header_collection = require('plugins.dashboard-theme.headers') +return { + theme = 'doom', + config = { + header = header_collection.dash, + center = { + { + icon = ' ', + icon_hl = 'Title', + desc = 'New file', + desc_hl = 'String', + action = 'ene', + }, + { + icon = ' ', + icon_hl = 'Title', + desc = 'Find files', + desc_hl = 'String', + action = 'Telescope find_files', + }, + { + icon = ' ', + icon_hl = 'Title', + desc = 'Quit', + desc_hl = 'String', + action = 'qa', + }, + }, + footer = { "🎉 No Code, No Bug 🎉", ""} --your footer + } +} diff --git a/config/nvim/lua/plugins/extras/editor/marks/harpoon-extended.lua b/config/nvim/lua/plugins/extras/editor/marks/harpoon-extended.lua index a2923ba0..8278fc4d 100644 --- a/config/nvim/lua/plugins/extras/editor/marks/harpoon-extended.lua +++ b/config/nvim/lua/plugins/extras/editor/marks/harpoon-extended.lua @@ -6,7 +6,7 @@ for i = 1, 9 do end table.insert(keys, { "ma", function() require("harpoon"):list():append() end, desc = "Add Mark" }) -table.insert(keys, { "m", function() require("harpoon").ui:toggle_quick_menu(require("harpoon"):list()) end, desc = "Marks" }) +table.insert(keys, { "mm", function() require("harpoon").ui:toggle_quick_menu(require("harpoon"):list()) end, desc = "Marks" }) table.insert(keys, { "mt", "Telescope harpoon marks", desc = "Marks (Telescope)" }) table.insert(keys, { "mc", function() require("harpoon"):list():clear() end, desc = "Clear all Marks" }) @@ -51,6 +51,17 @@ return { end) end, }, + { + "nvim-lualine/lualine.nvim", + dependencies = { + "abeldekat/harpoonline", + opts = { formatter = "short", icon = "󰛢" }, + }, + optional = true, + opts = function(_, opts) + table.insert(opts.sections.lualine_c, require("harpoonline").format) + end, + }, { "goolord/alpha-nvim", optional = true, diff --git a/config/nvim/lua/plugins/extras/lang/ansible-extended.lua b/config/nvim/lua/plugins/extras/lang/ansible-extended.lua deleted file mode 100644 index b8c48f15..00000000 --- a/config/nvim/lua/plugins/extras/lang/ansible-extended.lua +++ /dev/null @@ -1,49 +0,0 @@ -return { - { import = "lazyvim.plugins.extras.lang.yaml" }, - { import = "lazyvim.plugins.extras.lang.ansible" }, - { - "williamboman/mason.nvim", - opts = function(_, opts) - opts.ensure_installed = opts.ensure_installed or {} - vim.list_extend(opts.ensure_installed, { "ansible-language-server" }) - end, - }, - { - "neovim/nvim-lspconfig", - init = function() - vim.filetype.add({ - pattern = { - [".*/playbooks/.*%.yaml"] = "yaml.ansible", - [".*/playbooks/.*%.yml"] = "yaml.ansible", - [".*/roles/.*/tasks/.*%.yaml"] = "yaml.ansible", - [".*/roles/.*/tasks/.*%.yml"] = "yaml.ansible", - [".*/roles/.*/handlers/.*%.yaml"] = "yaml.ansible", - [".*/roles/.*/handlers/.*%.yml"] = "yaml.ansible", - }, - }) - end, - }, - { - "mfussenegger/nvim-lint", - opts = { - linters_by_ft = { - ansible = { "ansible-lint" }, - }, - }, - }, - { - "mfussenegger/nvim-ansible", - ft = "yaml.ansible", - -- stylua: ignore - keys = { - { "tp", function() require("ansible").run() end, desc = "Run Ansible Playbooks" }, - }, - }, - { - "luckasRanarison/nvim-devdocs", - optional = true, - ensure_installed = { - "ansible", - }, - }, -} diff --git a/config/nvim/lua/plugins/extras/lazyvim/dashboard.lua b/config/nvim/lua/plugins/extras/lazyvim/dashboard.lua index de393379..45f09513 100644 --- a/config/nvim/lua/plugins/extras/lazyvim/dashboard.lua +++ b/config/nvim/lua/plugins/extras/lazyvim/dashboard.lua @@ -1,19 +1,14 @@ return { - "nvimdev/dashboard-nvim", - opts = function(_, opts) - vim.api.nvim_create_autocmd("TabNewEntered", { command = "Dashboard" }) - - local logo = [[ - ███╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗ - ████╗ ██║ ██╔════╝██╔═══██╗ ██║ ██║ ██║ ████╗ ████║ - ██╔██╗ ██║ █████╗ ██║ ██║ ██║ ██║ ██║ ██╔████╔██║ - ██║╚██╗██║ ██╔══╝ ██║ ██║ ╚██╗ ██╔╝ ██║ ██║╚██╔╝██║ - ██║ ╚████║ ███████╗╚██████╔╝ ╚████╔╝ ██║ ██║ ╚═╝ ██║ - ╚═╝ ╚═══╝ ╚══════╝ ╚═════╝ ╚═══╝ ╚═╝ ╚═╝ ╚═╝ - ]] - - logo = string.rep("\n", 8) .. logo .. "\n\n" - opts.config.header = vim.split(logo, "\n") - return opts - end, + 'nvimdev/dashboard-nvim', + dependencies = { + 'kyazdani42/nvim-web-devicons' + }, + enabled = true, + config = function() + -- local theme = require('plugins.dashboard-theme.landing') + -- local theme = require('plugins.dashboard-theme.minimal') + -- local theme = require('plugins.dashboard-theme.doom') + local theme = require('plugins.dashboard-theme.hyper') + require('dashboard').setup (theme) + end, }