From dcce81776849a629987550cf861f1640e6e69c54 Mon Sep 17 00:00:00 2001 From: fm39hz-laptop Date: Thu, 4 Jul 2024 14:22:44 +0700 Subject: [PATCH] refactor: recreate folder structure --- lua/config/lazy.lua | 34 ++- lua/plugins/actions/jump.lua | 10 + lua/plugins/codelearn.lua | 9 - lua/plugins/collaborative.lua | 30 --- lua/plugins/collaborative/codesnap.lua | 17 ++ lua/plugins/collaborative/leetcode.lua | 7 + lua/plugins/collaborative/remote.lua | 26 ++ lua/plugins/development.lua | 116 --------- lua/plugins/development/compiler.lua | 22 ++ lua/plugins/development/diagnostic.lua | 17 ++ lua/plugins/development/garbage-collector.lua | 6 + lua/plugins/development/language/csharp.lua | 24 ++ .../development/language/typescript.lua | 39 +++ lua/plugins/development/logging.lua | 5 + lua/plugins/development/telescope.lua | 9 + lua/plugins/example.lua | 238 ----------------- lua/plugins/file-management.lua | 56 ---- lua/plugins/files/lsp.lua | 12 + lua/plugins/files/manager.lua | 8 + lua/plugins/git.lua | 24 -- lua/plugins/git/blame.lua | 10 + lua/plugins/git/submodules.lua | 12 + lua/plugins/indent.lua | 6 - lua/plugins/markdown.lua | 77 ------ lua/plugins/markdown/actions.lua | 14 + lua/plugins/markdown/aesthetic.lua | 10 + lua/plugins/markdown/multimedia.lua | 35 +++ lua/plugins/markdown/note-systems.lua | 30 +++ lua/plugins/override.lua | 246 ------------------ lua/plugins/override/dashboard.lua | 37 +++ lua/plugins/override/development.lua | 91 +++++++ lua/plugins/override/neo-tree.lua | 42 +++ lua/plugins/override/telescope.lua | 32 +++ lua/plugins/override/theme.lua | 16 ++ lua/plugins/override/visualize.lua | 34 +++ lua/plugins/terminal/toggle-term.lua | 19 ++ lua/plugins/visualize.lua | 39 --- lua/plugins/visualize/colors.lua | 15 ++ lua/plugins/visualize/fold.lua | 4 + lua/plugins/visualize/indent.lua | 4 + lua/plugins/visualize/nerd.lua | 8 + lua/plugins/visualize/theme.lua | 12 + 42 files changed, 657 insertions(+), 845 deletions(-) create mode 100644 lua/plugins/actions/jump.lua delete mode 100644 lua/plugins/codelearn.lua delete mode 100644 lua/plugins/collaborative.lua create mode 100644 lua/plugins/collaborative/codesnap.lua create mode 100644 lua/plugins/collaborative/leetcode.lua create mode 100644 lua/plugins/collaborative/remote.lua delete mode 100644 lua/plugins/development.lua create mode 100644 lua/plugins/development/compiler.lua create mode 100644 lua/plugins/development/diagnostic.lua create mode 100644 lua/plugins/development/garbage-collector.lua create mode 100644 lua/plugins/development/language/csharp.lua create mode 100644 lua/plugins/development/language/typescript.lua create mode 100644 lua/plugins/development/logging.lua create mode 100644 lua/plugins/development/telescope.lua delete mode 100644 lua/plugins/example.lua delete mode 100644 lua/plugins/file-management.lua create mode 100644 lua/plugins/files/lsp.lua create mode 100644 lua/plugins/files/manager.lua delete mode 100644 lua/plugins/git.lua create mode 100644 lua/plugins/git/blame.lua create mode 100644 lua/plugins/git/submodules.lua delete mode 100644 lua/plugins/indent.lua delete mode 100644 lua/plugins/markdown.lua create mode 100644 lua/plugins/markdown/actions.lua create mode 100644 lua/plugins/markdown/aesthetic.lua create mode 100644 lua/plugins/markdown/multimedia.lua create mode 100644 lua/plugins/markdown/note-systems.lua delete mode 100644 lua/plugins/override.lua create mode 100644 lua/plugins/override/dashboard.lua create mode 100644 lua/plugins/override/development.lua create mode 100644 lua/plugins/override/neo-tree.lua create mode 100644 lua/plugins/override/telescope.lua create mode 100644 lua/plugins/override/theme.lua create mode 100644 lua/plugins/override/visualize.lua create mode 100644 lua/plugins/terminal/toggle-term.lua delete mode 100644 lua/plugins/visualize.lua create mode 100644 lua/plugins/visualize/colors.lua create mode 100644 lua/plugins/visualize/fold.lua create mode 100644 lua/plugins/visualize/indent.lua create mode 100644 lua/plugins/visualize/nerd.lua create mode 100644 lua/plugins/visualize/theme.lua diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 159e08c..d93a081 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -1,9 +1,35 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +local function generate_import_specs() + local specs = {} + + local function add_specs_from_dir(path) + local uv = vim.loop + local stats = uv.fs_readdir(uv.fs_opendir(vim.fn.stdpath("config") .. "/" .. "lua" .. "/" .. path, nil, 1000)) + if not stats then + return + end + for _, stat in ipairs(stats) do + -- print(stat.name) + if stat.type == "directory" then + local new_import_path = path .. "/" .. stat.name + table.insert(specs, { import = new_import_path:gsub("/", ".") }) + add_specs_from_dir(new_import_path) + elseif stat.name == "init.lua" then + table.remove(specs) -- removes last element + end + end + end + + add_specs_from_dir("plugins") + return specs +end + if not (vim.uv or 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 }) + -- bootstrap lazy.nvim + -- stylua: ignore + vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", + lazypath }) end ---@diagnostic disable-next-line: undefined-field vim.opt.rtp:prepend(vim.env.LAZY or lazypath) @@ -14,7 +40,7 @@ require("lazy").setup({ { "LazyVim/LazyVim", import = "lazyvim.plugins" }, -- import any extras modules here -- import/override with your plugins - { import = "plugins" }, + generate_import_specs("plugins"), }, defaults = { -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. diff --git a/lua/plugins/actions/jump.lua b/lua/plugins/actions/jump.lua new file mode 100644 index 0000000..a1732c1 --- /dev/null +++ b/lua/plugins/actions/jump.lua @@ -0,0 +1,10 @@ +return { + { + "tris203/precognition.nvim", + cmd = "Precognition toggle", + opts = { + startVisible = true, + showBlankVirtLine = false, + }, + }, +} diff --git a/lua/plugins/codelearn.lua b/lua/plugins/codelearn.lua deleted file mode 100644 index c8b2921..0000000 --- a/lua/plugins/codelearn.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - { - "kawre/leetcode.nvim", - cmd = "Leet", - opts = { - non_standalone = true, - }, - }, -} diff --git a/lua/plugins/collaborative.lua b/lua/plugins/collaborative.lua deleted file mode 100644 index e7d2423..0000000 --- a/lua/plugins/collaborative.lua +++ /dev/null @@ -1,30 +0,0 @@ -return { - { - "jbyuki/instant.nvim", - cmd = { - "InstantStartServer", - "InstantStopServer", - }, - }, - { - "mistricky/codesnap.nvim", - build = "make", - cmd = { - "CodeSnap", - "CodeSnapSave", - }, - opts = { - save_path = "~/Pictures/ScreenShot/", - has_line_number = true, - watermark = "• FM39hz •", - bg_color = "#535c68", - code_font_family = "JetbrainsMono Nerd Font", - }, - }, - { - "miversen33/netman.nvim", - cmd = { - "Neotree remote", - }, - }, -} diff --git a/lua/plugins/collaborative/codesnap.lua b/lua/plugins/collaborative/codesnap.lua new file mode 100644 index 0000000..83e0ff2 --- /dev/null +++ b/lua/plugins/collaborative/codesnap.lua @@ -0,0 +1,17 @@ +return { + { + "mistricky/codesnap.nvim", + build = "make", + cmd = { + "CodeSnap", + "CodeSnapSave", + }, + opts = { + save_path = "~/Pictures/ScreenShot/", + has_line_number = true, + watermark = "• FM39hz •", + bg_color = "#535c68", + code_font_family = "JetbrainsMono Nerd Font", + }, + }, +} diff --git a/lua/plugins/collaborative/leetcode.lua b/lua/plugins/collaborative/leetcode.lua new file mode 100644 index 0000000..f0c3bcd --- /dev/null +++ b/lua/plugins/collaborative/leetcode.lua @@ -0,0 +1,7 @@ +return { + "kawre/leetcode.nvim", + cmd = "Leet", + opts = { + non_standalone = true, + }, +} diff --git a/lua/plugins/collaborative/remote.lua b/lua/plugins/collaborative/remote.lua new file mode 100644 index 0000000..a1dcb4c --- /dev/null +++ b/lua/plugins/collaborative/remote.lua @@ -0,0 +1,26 @@ +return { + { + "jbyuki/instant.nvim", + cmd = { + "InstantStartServer", + "InstantStopServer", + }, + }, + { + "miversen33/netman.nvim", + cmd = { + "Neotree remote", + }, + }, + { + "rmagatti/auto-session", + event = "VimEnter", + opts = { + auto_session_enabled = true, + auto_save_enabled = true, + auto_restore_enabled = true, + auto_session_use_git_branch = true, + pre_save_cmds = { "BDelete! nameless", "BDelete! hidden", "BDelete glob=yode*", "cclose" }, + }, + }, +} diff --git a/lua/plugins/development.lua b/lua/plugins/development.lua deleted file mode 100644 index d43115e..0000000 --- a/lua/plugins/development.lua +++ /dev/null @@ -1,116 +0,0 @@ -require("dap.ext.vscode").load_launchjs() -return { - -- Overall - { - "Zeioth/compiler.nvim", - cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" }, - dependencies = { - "stevearc/overseer.nvim", - }, - opts = {}, - }, - { - "stevearc/overseer.nvim", - cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo", "OverseerRun" }, - opts = { - task_list = { - direction = "bottom", - min_height = 25, - max_height = 25, - default_detail = 1, - }, - }, - }, - { - "zeioth/garbage-day.nvim", - event = "LspAttach", - dependencies = "neovim/nvim-lspconfig", - opts = {}, - }, - { - "piersolenski/telescope-import.nvim", - dependencies = { "nvim-telescope/telescope.nvim" }, - config = function() - require("telescope").load_extension("import") - end, - }, - { - "Tastyep/structlog.nvim", - }, - { - "rachartier/tiny-inline-diagnostic.nvim", - event = "VeryLazy", - opts = { - signs = { - left = "", - right = "", - diag = "●", - arrow = "  ", - up_arrow = "  ", - vertical = " │", - vertical_end = " ╰", - }, - }, - }, - -- TS / JS - { - "dmmulroy/tsc.nvim", - cmd = "TSC", - opts = { - use_trouble_qflist = true, - }, - ft = { - "typescript", - "typescriptreact", - }, - }, - { - "Redoxahmii/json-to-types.nvim", - cmd = { "ConvertJSONtoTS", "ConvertJSONtoTSBuffer" }, - build = "sh install.sh bun", - ft = { - "typescript", - "typescriptreact", - }, - }, - { - "barrett-ruth/import-cost.nvim", - build = "sh install.sh bun", - ft = { - "javascript", - "javascriptreact", - "typescript", - "typescriptreact", - }, - }, - { - "dmmulroy/ts-error-translator.nvim", - ft = { - "typescript", - "typescriptreact", - }, - }, - -- C# - { - "iabdelkareem/csharp.nvim", - ft = "cs", - keys = { - { - "", - function() - require("csharp").debug_project() - end, - { desc = "C# debug project", noremap = true, nowait = true }, - }, - }, - dependencies = { - "williamboman/mason.nvim", - "mfussenegger/nvim-dap", - "Tastyep/structlog.nvim", - }, - config = function() - require("mason").setup() - require("csharp").setup() - end, - }, -} diff --git a/lua/plugins/development/compiler.lua b/lua/plugins/development/compiler.lua new file mode 100644 index 0000000..ee42b41 --- /dev/null +++ b/lua/plugins/development/compiler.lua @@ -0,0 +1,22 @@ +return { + { + "Zeioth/compiler.nvim", + cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo" }, + dependencies = { + "stevearc/overseer.nvim", + }, + opts = {}, + }, + { + "stevearc/overseer.nvim", + cmd = { "CompilerOpen", "CompilerToggleResults", "CompilerRedo", "OverseerRun" }, + opts = { + task_list = { + direction = "bottom", + min_height = 25, + max_height = 25, + default_detail = 1, + }, + }, + }, +} diff --git a/lua/plugins/development/diagnostic.lua b/lua/plugins/development/diagnostic.lua new file mode 100644 index 0000000..0ad561b --- /dev/null +++ b/lua/plugins/development/diagnostic.lua @@ -0,0 +1,17 @@ +return { + { + "rachartier/tiny-inline-diagnostic.nvim", + event = "VeryLazy", + opts = { + signs = { + left = "", + right = "", + diag = "●", + arrow = "  ", + up_arrow = "  ", + vertical = " │", + vertical_end = " ╰", + }, + }, + }, +} diff --git a/lua/plugins/development/garbage-collector.lua b/lua/plugins/development/garbage-collector.lua new file mode 100644 index 0000000..c692ae2 --- /dev/null +++ b/lua/plugins/development/garbage-collector.lua @@ -0,0 +1,6 @@ +return { + "zeioth/garbage-day.nvim", + event = "LspAttach", + dependencies = "neovim/nvim-lspconfig", + opts = {}, +} diff --git a/lua/plugins/development/language/csharp.lua b/lua/plugins/development/language/csharp.lua new file mode 100644 index 0000000..00d34d5 --- /dev/null +++ b/lua/plugins/development/language/csharp.lua @@ -0,0 +1,24 @@ +return { + { + "iabdelkareem/csharp.nvim", + ft = "cs", + keys = { + { + "", + function() + require("csharp").debug_project() + end, + { desc = "C# debug project", noremap = true, nowait = true }, + }, + }, + dependencies = { + "williamboman/mason.nvim", + "mfussenegger/nvim-dap", + "Tastyep/structlog.nvim", + }, + config = function() + require("mason").setup() + require("csharp").setup() + end, + }, +} diff --git a/lua/plugins/development/language/typescript.lua b/lua/plugins/development/language/typescript.lua new file mode 100644 index 0000000..6cdd8bb --- /dev/null +++ b/lua/plugins/development/language/typescript.lua @@ -0,0 +1,39 @@ +return { + { + "dmmulroy/tsc.nvim", + cmd = "TSC", + opts = { + use_trouble_qflist = true, + }, + ft = { + "typescript", + "typescriptreact", + }, + }, + { + "Redoxahmii/json-to-types.nvim", + cmd = { "ConvertJSONtoTS", "ConvertJSONtoTSBuffer" }, + build = "sh install.sh bun", + ft = { + "typescript", + "typescriptreact", + }, + }, + { + "barrett-ruth/import-cost.nvim", + build = "sh install.sh bun", + ft = { + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + }, + }, + { + "dmmulroy/ts-error-translator.nvim", + ft = { + "typescript", + "typescriptreact", + }, + }, +} diff --git a/lua/plugins/development/logging.lua b/lua/plugins/development/logging.lua new file mode 100644 index 0000000..af4da59 --- /dev/null +++ b/lua/plugins/development/logging.lua @@ -0,0 +1,5 @@ +return { + { + "Tastyep/structlog.nvim", + }, +} diff --git a/lua/plugins/development/telescope.lua b/lua/plugins/development/telescope.lua new file mode 100644 index 0000000..2c31836 --- /dev/null +++ b/lua/plugins/development/telescope.lua @@ -0,0 +1,9 @@ +return { + { + "piersolenski/telescope-import.nvim", + dependencies = { "nvim-telescope/telescope.nvim" }, + config = function() + require("telescope").load_extension("import") + end, + }, +} diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua deleted file mode 100644 index 6734175..0000000 --- a/lua/plugins/example.lua +++ /dev/null @@ -1,238 +0,0 @@ --- since this is just an example spec, don't actually load anything here and return an empty spec --- stylua: ignore -if true then return {} end - --- every spec file under the "plugins" directory will be loaded automatically by lazy.nvim --- --- In your plugin files, you can: --- * add extra plugins --- * disable/enabled LazyVim plugins --- * override the configuration of LazyVim plugins -return { - -- add gruvbox - { "ellisonleao/gruvbox.nvim" }, - - -- Configure LazyVim to load gruvbox - { - "LazyVim/LazyVim", - opts = { - colorscheme = "gruvbox", - }, - }, - - -- change trouble config - { - "folke/trouble.nvim", - -- opts will be merged with the parent spec - opts = { use_diagnostic_signs = true }, - }, - - -- disable trouble - { "folke/trouble.nvim", enabled = false }, - - -- override nvim-cmp and add cmp-emoji - { - "hrsh7th/nvim-cmp", - dependencies = { "hrsh7th/cmp-emoji" }, - ---@param opts cmp.ConfigSchema - opts = function(_, opts) - table.insert(opts.sources, { name = "emoji" }) - end, - }, - - -- change some telescope options and a keymap to browse plugin files - { - "nvim-telescope/telescope.nvim", - keys = { - -- add a keymap to browse plugin files - -- stylua: ignore - { - "fp", - function() require("telescope.builtin").find_files({ cwd = require("lazy.core.config").options.root }) end, - desc = "Find Plugin File", - }, - }, - -- change some options - opts = { - defaults = { - layout_strategy = "horizontal", - layout_config = { prompt_position = "top" }, - sorting_strategy = "ascending", - winblend = 0, - }, - }, - }, - - -- add pyright to lspconfig - { - "neovim/nvim-lspconfig", - ---@class PluginLspOpts - opts = { - ---@type lspconfig.options - servers = { - -- pyright will be automatically installed with mason and loaded with lspconfig - pyright = {}, - }, - }, - }, - - -- add tsserver and setup with typescript.nvim instead of lspconfig - { - "neovim/nvim-lspconfig", - dependencies = { - "jose-elias-alvarez/typescript.nvim", - init = function() - require("lazyvim.util").lsp.on_attach(function(_, buffer) - -- stylua: ignore - vim.keymap.set( "n", "co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" }) - vim.keymap.set("n", "cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer }) - end) - end, - }, - ---@class PluginLspOpts - opts = { - ---@type lspconfig.options - servers = { - -- tsserver will be automatically installed with mason and loaded with lspconfig - tsserver = {}, - }, - -- you can do any additional lsp server setup here - -- return true if you don't want this server to be setup with lspconfig - ---@type table - setup = { - -- example to setup with typescript.nvim - tsserver = function(_, opts) - require("typescript").setup({ server = opts }) - return true - end, - -- Specify * to use this function as a fallback for any server - -- ["*"] = function(server, opts) end, - }, - }, - }, - - -- for typescript, LazyVim also includes extra specs to properly setup lspconfig, - -- treesitter, mason and typescript.nvim. So instead of the above, you can use: - { import = "lazyvim.plugins.extras.lang.typescript" }, - - -- add more treesitter parsers - { - "nvim-treesitter/nvim-treesitter", - opts = { - ensure_installed = { - "bash", - "html", - "javascript", - "json", - "lua", - "markdown", - "markdown_inline", - "python", - "query", - "regex", - "tsx", - "typescript", - "vim", - "yaml", - }, - }, - }, - - -- since `vim.tbl_deep_extend`, can only merge tables and not lists, the code above - -- would overwrite `ensure_installed` with the new value. - -- If you'd rather extend the default config, use the code below instead: - { - "nvim-treesitter/nvim-treesitter", - opts = function(_, opts) - -- add tsx and treesitter - vim.list_extend(opts.ensure_installed, { - "tsx", - "typescript", - }) - end, - }, - - -- the opts function can also be used to change the default opts: - { - "nvim-lualine/lualine.nvim", - event = "VeryLazy", - opts = function(_, opts) - table.insert(opts.sections.lualine_x, "😄") - end, - }, - - -- or you can return new options to override all the defaults - { - "nvim-lualine/lualine.nvim", - event = "VeryLazy", - opts = function() - return { - --[[add your custom lualine config here]] - } - end, - }, - - -- use mini.starter instead of alpha - { import = "lazyvim.plugins.extras.ui.mini-starter" }, - - -- add jsonls and schemastore packages, and setup treesitter for json, json5 and jsonc - { import = "lazyvim.plugins.extras.lang.json" }, - - -- add any tools you want to have installed below - { - "williamboman/mason.nvim", - opts = { - ensure_installed = { - "stylua", - "shellcheck", - "shfmt", - "flake8", - }, - }, - }, - - -- Use for completion and snippets (supertab) - { - "hrsh7th/nvim-cmp", - dependencies = { - "hrsh7th/cmp-emoji", - }, - ---@param opts cmp.ConfigSchema - opts = function(_, opts) - local has_words_before = function() - unpack = unpack or table.unpack - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil - end - - local cmp = require("cmp") - - opts.mapping = vim.tbl_extend("force", opts.mapping, { - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_next_item() - elseif vim.snippet.active({ direction = 1 }) then - vim.schedule(function() - vim.snippet.jump(1) - end) - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif vim.snippet.active({ direction = -1 }) then - vim.schedule(function() - vim.snippet.jump(-1) - end) - else - fallback() - end - end, { "i", "s" }), - }) - end, - }, -} diff --git a/lua/plugins/file-management.lua b/lua/plugins/file-management.lua deleted file mode 100644 index 0fe7260..0000000 --- a/lua/plugins/file-management.lua +++ /dev/null @@ -1,56 +0,0 @@ -return { - { - "stevearc/oil.nvim", - cmd = "Oil", - opts = {}, - dependencies = { "nvim-tree/nvim-web-devicons" }, - }, - { - "rmagatti/auto-session", - event = "VimEnter", - opts = { - auto_session_enabled = true, - auto_save_enabled = true, - auto_restore_enabled = true, - auto_session_use_git_branch = true, - pre_save_cmds = { "BDelete! nameless", "BDelete! hidden", "BDelete glob=yode*", "cclose" }, - }, - }, - { - { - "antosha417/nvim-lsp-file-operations", - event = "LspAttach", - dependencies = { - "nvim-lua/plenary.nvim", - "nvim-neo-tree/neo-tree.nvim", - }, - }, - }, - { - "akinsho/toggleterm.nvim", - cmd = "ToggleTerm", - opts = { - float_opts = { - border = "curved", - title_pos = "left", - width = 128, - height = 16, - row = 1, - }, - winbar = { - enabled = true, - name_formatter = function(term) - return term.name - end, - }, - }, - }, - { - "tris203/precognition.nvim", - cmd = "Precognition toggle", - opts = { - startVisible = true, - showBlankVirtLine = false, - }, - }, -} diff --git a/lua/plugins/files/lsp.lua b/lua/plugins/files/lsp.lua new file mode 100644 index 0000000..480eb06 --- /dev/null +++ b/lua/plugins/files/lsp.lua @@ -0,0 +1,12 @@ +return { + { + { + "antosha417/nvim-lsp-file-operations", + event = "LspAttach", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-neo-tree/neo-tree.nvim", + }, + }, + }, +} diff --git a/lua/plugins/files/manager.lua b/lua/plugins/files/manager.lua new file mode 100644 index 0000000..5ddb852 --- /dev/null +++ b/lua/plugins/files/manager.lua @@ -0,0 +1,8 @@ +return { + { + "stevearc/oil.nvim", + cmd = "Oil", + opts = {}, + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, +} diff --git a/lua/plugins/git.lua b/lua/plugins/git.lua deleted file mode 100644 index ba89579..0000000 --- a/lua/plugins/git.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - { - "f-person/git-blame.nvim", - event = "BufReadPre", - opts = { - delay = 10, - date_format = "%x • %X", - -- schedule_event = "CursorHold", - -- clear_event = "CursorHoldI", - }, - }, - { - "nvim-telescope/telescope.nvim", - dependencies = { - { - "agoodshort/telescope-git-submodules.nvim", - dependencies = "akinsho/toggleterm.nvim", - }, - }, - config = function() - require("telescope").load_extension("git_submodules") - end, - }, -} diff --git a/lua/plugins/git/blame.lua b/lua/plugins/git/blame.lua new file mode 100644 index 0000000..17a90ce --- /dev/null +++ b/lua/plugins/git/blame.lua @@ -0,0 +1,10 @@ +return { + "f-person/git-blame.nvim", + event = "BufReadPre", + opts = { + delay = 10, + date_format = "%x • %X", + -- schedule_event = "CursorHold", + -- clear_event = "CursorHoldI", + }, +} diff --git a/lua/plugins/git/submodules.lua b/lua/plugins/git/submodules.lua new file mode 100644 index 0000000..2e31f8d --- /dev/null +++ b/lua/plugins/git/submodules.lua @@ -0,0 +1,12 @@ +return { + "nvim-telescope/telescope.nvim", + dependencies = { + { + "agoodshort/telescope-git-submodules.nvim", + dependencies = "akinsho/toggleterm.nvim", + }, + }, + config = function() + require("telescope").load_extension("git_submodules") + end, +} diff --git a/lua/plugins/indent.lua b/lua/plugins/indent.lua deleted file mode 100644 index 758c723..0000000 --- a/lua/plugins/indent.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - { - "Darazaki/indent-o-matic", - event = "BufReadPre", - }, -} diff --git a/lua/plugins/markdown.lua b/lua/plugins/markdown.lua deleted file mode 100644 index d0b1182..0000000 --- a/lua/plugins/markdown.lua +++ /dev/null @@ -1,77 +0,0 @@ -return { - { - "opdavies/toggle-checkbox.nvim", - ft = "markdown", - }, - { - "yujinyuz/gitpad.nvim", - opts = { - title = "Note", - border = "rounded", - dir = "~/Workspace/Notes/", - }, - }, - { - "jmbuhr/otter.nvim", - ft = "markdown", - dependencies = { - "hrsh7th/nvim-cmp", -- optional, for completion - "neovim/nvim-lspconfig", - "nvim-treesitter/nvim-treesitter", - }, - }, - { - "vhyrro/luarocks.nvim", - lazy = true, - priority = 1001, - opts = { - rocks = { "magick" }, - }, - }, - { - "nvim-neorg/neorg", - dependencies = { "luarocks.nvim" }, - ft = { "norg" }, - version = "*", - }, - { - "3rd/image.nvim", - ft = { "markdown", "quarto", "vimwiki" }, - dependencies = { "luarocks.nvim" }, - opts = { - backend = "kitty", - integrations = { - markdown = { - enabled = true, - only_render_image_at_cursor = false, - filetypes = { "markdown", "vimwiki", "quarto" }, - }, - }, - editor_only_render_when_focused = false, - window_overlap_clear_enabled = true, - -- window_overlap_clear_ft_ignore = { 'cmp_menu', 'cmp_docs', 'scrollview' }, - tmux_show_only_in_active_window = true, - window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "scrollview", "scrollview_sign" }, - max_width = nil, - max_height = nil, - max_width_window_percentage = nil, - max_height_window_percentage = 30, - kitty_method = "normal", - }, - { - "epwalsh/obsidian.nvim", - ft = "markdown", - dependencies = { - "nvim-lua/plenary.nvim", - }, - opts = { - workspaces = { - { - name = "Project Pillar", - path = "~/Workspace/Notes/Rouge Pillar/", - }, - }, - }, - }, - }, -} diff --git a/lua/plugins/markdown/actions.lua b/lua/plugins/markdown/actions.lua new file mode 100644 index 0000000..7f1ec35 --- /dev/null +++ b/lua/plugins/markdown/actions.lua @@ -0,0 +1,14 @@ +return { + { + "opdavies/toggle-checkbox.nvim", + ft = "markdown", + }, + { + "yujinyuz/gitpad.nvim", + opts = { + title = "Note", + border = "rounded", + dir = "~/Workspace/Notes/", + }, + }, +} diff --git a/lua/plugins/markdown/aesthetic.lua b/lua/plugins/markdown/aesthetic.lua new file mode 100644 index 0000000..c7108fa --- /dev/null +++ b/lua/plugins/markdown/aesthetic.lua @@ -0,0 +1,10 @@ +return { + "OXY2DEV/markview.nvim", + ft = "markdown", + dependencies = { + "nvim-tree/nvim-web-devicons", + }, + config = function() + require("markview").setup() + end, +} diff --git a/lua/plugins/markdown/multimedia.lua b/lua/plugins/markdown/multimedia.lua new file mode 100644 index 0000000..fdb0c83 --- /dev/null +++ b/lua/plugins/markdown/multimedia.lua @@ -0,0 +1,35 @@ +return { + { + "vhyrro/luarocks.nvim", + lazy = true, + priority = 1001, + opts = { + rocks = { "magick" }, + }, + }, + { + "3rd/image.nvim", + ft = { "markdown", "quarto", "vimwiki" }, + dependencies = { "luarocks.nvim" }, + opts = { + backend = "kitty", + integrations = { + markdown = { + enabled = true, + only_render_image_at_cursor = false, + filetypes = { "markdown", "vimwiki", "quarto" }, + }, + }, + editor_only_render_when_focused = false, + window_overlap_clear_enabled = true, + -- window_overlap_clear_ft_ignore = { 'cmp_menu', 'cmp_docs', 'scrollview' }, + tmux_show_only_in_active_window = true, + window_overlap_clear_ft_ignore = { "cmp_menu", "cmp_docs", "scrollview", "scrollview_sign" }, + max_width = nil, + max_height = nil, + max_width_window_percentage = nil, + max_height_window_percentage = 30, + kitty_method = "normal", + }, + }, +} diff --git a/lua/plugins/markdown/note-systems.lua b/lua/plugins/markdown/note-systems.lua new file mode 100644 index 0000000..12526ac --- /dev/null +++ b/lua/plugins/markdown/note-systems.lua @@ -0,0 +1,30 @@ +return { + "epwalsh/obsidian.nvim", + ft = "markdown", + dependencies = { + "nvim-lua/plenary.nvim", + }, + opts = { + workspaces = { + { + name = "Project Pillar", + path = "~/.vault/Rouge Pillar/", + }, + }, + }, + { + "nvim-neorg/neorg", + dependencies = { "luarocks.nvim" }, + ft = { "norg" }, + version = "*", + }, + { + "jmbuhr/otter.nvim", + ft = "markdown", + dependencies = { + "hrsh7th/nvim-cmp", -- optional, for completion + "neovim/nvim-lspconfig", + "nvim-treesitter/nvim-treesitter", + }, + }, +} diff --git a/lua/plugins/override.lua b/lua/plugins/override.lua deleted file mode 100644 index 0c3aa25..0000000 --- a/lua/plugins/override.lua +++ /dev/null @@ -1,246 +0,0 @@ -local logo = [[ - ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ - ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ - ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ - ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ - ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ - ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ - ███▄ █ ▓█████ ▒█████ ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ██▒ █▓ ██▓ ███▄ ▄███▓ - ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒ ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ▓██░ █▒▓██▒▓██▒▀█▀ ██▒ - ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ▓██ █▒░▒██▒▓██ ▓██░ - ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ▒██ █░░░██░▒██ ▒██ - ▒██░ ▓██░░▒████▒░ ████▓▒░ ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ▒▀█░ ░██░▒██▒ ░██▒ -░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ╰──────────────────────────────╯ ░ ▐░ ░▓ ░ ▒░ ░ ░ -░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░ - ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ - ░ ░ ░ ░ ░ ░ ░ ░ - ░ ]] -local section = require("alpha.themes.dashboard").section -return { - { - "catppuccin/nvim", - enabled = false, - }, - { - "folke/tokyonight.nvim", - enabled = false, - }, - { - "LazyVim/LazyVim", - opts = { - colorscheme = "everforest", - }, - }, - { - "goolord/alpha-nvim", - opts = { - section = { - header = { - val = vim.split(logo, "\n"), - }, - }, - opts = { - layout = { - section.header, - { type = "padding", val = 1 }, - section.buttons, - section.footer, - }, - }, - }, - }, - { - "hrsh7th/nvim-cmp", - opts = { - window = { - documentation = { - border = "rounded", - }, - completion = { - border = "rounded", - }, - }, - }, - }, - { - "folke/noice.nvim", - opts = { - presets = { - bottom_search = false, - lsp_doc_border = true, - }, - lsp = { - hover = { - silent = true, - }, - }, - }, - }, - { - "nvim-lualine/lualine.nvim", - opts = { - sections = { - lualine_z = { - require("auto-session.lib").current_session_name, - }, - }, - }, - }, - { - "nvim-neo-tree/neo-tree.nvim", - dependencies = "MunifTanjim/nui.nvim", - version = "*", - opts = { - auto_clean_after_session_restore = true, - close_if_last_window = true, - sources = { - "filesystem", - "buffers", - "git_status", - "netman.ui.neo-tree", - }, - window = { - width = 30, - mappings = { - ["h"] = function(state) - local node = state.tree:get_node() - if node.type == "directory" and node:is_expanded() then - require("neo-tree.sources.filesystem").toggle_directory(state, node) - else - require("neo-tree.ui.renderer").focus_node(state, node:get_parent_id()) - end - end, - ["l"] = function(state) - local node = state.tree:get_node() - local path = node:get_id() - if node.type == "directory" then - if not node:is_expanded() then - require("neo-tree.sources.filesystem").toggle_directory(state, node) - elseif node:has_children() then - require("neo-tree.ui.renderer").focus_node(state, node:get_child_ids()[1]) - end - end - if node.type == "file" then - require("neo-tree.utils").open_file(state, path) - end - end, - }, - }, - }, - }, - { - "rcarriga/nvim-notify", - opts = { - timeout = 2500, - fps = 170, - stages = "fade_in_slide_out", - }, - }, - -- { - -- "nvimtools/none-ls.nvim", - -- opts = { - -- source = { - -- builtins = { - -- csharpier = { - -- args = { "--write-stdout", "--no-cache", "$FILENAME" }, - -- }, - -- }, - -- }, - -- }, - -- }, - { - "nvim-telescope/telescope.nvim", - opts = { - defaults = { - preview = { - mime_hook = function(filepath, bufnr, opts) - local is_image = function(_filepath) - local image_extensions = { "png", "jpg" } - local split_path = vim.split(_filepath:lower(), ".", { plain = true }) - local extension = split_path[#split_path] - return vim.tbl_contains(image_extensions, extension) - end - if is_image(filepath) then - local term = vim.api.nvim_open_term(bufnr, {}) - local function send_output(_, data, _) - for _, d in ipairs(data) do - vim.api.nvim_chan_send(term, d .. "\r\n") - end - end - vim.fn.jobstart({ - "kitten", - "icat", - filepath, - }, { on_stdout = send_output, stdout_buffered = true, pty = true }) - else - require("telescope.previewers.utils").set_preview_message(bufnr, opts.winid, "Binary cannot be previewed") - end - end, - }, - }, - }, - }, - { - "nvim-lspconfig", - opts = { - diagnostics = { - virtual_text = false, - }, - }, - }, - { - "mfussenegger/nvim-dap", - opts = { - adapters = { - godot = { - type = "server", - host = "127.0.0.1", - port = 6006, - }, - }, - configurations = { - cs = { - { - type = "godot", - request = "launch", - name = "Launch Scene", - project = "${workspaceFolder}", - launch_scene = true, - }, - }, - }, - }, - }, - { - "rcarriga/nvim-dap-ui", - opts = { - expand_lines = true, - icons = { expanded = "", collapsed = "", circular = "" }, - layouts = { - { - elements = { - { id = "watches", size = 0.24 }, - { id = "scopes", size = 0.24 }, - { id = "breakpoints", size = 0.24 }, - { id = "stacks", size = 0.28 }, - }, - size = 0.23, - position = "right", - }, - { - elements = { - { id = "repl", size = 0.55 }, - { id = "console", size = 0.45 }, - }, - size = 0.27, - position = "bottom", - }, - }, - floating = { - max_height = 0.9, - max_width = 0.5, - border = "rounded", - }, - }, - }, -} diff --git a/lua/plugins/override/dashboard.lua b/lua/plugins/override/dashboard.lua new file mode 100644 index 0000000..d0a45fe --- /dev/null +++ b/lua/plugins/override/dashboard.lua @@ -0,0 +1,37 @@ +local logo = [[ + ⣴⣶⣤⡤⠦⣤⣀⣤⠆ ⣈⣭⣿⣶⣿⣦⣼⣆ + ⠉⠻⢿⣿⠿⣿⣿⣶⣦⠤⠄⡠⢾⣿⣿⡿⠋⠉⠉⠻⣿⣿⡛⣦ + ⠈⢿⣿⣟⠦ ⣾⣿⣿⣷ ⠻⠿⢿⣿⣧⣄ + ⣸⣿⣿⢧ ⢻⠻⣿⣿⣷⣄⣀⠄⠢⣀⡀⠈⠙⠿⠄ + ⢠⣿⣿⣿⠈ ⣻⣿⣿⣿⣿⣿⣿⣿⣛⣳⣤⣀⣀ + ⢠⣧⣶⣥⡤⢄ ⣸⣿⣿⠘ ⢀⣴⣿⣿⡿⠛⣿⣿⣧⠈⢿⠿⠟⠛⠻⠿⠄ + ███▄ █ ▓█████ ▒█████ ⣰⣿⣿⠛⠻⣿⣿⡦⢹⣿⣷ ⢊⣿⣿⡏ ⢸⣿⣿⡇ ⢀⣠⣄⣾⠄ ██▒ █▓ ██▓ ███▄ ▄███▓ + ██ ▀█ █ ▓█ ▀ ▒██▒ ██▒ ⣠⣿⠿⠛ ⢀⣿⣿⣷⠘⢿⣿⣦⡀ ⢸⢿⣿⣿⣄ ⣸⣿⣿⡇⣪⣿⡿⠿⣿⣷⡄ ▓██░ █▒▓██▒▓██▒▀█▀ ██▒ + ▓██ ▀█ ██▒▒███ ▒██░ ██▒ ⠙⠃ ⣼⣿⡟ ⠈⠻⣿⣿⣦⣌⡇⠻⣿⣿⣷⣿⣿⣿ ⣿⣿⡇ ⠛⠻⢷⣄ ▓██ █▒░▒██▒▓██ ▓██░ + ▓██▒ ▐▌██▒▒▓█ ▄ ▒██ ██░ ⢻⣿⣿⣄ ⠈⠻⣿⣿⣿⣷⣿⣿⣿⣿⣿⡟ ⠫⢿⣿⡆ ▒██ █░░░██░▒██ ▒██ + ▒██░ ▓██░░▒████▒░ ████▓▒░ ⠻⣿⣿⣿⣿⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⡟⢀⣀⣤⣾⡿⠃ ▒▀█░ ░██░▒██▒ ░██▒ +░ ▒░ ▒ ▒ ░░ ▒░ ░░ ▒░▒░▒░ ╰──────────────────────────────╯ ░ ▐░ ░▓ ░ ▒░ ░ ░ +░ ░░ ░ ▒░ ░ ░ ░ ░ ▒ ▒░ ░ ░░ ▒ ░░ ░ ░ + ░ ░ ░ ░ ░ ░ ░ ▒ ░░ ▒ ░░ ░ + ░ ░ ░ ░ ░ ░ ░ ░ + ░ ]] +local section = require("alpha.themes.dashboard").section + +return { + "goolord/alpha-nvim", + opts = { + section = { + header = { + val = vim.split(logo, "\n"), + }, + }, + opts = { + layout = { + section.header, + { type = "padding", val = 1 }, + section.buttons, + section.footer, + }, + }, + }, +} diff --git a/lua/plugins/override/development.lua b/lua/plugins/override/development.lua new file mode 100644 index 0000000..f9b9a00 --- /dev/null +++ b/lua/plugins/override/development.lua @@ -0,0 +1,91 @@ +require("dap.ext.vscode").load_launchjs() +return { + { + "hrsh7th/nvim-cmp", + opts = { + window = { + documentation = { + border = "rounded", + }, + completion = { + border = "rounded", + }, + }, + }, + }, + -- { + -- "nvimtools/none-ls.nvim", + -- opts = { + -- source = { + -- builtins = { + -- csharpier = { + -- args = { "--write-stdout", "--no-cache", "$FILENAME" }, + -- }, + -- }, + -- }, + -- }, + -- }, + { + "nvim-lspconfig", + opts = { + diagnostics = { + virtual_text = false, + }, + }, + }, + { + "mfussenegger/nvim-dap", + opts = { + adapters = { + godot = { + type = "server", + host = "127.0.0.1", + port = 6006, + }, + }, + configurations = { + cs = { + { + type = "godot", + request = "launch", + name = "Launch Scene", + project = "${workspaceFolder}", + launch_scene = true, + }, + }, + }, + }, + }, + { + "rcarriga/nvim-dap-ui", + opts = { + expand_lines = true, + icons = { expanded = "", collapsed = "", circular = "" }, + layouts = { + { + elements = { + { id = "watches", size = 0.24 }, + { id = "scopes", size = 0.24 }, + { id = "breakpoints", size = 0.24 }, + { id = "stacks", size = 0.28 }, + }, + size = 0.23, + position = "right", + }, + { + elements = { + { id = "repl", size = 0.55 }, + { id = "console", size = 0.45 }, + }, + size = 0.27, + position = "bottom", + }, + }, + floating = { + max_height = 0.9, + max_width = 0.5, + border = "rounded", + }, + }, + }, +} diff --git a/lua/plugins/override/neo-tree.lua b/lua/plugins/override/neo-tree.lua new file mode 100644 index 0000000..f391e66 --- /dev/null +++ b/lua/plugins/override/neo-tree.lua @@ -0,0 +1,42 @@ +return { + "nvim-neo-tree/neo-tree.nvim", + dependencies = "MunifTanjim/nui.nvim", + version = "*", + opts = { + auto_clean_after_session_restore = true, + close_if_last_window = true, + sources = { + "filesystem", + "buffers", + "git_status", + "netman.ui.neo-tree", + }, + window = { + width = 30, + mappings = { + ["h"] = function(state) + local node = state.tree:get_node() + if node.type == "directory" and node:is_expanded() then + require("neo-tree.sources.filesystem").toggle_directory(state, node) + else + require("neo-tree.ui.renderer").focus_node(state, node:get_parent_id()) + end + end, + ["l"] = function(state) + local node = state.tree:get_node() + local path = node:get_id() + if node.type == "directory" then + if not node:is_expanded() then + require("neo-tree.sources.filesystem").toggle_directory(state, node) + elseif node:has_children() then + require("neo-tree.ui.renderer").focus_node(state, node:get_child_ids()[1]) + end + end + if node.type == "file" then + require("neo-tree.utils").open_file(state, path) + end + end, + }, + }, + }, +} diff --git a/lua/plugins/override/telescope.lua b/lua/plugins/override/telescope.lua new file mode 100644 index 0000000..aa4e3da --- /dev/null +++ b/lua/plugins/override/telescope.lua @@ -0,0 +1,32 @@ +return { + "nvim-telescope/telescope.nvim", + opts = { + defaults = { + preview = { + mime_hook = function(filepath, bufnr, opts) + local is_image = function(_filepath) + local image_extensions = { "png", "jpg" } + local split_path = vim.split(_filepath:lower(), ".", { plain = true }) + local extension = split_path[#split_path] + return vim.tbl_contains(image_extensions, extension) + end + if is_image(filepath) then + local term = vim.api.nvim_open_term(bufnr, {}) + local function send_output(_, data, _) + for _, d in ipairs(data) do + vim.api.nvim_chan_send(term, d .. "\r\n") + end + end + vim.fn.jobstart({ + "kitten", + "icat", + filepath, + }, { on_stdout = send_output, stdout_buffered = true, pty = true }) + else + require("telescope.previewers.utils").set_preview_message(bufnr, opts.winid, "Binary cannot be previewed") + end + end, + }, + }, + }, +} diff --git a/lua/plugins/override/theme.lua b/lua/plugins/override/theme.lua new file mode 100644 index 0000000..fc8643b --- /dev/null +++ b/lua/plugins/override/theme.lua @@ -0,0 +1,16 @@ +return { + { + "catppuccin/nvim", + enabled = false, + }, + { + "folke/tokyonight.nvim", + enabled = false, + }, + { + "LazyVim/LazyVim", + opts = { + colorscheme = "everforest", + }, + }, +} diff --git a/lua/plugins/override/visualize.lua b/lua/plugins/override/visualize.lua new file mode 100644 index 0000000..4d3c539 --- /dev/null +++ b/lua/plugins/override/visualize.lua @@ -0,0 +1,34 @@ +return { + { + "folke/noice.nvim", + opts = { + presets = { + bottom_search = false, + lsp_doc_border = true, + }, + lsp = { + hover = { + silent = true, + }, + }, + }, + }, + -- { + -- "nvim-lualine/lualine.nvim", + -- opts = { + -- sections = { + -- lualine_z = { + -- require("auto-session.lib").current_session_name, + -- }, + -- }, + -- }, + -- }, + { + "rcarriga/nvim-notify", + opts = { + timeout = 2500, + fps = 170, + stages = "fade_in_slide_out", + }, + }, +} diff --git a/lua/plugins/terminal/toggle-term.lua b/lua/plugins/terminal/toggle-term.lua new file mode 100644 index 0000000..5a835cc --- /dev/null +++ b/lua/plugins/terminal/toggle-term.lua @@ -0,0 +1,19 @@ +return { + "akinsho/toggleterm.nvim", + cmd = "ToggleTerm", + opts = { + float_opts = { + border = "curved", + title_pos = "left", + width = 128, + height = 16, + row = 1, + }, + winbar = { + enabled = true, + name_formatter = function(term) + return term.name + end, + }, + }, +} diff --git a/lua/plugins/visualize.lua b/lua/plugins/visualize.lua deleted file mode 100644 index d78f26e..0000000 --- a/lua/plugins/visualize.lua +++ /dev/null @@ -1,39 +0,0 @@ ----@diagnostic disable: missing-fields -return { - { - "neanias/everforest-nvim", - config = function() - require("everforest").setup({ - background = "medium", - italics = true, - ui_contrast = "high", - diagnostic_text_highlight = true, - }) - end, - }, - { - "brenoprata10/nvim-highlight-colors", - event = "BufReadPre", - opts = { - render = "virtual", - virtual_symbol = "", - enable_tailwind = true, - }, - }, - { - "HiPhish/rainbow-delimiters.nvim", - event = "BufReadPre", - }, - { - "kevinhwang91/nvim-ufo", - event = "BufReadPre", - }, - { - "2kabhishek/nerdy.nvim", - dependencies = { - "stevearc/dressing.nvim", - "nvim-telescope/telescope.nvim", - }, - cmd = "Nerdy", - }, -} diff --git a/lua/plugins/visualize/colors.lua b/lua/plugins/visualize/colors.lua new file mode 100644 index 0000000..c504c97 --- /dev/null +++ b/lua/plugins/visualize/colors.lua @@ -0,0 +1,15 @@ +return { + { + "brenoprata10/nvim-highlight-colors", + event = "BufReadPre", + opts = { + render = "virtual", + virtual_symbol = "", + enable_tailwind = true, + }, + }, + { + "HiPhish/rainbow-delimiters.nvim", + event = "BufReadPre", + }, +} diff --git a/lua/plugins/visualize/fold.lua b/lua/plugins/visualize/fold.lua new file mode 100644 index 0000000..4e4df04 --- /dev/null +++ b/lua/plugins/visualize/fold.lua @@ -0,0 +1,4 @@ +return { + "kevinhwang91/nvim-ufo", + event = "BufReadPre", +} diff --git a/lua/plugins/visualize/indent.lua b/lua/plugins/visualize/indent.lua new file mode 100644 index 0000000..c197ba0 --- /dev/null +++ b/lua/plugins/visualize/indent.lua @@ -0,0 +1,4 @@ +return { + "Darazaki/indent-o-matic", + event = "BufReadPre", +} diff --git a/lua/plugins/visualize/nerd.lua b/lua/plugins/visualize/nerd.lua new file mode 100644 index 0000000..c6382a1 --- /dev/null +++ b/lua/plugins/visualize/nerd.lua @@ -0,0 +1,8 @@ +return { + "2kabhishek/nerdy.nvim", + dependencies = { + "stevearc/dressing.nvim", + "nvim-telescope/telescope.nvim", + }, + cmd = "Nerdy", +} diff --git a/lua/plugins/visualize/theme.lua b/lua/plugins/visualize/theme.lua new file mode 100644 index 0000000..95f326b --- /dev/null +++ b/lua/plugins/visualize/theme.lua @@ -0,0 +1,12 @@ +---@diagnostic disable: missing-fields +return { + "neanias/everforest-nvim", + config = function() + require("everforest").setup({ + background = "medium", + italics = true, + ui_contrast = "high", + diagnostic_text_highlight = true, + }) + end, +}