From fab1f061d47e816d2b2a0b8bbfbafc034ae72b88 Mon Sep 17 00:00:00 2001 From: CPea Date: Mon, 23 Oct 2023 03:15:26 +0700 Subject: [PATCH] feat: cleanup plugins --- lazy-lock.json | 1 - .../config/{nvim_crates.lua => crates.lua} | 0 lua/pea/config/presence.lua | 19 +------- .../{nvim_surround.lua => surround.lua} | 0 lua/pea/plugins.lua | 48 +++++++++---------- 5 files changed, 24 insertions(+), 44 deletions(-) rename lua/pea/config/{nvim_crates.lua => crates.lua} (100%) rename lua/pea/config/{nvim_surround.lua => surround.lua} (100%) diff --git a/lazy-lock.json b/lazy-lock.json index a1bbe18..b77f23c 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -43,7 +43,6 @@ "nvim-surround": { "branch": "main", "commit": "1c2ef599abeeb98e40706830bcd27e90e259367a" }, "nvim-tree.lua": { "branch": "master", "commit": "83b699533b279af6d207d6c3860d4301556d65b4" }, "nvim-treesitter": { "branch": "master", "commit": "0179a89656b4ce395a4487c07ae385b8425524ae" }, - "nvim-ts-autotag": { "branch": "main", "commit": "6be1192965df35f94b8ea6d323354f7dc7a557e4" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "92e688f013c69f90c9bbd596019ec10235bc51de" }, "nvim-web-devicons": { "branch": "master", "commit": "f0267921c845c42685968401bc49aa65e18d3e09" }, "one_monokai.nvim": { "branch": "main", "commit": "801e0515d192b98017c4ec48fd4c1fbaac2e01eb" }, diff --git a/lua/pea/config/nvim_crates.lua b/lua/pea/config/crates.lua similarity index 100% rename from lua/pea/config/nvim_crates.lua rename to lua/pea/config/crates.lua diff --git a/lua/pea/config/presence.lua b/lua/pea/config/presence.lua index ebbc19c..00ae31e 100644 --- a/lua/pea/config/presence.lua +++ b/lua/pea/config/presence.lua @@ -1,24 +1,9 @@ return function() - local client_id = { - default = "793271441293967371", - vs_code = "383226320970055681", - coc_nvim = "768090036633206815", - pea_vim = "914799712794705961", - } - - local log_levels = { - none = nil, - error = "error", - warn = "warn", - info = "info", - debug = "debug", - } - require("presence").setup { neovim_image_text = "LunarVim", main_image = "file", - log_level = log_levels.none, - client_id = client_id.pea_vim, + log_level = nil, + client_id = "914799712794705961", show_time = false, workspace_text = function() return "Crababarian 🦀" diff --git a/lua/pea/config/nvim_surround.lua b/lua/pea/config/surround.lua similarity index 100% rename from lua/pea/config/nvim_surround.lua rename to lua/pea/config/surround.lua diff --git a/lua/pea/plugins.lua b/lua/pea/plugins.lua index d6628b2..fde7811 100644 --- a/lua/pea/plugins.lua +++ b/lua/pea/plugins.lua @@ -1,32 +1,37 @@ local plugins = { "cpea2506/one_monokai.nvim", + { + "cpea2506/relative-toggle.nvim", + event = "BufRead", + }, + { + "cpea2506/presence.nvim", + event = "BufRead", + config = require "pea.config.presence", + }, { "jmederosalvarado/roslyn.nvim", - config = require "pea.config.roslyn", ft = "cs", + config = require "pea.config.roslyn", }, { "luckasRanarison/clear-action.nvim", - config = require "pea.config.clear_action", event = "BufRead", + config = require "pea.config.clear_action", }, { "folke/flash.nvim", + event = "BufRead", config = require "pea.config.flash", - event = "VeryLazy", }, { "akinsho/git-conflict.nvim", - config = require "pea.config.conflict", - event = "BufRead", - }, - { - "cpea2506/relative-toggle.nvim", event = "BufRead", + config = require "pea.config.conflict", }, { "chrishrb/gx.nvim", - event = "BufEnter", + event = "BufRead", config = require "pea.config.gx", }, { @@ -35,7 +40,7 @@ local plugins = { }, { "asiryk/auto-hlsearch.nvim", - event = "VeryLazy", + event = "BufRead", config = require "pea.config.hlsearch", }, { @@ -49,13 +54,13 @@ local plugins = { }, { "folke/noice.nvim", - event = "VeryLazy", + event = "BufRead", config = require "pea.config.noice", dependencies = "MunifTanjim/nui.nvim", }, { "ur4ltz/move.nvim", - event = "VeryLazy", + event = "BufRead", }, { "hrsh7th/cmp-nvim-lsp-signature-help", @@ -65,10 +70,6 @@ local plugins = { "lukas-reineke/cmp-rg", event = "InsertEnter", }, - { - "windwp/nvim-ts-autotag", - ft = { "html", "typescriptreact", "svelte" }, - }, { "TheBlob42/houdini.nvim", event = "InsertEnter", @@ -92,28 +93,23 @@ local plugins = { }, { "stevearc/dressing.nvim", - event = "VeryLazy", + event = "BufRead", config = require "pea.config.dressing", }, { "nacro90/numb.nvim", - event = "VeryLazy", + keys = ":", config = require "pea.config.numb", }, { "Saecki/crates.nvim", event = "BufRead Cargo.toml", - config = require "pea.config.nvim_crates", - }, - { - "cpea2506/presence.nvim", - event = "BufRead", - config = require "pea.config.presence", + config = require "pea.config.crates", }, { "kylechui/nvim-surround", - event = "VeryLazy", - config = require "pea.config.nvim_surround", + event = "BufRead", + config = require "pea.config.surround", }, { "folke/trouble.nvim",