From de6f8d174285fa424d8d8df3f10615e7cd582575 Mon Sep 17 00:00:00 2001 From: Tovi Jaeschke-Rogers Date: Sat, 27 Apr 2024 22:23:28 +0930 Subject: [PATCH] feat: remove unused plugins --- .config/nvim/init.lua | 2 - .config/nvim/lua/settings/theme.lua | 5 - .../lua/tovi/plugins/cellular-automaton.lua | 6 - .config/nvim/lua/tovi/plugins/colorscheme.lua | 210 +++++------------- .config/nvim/lua/tovi/plugins/copilot.lua | 42 ---- .config/nvim/lua/tovi/plugins/dashboard.lua | 38 ++++ .config/nvim/lua/tovi/plugins/dressing.lua | 5 - .config/nvim/lua/tovi/plugins/duck.lua | 5 - .../lua/tovi/plugins/indent-blankline.lua | 6 +- .config/nvim/lua/tovi/plugins/lazygit.lua | 11 - .config/nvim/lua/tovi/plugins/mini-notify.lua | 7 - .config/nvim/lua/tovi/plugins/minintro.lua | 5 - .config/nvim/lua/tovi/plugins/themery.lua | 24 -- .config/nvim/lua/tovi/plugins/trouble.lua | 17 -- .config/nvim/lua/tovi/plugins/undotree.lua | 1 - 15 files changed, 96 insertions(+), 288 deletions(-) delete mode 100644 .config/nvim/lua/settings/theme.lua delete mode 100644 .config/nvim/lua/tovi/plugins/cellular-automaton.lua delete mode 100644 .config/nvim/lua/tovi/plugins/copilot.lua create mode 100644 .config/nvim/lua/tovi/plugins/dashboard.lua delete mode 100644 .config/nvim/lua/tovi/plugins/dressing.lua delete mode 100644 .config/nvim/lua/tovi/plugins/duck.lua delete mode 100644 .config/nvim/lua/tovi/plugins/lazygit.lua delete mode 100644 .config/nvim/lua/tovi/plugins/mini-notify.lua delete mode 100644 .config/nvim/lua/tovi/plugins/minintro.lua delete mode 100644 .config/nvim/lua/tovi/plugins/themery.lua delete mode 100644 .config/nvim/lua/tovi/plugins/trouble.lua diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 0330fe4..5247115 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,4 +1,2 @@ - require('tovi.core') require('tovi.lazy') -require('settings.theme') diff --git a/.config/nvim/lua/settings/theme.lua b/.config/nvim/lua/settings/theme.lua deleted file mode 100644 index 6cde2b9..0000000 --- a/.config/nvim/lua/settings/theme.lua +++ /dev/null @@ -1,5 +0,0 @@ --- Themery block --- This block will be replaced by Themery. -vim.cmd("colorscheme catppuccin") -vim.g.theme_id = 5 --- end themery block diff --git a/.config/nvim/lua/tovi/plugins/cellular-automaton.lua b/.config/nvim/lua/tovi/plugins/cellular-automaton.lua deleted file mode 100644 index a2451d7..0000000 --- a/.config/nvim/lua/tovi/plugins/cellular-automaton.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - 'eandrju/cellular-automaton.nvim', - config = function() - vim.keymap.set("n", "fml", "CellularAutomaton make_it_rain") - end -} diff --git a/.config/nvim/lua/tovi/plugins/colorscheme.lua b/.config/nvim/lua/tovi/plugins/colorscheme.lua index f2d4767..7f4887d 100644 --- a/.config/nvim/lua/tovi/plugins/colorscheme.lua +++ b/.config/nvim/lua/tovi/plugins/colorscheme.lua @@ -1,160 +1,56 @@ return { - { - "EdenEast/nightfox.nvim", - name = "nightfox", - lazy = false, - priority = 1000, - config = function () - require('nightfox').setup({ - options = { - styles = { - comments = "italic", - keywords = "bold", - types = "italic,bold", - } - } - }) - -- vim.cmd([[ colorscheme carbonfox ]]) - end - }, - { - "bluz71/vim-nightfly-colors", - name = "nightfly", - lazy = false, - priority = 1000, - config = function () - -- vim.cmd([[ colorscheme nightfly ]]) - end - }, - { - "morhetz/gruvbox", - name = "gruvbox", - lazy = false, - priority = 1000, - config = function () - -- vim.cmd([[ colorscheme gruvbox ]]) - end - }, - { - "catppuccin/nvim", - name = "catppuccin", - priority = 1000, - config = function () - require("catppuccin").setup({ - flavour = "auto", -- latte, frappe, macchiato, mocha - background = { -- :h background - light = "latte", - dark = "mocha", + "catppuccin/nvim", + name = "catppuccin", + priority = 1000, + config = function () + require("catppuccin").setup({ + flavour = "auto", -- latte, frappe, macchiato, mocha + background = { -- :h background + light = "latte", + dark = "mocha", + }, + transparent_background = false, -- disables setting the background color. + show_end_of_buffer = false, -- shows the '~' characters after the end of buffers + term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) + dim_inactive = { + enabled = false, -- dims the background color of inactive window + shade = "dark", + percentage = 0.15, -- percentage of the shade to apply to the inactive window + }, + no_italic = false, -- Force no italic + no_bold = false, -- Force no bold + no_underline = false, -- Force no underline + styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): + comments = { "italic" }, -- Change the style of comments + conditionals = { "italic" }, + loops = {}, + functions = {}, + keywords = {}, + strings = {}, + variables = {}, + numbers = {}, + booleans = {}, + properties = {}, + types = {}, + operators = {}, + -- miscs = {}, -- Uncomment to turn off hard-coded styles + }, + color_overrides = {}, + custom_highlights = {}, + default_integrations = true, + integrations = { + cmp = true, + gitsigns = true, + nvimtree = true, + treesitter = true, + notify = false, + mini = { + enabled = true, + indentscope_color = "", }, - transparent_background = false, -- disables setting the background color. - show_end_of_buffer = false, -- shows the '~' characters after the end of buffers - term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`) - dim_inactive = { - enabled = false, -- dims the background color of inactive window - shade = "dark", - percentage = 0.15, -- percentage of the shade to apply to the inactive window - }, - no_italic = false, -- Force no italic - no_bold = false, -- Force no bold - no_underline = false, -- Force no underline - styles = { -- Handles the styles of general hi groups (see `:h highlight-args`): - comments = { "italic" }, -- Change the style of comments - conditionals = { "italic" }, - loops = {}, - functions = {}, - keywords = {}, - strings = {}, - variables = {}, - numbers = {}, - booleans = {}, - properties = {}, - types = {}, - operators = {}, - -- miscs = {}, -- Uncomment to turn off hard-coded styles - }, - color_overrides = {}, - custom_highlights = {}, - default_integrations = true, - integrations = { - cmp = true, - gitsigns = true, - nvimtree = true, - treesitter = true, - notify = false, - mini = { - enabled = true, - indentscope_color = "", - }, - -- For more plugins integrations please scroll down (https://github.com/catppuccin/nvim#integrations) - }, - }) - end - }, - { - "rebelot/kanagawa.nvim", - name = "kanagawa", - priority = 1000, - config = function () - require('kanagawa').setup({ - compile = false, -- enable compiling the colorscheme - undercurl = true, -- enable undercurls - commentStyle = { italic = true }, - functionStyle = {}, - keywordStyle = { italic = true}, - statementStyle = { bold = true }, - typeStyle = {}, - transparent = false, -- do not set background color - dimInactive = false, -- dim inactive window `:h hl-NormalNC` - terminalColors = true, -- define vim.g.terminal_color_{0,17} - colors = { -- add/modify theme and palette colors - palette = {}, - theme = { wave = {}, lotus = {}, dragon = {}, all = {} }, - }, - overrides = function(colors) -- add/modify highlights - return {} - end, - theme = "wave", -- Load "wave" theme when 'background' option is not set - background = { -- map the value of 'background' option to a theme - dark = "dragon", -- try "dragon" ! - light = "lotus" - }, - }) - end - }, - { - "rose-pine/neovim", - as = "rose-pine" - }, - { - "neanias/everforest-nvim", - version = false, - lazy = false, - priority = 1000, -- make sure to load this before all the other start plugins - -- Optional; default configuration will be used if setup isn't called. - config = function() - require("everforest").setup({ - background = "hard", - transparent_background_level = 0, - italics = true, - disable_italic_comments = false, - on_highlights = function(hl, _) - hl["@symbol"] = { link = "@field" } - end, - }) - end, - }, - { - "olimorris/onedarkpro.nvim", - priority = 1000, -- Ensure it loads first - }, - { - "eldritch-theme/eldritch.nvim", - lazy = false, - priority = 1000, - opts = {}, - }, - { - "luisiacc/the-matrix.nvim", - priority = 1000, - }, + }, + }) + + vim.cmd("colorscheme catppuccin") + end } diff --git a/.config/nvim/lua/tovi/plugins/copilot.lua b/.config/nvim/lua/tovi/plugins/copilot.lua deleted file mode 100644 index af4dbc6..0000000 --- a/.config/nvim/lua/tovi/plugins/copilot.lua +++ /dev/null @@ -1,42 +0,0 @@ -return { - 'zbirenbaum/copilot.lua', - enabled = false, - cmd = "Copilot", - event = "InsertEnter", - config = function() - require("copilot").setup({ - panel = { - enabled = true, - auto_refresh = false, - keymap = { - jump_prev = "[[", - jump_next = "]]", - accept = "", - refresh = "gr", - open = "" - }, - layout = { - position = "bottom", -- | top | left | right - ratio = 0.4 - }, - }, - suggestion = { - enabled = true, - auto_trigger = true, - debounce = 75, - keymap = { - accept = ",,", - accept_word = false, - accept_line = false, - next = "", - prev = "", - dismiss = "", - }, - }, - filetypes = { - }, - copilot_node_command = 'node', -- Node.js version must be > 18.x - server_opts_overrides = {}, - }) - end, -} diff --git a/.config/nvim/lua/tovi/plugins/dashboard.lua b/.config/nvim/lua/tovi/plugins/dashboard.lua new file mode 100644 index 0000000..dfc6ba9 --- /dev/null +++ b/.config/nvim/lua/tovi/plugins/dashboard.lua @@ -0,0 +1,38 @@ +return { + 'nvimdev/dashboard-nvim', + event = 'VimEnter', + config = function() + require('dashboard').setup({ + theme = 'hyper', + config = { + week_header = { + enable = true, + }, + shortcut = { + { desc = '󰊳 Update', group = '@property', action = 'Lazy update', key = 'u' }, + { + icon = ' ', + icon_hl = '@variable', + desc = 'Files', + group = 'Label', + action = 'Telescope find_files', + key = 'f', + }, + { + desc = ' Apps', + group = 'DiagnosticHint', + action = 'Telescope app', + key = 'a', + }, + { + desc = ' dotfiles', + group = 'Number', + action = 'Telescope dotfiles', + key = 'd', + }, + }, + }, + }) + end, + dependencies = { {'nvim-tree/nvim-web-devicons'}} +} diff --git a/.config/nvim/lua/tovi/plugins/dressing.lua b/.config/nvim/lua/tovi/plugins/dressing.lua deleted file mode 100644 index c7ef707..0000000 --- a/.config/nvim/lua/tovi/plugins/dressing.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "stevearc/dressing.nvim", - enabled = false, - event = "VeryLazy", -} diff --git a/.config/nvim/lua/tovi/plugins/duck.lua b/.config/nvim/lua/tovi/plugins/duck.lua deleted file mode 100644 index a24af03..0000000 --- a/.config/nvim/lua/tovi/plugins/duck.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'tamton-aquib/duck.nvim', - config = function() - end -} diff --git a/.config/nvim/lua/tovi/plugins/indent-blankline.lua b/.config/nvim/lua/tovi/plugins/indent-blankline.lua index 4568fc1..45557a2 100644 --- a/.config/nvim/lua/tovi/plugins/indent-blankline.lua +++ b/.config/nvim/lua/tovi/plugins/indent-blankline.lua @@ -1,5 +1,9 @@ return { "lukas-reineke/indent-blankline.nvim", main = "ibl", - opts = {} + opts = { + exclude = { + filetypes = { "dashboard" }, + } + } } diff --git a/.config/nvim/lua/tovi/plugins/lazygit.lua b/.config/nvim/lua/tovi/plugins/lazygit.lua deleted file mode 100644 index 8f0dbf0..0000000 --- a/.config/nvim/lua/tovi/plugins/lazygit.lua +++ /dev/null @@ -1,11 +0,0 @@ -return { - "kdheepak/lazygit.nvim", - enabled = false, - -- optional for floating window border decoration - dependencies = { - "nvim-lua/plenary.nvim", - }, - config = function() - vim.keymap.set("n", "gg", "LazyGit", { noremap = true, silent = true }) - end, -} diff --git a/.config/nvim/lua/tovi/plugins/mini-notify.lua b/.config/nvim/lua/tovi/plugins/mini-notify.lua deleted file mode 100644 index 28056b0..0000000 --- a/.config/nvim/lua/tovi/plugins/mini-notify.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - 'echasnovski/mini.notify', - version = false, - config = function () - require('mini.notify').setup({}) - end -} diff --git a/.config/nvim/lua/tovi/plugins/minintro.lua b/.config/nvim/lua/tovi/plugins/minintro.lua deleted file mode 100644 index 0d53966..0000000 --- a/.config/nvim/lua/tovi/plugins/minintro.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - "eoh-bse/minintro.nvim", - config = true, - enabled = false, -} diff --git a/.config/nvim/lua/tovi/plugins/themery.lua b/.config/nvim/lua/tovi/plugins/themery.lua deleted file mode 100644 index 406bfa6..0000000 --- a/.config/nvim/lua/tovi/plugins/themery.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - 'zaldih/themery.nvim', - config = function () - require("themery").setup({ - themes = { - "nightfox", - "carbonfox", - "nightfly", - "gruvbox", - "catppuccin", - "kanagawa", - "rose-pine", - "everforest", - "onedark", - "onedark_dark", - "onedark_vivid", - "eldritch", - "thematrix", - }, - themeConfigFile = "~/.config/nvim/lua/settings/theme.lua", -- Described below - livePreview = true, -- Apply theme while browsing. Default to true. - }) - end -} diff --git a/.config/nvim/lua/tovi/plugins/trouble.lua b/.config/nvim/lua/tovi/plugins/trouble.lua deleted file mode 100644 index f1aafaf..0000000 --- a/.config/nvim/lua/tovi/plugins/trouble.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - "folke/trouble.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - config = function () - local trouble = require("trouble"); - - vim.keymap.set("n", "xx", trouble.toggle); - vim.keymap.set("n", "[D", function () - trouble.open(); - trouble.previous({skip_groups = true, jump = true}); - end) - vim.keymap.set("n", "]D", function () - trouble.open(); - require("trouble").next({skip_groups = true, jump = true}); - end) - end -} diff --git a/.config/nvim/lua/tovi/plugins/undotree.lua b/.config/nvim/lua/tovi/plugins/undotree.lua index 6ef9999..45a9f35 100644 --- a/.config/nvim/lua/tovi/plugins/undotree.lua +++ b/.config/nvim/lua/tovi/plugins/undotree.lua @@ -1,6 +1,5 @@ return { "mbbill/undotree", config = function() - -- vim.keymap.set("n", "u", vim.cmd.UndotreeToggle) end, }