From 2807567e349095fe625a87b1d36c02bf1ff16e06 Mon Sep 17 00:00:00 2001 From: rootiest Date: Fri, 12 Jul 2024 21:39:48 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=96=8D=EF=B8=8F=20Plugin=20and=20Theme=20?= =?UTF-8?q?Formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Formatting cleanup --- lua/config/style.lua | 15 +++------------ lua/plugins/ansi-escape.lua | 6 +++--- lua/plugins/auto-dark-mode.lua | 25 ------------------------- lua/plugins/auto-save.lua | 3 ++- lua/plugins/codewindow.lua | 3 ++- lua/plugins/colorizer.lua | 1 - lua/plugins/comment.lua | 3 ++- lua/plugins/dashboard.lua | 1 - lua/plugins/dead-column.lua | 3 ++- lua/plugins/gists.lua | 4 ---- lua/plugins/gx.lua | 7 +++---- lua/plugins/hlchunk.lua | 3 ++- lua/plugins/icon-picker.lua | 1 - lua/plugins/kitty-runner.lua | 3 ++- lua/plugins/kitty-scrollback.lua | 8 ++++---- lua/plugins/lazygit.lua | 1 - lua/plugins/persistence.lua | 3 ++- lua/plugins/remote-nvim.lua | 3 ++- lua/plugins/rip-substitute.lua | 1 - lua/plugins/smoothcursor.lua | 3 ++- lua/plugins/transparent.lua | 5 +++-- lua/plugins/ugbi.lua | 1 - lua/themes/ayu.lua | 7 ++++--- 23 files changed, 38 insertions(+), 72 deletions(-) delete mode 100644 lua/plugins/auto-dark-mode.lua diff --git a/lua/config/style.lua b/lua/config/style.lua index b447e60..4d92637 100644 --- a/lua/config/style.lua +++ b/lua/config/style.lua @@ -2,12 +2,7 @@ -- ---------------------------------- Style ------------------------------------ -- ----------------------------------------------------------------------------- --- Set the palette -if os.getenv("CATPPUCCIN_PALETTE") then - TMEMEPALETTE = - require("catppuccin.palettes").get_palette(os.getenv("CATPPUCCIN_PALETTE")) -end - +-- Get the kitty theme if os.getenv("KITTY_THEME") then KITTY_THEME = os.getenv("KITTY_THEME") end @@ -16,9 +11,5 @@ end vim.cmd.colorscheme(KITTY_THEME or "catppuccin-frappe") -- Set GUI font ---vim.opt.guifont = "MonaspiceKr Nerd Font Mono:#e-subpixelantialias:h13" -vim.opt.guifont = "Iosevka:#e-subpixelantialias:h13" -vim.g.have_nerd_font = true - --- Set transparency -vim.cmd(":TransparentDisable") +vim.opt.guifont = "Iosevka:#e-subpixelantialias:h12" +vim.g.have_nerd_font = true \ No newline at end of file diff --git a/lua/plugins/ansi-escape.lua b/lua/plugins/ansi-escape.lua index d72feed..58c66ba 100644 --- a/lua/plugins/ansi-escape.lua +++ b/lua/plugins/ansi-escape.lua @@ -1,8 +1,8 @@ -- ----------------------------------------------------------------------------- -- ------------------------------- ANSI-escape --------------------------------- -- ----------------------------------------------------------------------------- - return { - 'vim-scripts/AnsiEsc.vim', + "vim-scripts/AnsiEsc.vim", lazy = true, -} \ No newline at end of file +} + diff --git a/lua/plugins/auto-dark-mode.lua b/lua/plugins/auto-dark-mode.lua deleted file mode 100644 index c4fbbbf..0000000 --- a/lua/plugins/auto-dark-mode.lua +++ /dev/null @@ -1,25 +0,0 @@ --- ----------------------------------------------------------------------------- --- ----------------------------- auto-dark-mode -------------------------------- --- ----------------------------------------------------------------------------- -return { - "f-person/auto-dark-mode.nvim", - lazy = true, - opts = { - update_interval = 1000, - set_dark_mode = function() - vim.o.background = "dark" - local kitty_theme = os.getenv("KITTY_THEME") - vim.cmd.colorscheme(kitty_theme or "catppuccin-frappe") - end, - set_light_mode = function() - vim.o.background = "light" - local kitty_theme = os.getenv("KITTY_THEME") - vim.cmd.colorscheme(kitty_theme or "catppuccin-latte") - end, - }, - cond = function() -- Not Using SSH or root - local ssh = os.getenv("SSH_TTY") - local user = os.getenv("USER") - return not ssh and user ~= "root" - end, -} \ No newline at end of file diff --git a/lua/plugins/auto-save.lua b/lua/plugins/auto-save.lua index 3fb98d5..76b4b97 100644 --- a/lua/plugins/auto-save.lua +++ b/lua/plugins/auto-save.lua @@ -6,4 +6,5 @@ return { config = function() require("auto-save").setup({}) end, -} \ No newline at end of file +} + diff --git a/lua/plugins/codewindow.lua b/lua/plugins/codewindow.lua index 6288240..a6b8a01 100644 --- a/lua/plugins/codewindow.lua +++ b/lua/plugins/codewindow.lua @@ -30,4 +30,5 @@ return { }) require("codewindow").apply_default_keybinds() end, -} \ No newline at end of file +} + diff --git a/lua/plugins/colorizer.lua b/lua/plugins/colorizer.lua index 89354e8..7c4ff18 100644 --- a/lua/plugins/colorizer.lua +++ b/lua/plugins/colorizer.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- -------------------------------- Colorizer ---------------------------------- -- ----------------------------------------------------------------------------- - return { "norcalli/nvim-colorizer.lua", config = function() diff --git a/lua/plugins/comment.lua b/lua/plugins/comment.lua index 7662809..4eac629 100644 --- a/lua/plugins/comment.lua +++ b/lua/plugins/comment.lua @@ -6,4 +6,5 @@ return { config = function() require("Comment").setup() end, -} \ No newline at end of file +} + diff --git a/lua/plugins/dashboard.lua b/lua/plugins/dashboard.lua index 46aa690..43deb35 100644 --- a/lua/plugins/dashboard.lua +++ b/lua/plugins/dashboard.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- -------------------------------- Dashboard ---------------------------------- -- ----------------------------------------------------------------------------- - return { "nvimdev/dashboard-nvim", lazy = false, diff --git a/lua/plugins/dead-column.lua b/lua/plugins/dead-column.lua index 2714c10..5e504f1 100644 --- a/lua/plugins/dead-column.lua +++ b/lua/plugins/dead-column.lua @@ -28,4 +28,5 @@ return { }) vim.cmd(":set colorcolumn=120") end, -} \ No newline at end of file +} + diff --git a/lua/plugins/gists.lua b/lua/plugins/gists.lua index f74db7a..30a6f34 100644 --- a/lua/plugins/gists.lua +++ b/lua/plugins/gists.lua @@ -1,16 +1,12 @@ -- ----------------------------------------------------------------------------- -- ---------------------------------- Gists ------------------------------------ -- ----------------------------------------------------------------------------- - return { { "Rawnly/gist.nvim", cmd = { "GistCreate", "GistCreateFromFile", "GistsList" }, config = true, }, - -- `GistsList` opens the selected gif in a terminal buffer, - -- nvim-unception uses neovim remote rpc functionality to open the gist in an actual buffer - -- and prevents neovim buffer inception { "samjwill/nvim-unception", lazy = false, diff --git a/lua/plugins/gx.lua b/lua/plugins/gx.lua index ce5d3b0..0ae088f 100644 --- a/lua/plugins/gx.lua +++ b/lua/plugins/gx.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- ----------------------------------- gx -------------------------------------- -- ----------------------------------------------------------------------------- - return { "chrishrb/gx.nvim", keys = { @@ -9,12 +8,12 @@ return { "gx", "Browse", mode = { "n", "x" }, - } + }, }, cmd = { "Browse" }, init = function() - vim.g.netrw_nogx = 1 -- disable netrw gx + vim.g.netrw_nogx = 1 end, dependencies = { "nvim-lua/plenary.nvim" }, - config = true, -- default settings + config = true, } diff --git a/lua/plugins/hlchunk.lua b/lua/plugins/hlchunk.lua index 659757c..95390c5 100644 --- a/lua/plugins/hlchunk.lua +++ b/lua/plugins/hlchunk.lua @@ -17,4 +17,5 @@ return { }, }) end, -} \ No newline at end of file +} + diff --git a/lua/plugins/icon-picker.lua b/lua/plugins/icon-picker.lua index 5806b1a..804331f 100644 --- a/lua/plugins/icon-picker.lua +++ b/lua/plugins/icon-picker.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- ------------------------------- Icon Picker --------------------------------- -- ----------------------------------------------------------------------------- - return { "ziontee113/icon-picker.nvim", config = function() diff --git a/lua/plugins/kitty-runner.lua b/lua/plugins/kitty-runner.lua index c90384f..216ea3e 100644 --- a/lua/plugins/kitty-runner.lua +++ b/lua/plugins/kitty-runner.lua @@ -7,4 +7,5 @@ return { local term = os.getenv("TERM") return term and string.find(term, "kitty") end, -} \ No newline at end of file +} + diff --git a/lua/plugins/kitty-scrollback.lua b/lua/plugins/kitty-scrollback.lua index 80896ce..2218f93 100644 --- a/lua/plugins/kitty-scrollback.lua +++ b/lua/plugins/kitty-scrollback.lua @@ -7,11 +7,11 @@ return { lazy = true, cmd = { "KittyScrollbackGenerateKittens", "KittyScrollbackCheckHealth" }, event = { "User KittyScrollbackLaunch" }, - -- version = '*', -- latest stable version, may have breaking changes if major version changed - -- version = '^5.0.0', -- pin major version, include fixes and features that do not have breaking changes - config = function() + version = "*", + config = function() -- Using Kitty-Scrollback if vim.env.KITTY_SCROLLBACK_NVIM == "true" then require("kitty-scrollback").setup() end end, -} \ No newline at end of file +} + diff --git a/lua/plugins/lazygit.lua b/lua/plugins/lazygit.lua index 3637ac3..7df8595 100644 --- a/lua/plugins/lazygit.lua +++ b/lua/plugins/lazygit.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- --------------------------------- LazyGit ----------------------------------- -- ----------------------------------------------------------------------------- - return { "kdheepak/lazygit.nvim", cmd = { diff --git a/lua/plugins/persistence.lua b/lua/plugins/persistence.lua index 605b53e..0472f32 100644 --- a/lua/plugins/persistence.lua +++ b/lua/plugins/persistence.lua @@ -5,4 +5,5 @@ return { "folke/persistence.nvim", event = "BufReadPre", opts = {}, -} \ No newline at end of file +} + diff --git a/lua/plugins/remote-nvim.lua b/lua/plugins/remote-nvim.lua index 83e0d9e..dd9c221 100644 --- a/lua/plugins/remote-nvim.lua +++ b/lua/plugins/remote-nvim.lua @@ -10,4 +10,5 @@ return { "nvim-telescope/telescope.nvim", -- For picking b/w different remote methods }, config = true, -} \ No newline at end of file +} + diff --git a/lua/plugins/rip-substitute.lua b/lua/plugins/rip-substitute.lua index 957b848..3bc86c9 100644 --- a/lua/plugins/rip-substitute.lua +++ b/lua/plugins/rip-substitute.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- ----------------------------- rip-substitute -------------------------------- -- ----------------------------------------------------------------------------- - return { "chrisgrieser/nvim-rip-substitute", cmd = "RipSubstitute", diff --git a/lua/plugins/smoothcursor.lua b/lua/plugins/smoothcursor.lua index e521c13..0b368e1 100644 --- a/lua/plugins/smoothcursor.lua +++ b/lua/plugins/smoothcursor.lua @@ -82,4 +82,5 @@ return { vim.fn.sign_define("smoothcursor_�", { text = "" }) vim.fn.sign_define("smoothcursor_R", { text = "󰊄" }) end, -} \ No newline at end of file +} + diff --git a/lua/plugins/transparent.lua b/lua/plugins/transparent.lua index 89b6f64..a2f9484 100644 --- a/lua/plugins/transparent.lua +++ b/lua/plugins/transparent.lua @@ -1,7 +1,8 @@ -- ----------------------------------------------------------------------------- -- ------------------------------- Transparent --------------------------------- -- ----------------------------------------------------------------------------- - return { "xiyaowong/transparent.nvim", -} \ No newline at end of file + config = true, +} + diff --git a/lua/plugins/ugbi.lua b/lua/plugins/ugbi.lua index 3f46583..e536313 100644 --- a/lua/plugins/ugbi.lua +++ b/lua/plugins/ugbi.lua @@ -1,7 +1,6 @@ -- ----------------------------------------------------------------------------- -- --------------------------- User-getting-bored ------------------------------ -- ----------------------------------------------------------------------------- - return { "mikesmithgh/ugbi", lazy = false, diff --git a/lua/themes/ayu.lua b/lua/themes/ayu.lua index f498a3e..385bc55 100644 --- a/lua/themes/ayu.lua +++ b/lua/themes/ayu.lua @@ -1,7 +1,8 @@ -- ----------------------------------------------------------------------------- -- ----------------------------------- Ayu ------------------------------------- -- ----------------------------------------------------------------------------- -return{ +return { "Shatur/neovim-ayu", - lazy = true -} \ No newline at end of file + lazy = true, +} +