diff options
| author | bh <qn+git@excalibur.computer> | 2026-03-15 15:19:31 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-03-15 15:19:31 +0800 |
| commit | 069fc94ee079b92146ba99dffa2e4d704ae4304c (patch) | |
| tree | 62f42b50229797a534cd797cc664dfe76493d464 | |
| parent | bcd354bd60258e591f893c45ed621f3c62f64c90 (diff) | |
Remove .bak folders
| -rw-r--r-- | lua/config/.bak/.luasnip.bak.bak | 56 | ||||
| -rw-r--r-- | lua/config/.bak/.neovide.lua.bak | 81 | ||||
| -rw-r--r-- | lua/config/.bak/dashboard.lua.bak | 109 | ||||
| -rw-r--r-- | lua/config/.bak/dashboard2.lua.bak | 122 | ||||
| -rw-r--r-- | lua/config/.bak/greeter.lua.bak | 5 | ||||
| -rw-r--r-- | lua/config/.bak/keybindings.lua.bak | 19 | ||||
| -rw-r--r-- | lua/config/.bak/theme.lua.bak | 2 | ||||
| -rw-r--r-- | lua/plugins/.bak/.init.lua.bak | 119 | ||||
| -rw-r--r-- | lua/plugins/.bak/old.lua.bak | 104 |
9 files changed, 0 insertions, 617 deletions
diff --git a/lua/config/.bak/.luasnip.bak.bak b/lua/config/.bak/.luasnip.bak.bak deleted file mode 100644 index e0b5617..0000000 --- a/lua/config/.bak/.luasnip.bak.bak +++ /dev/null @@ -1,56 +0,0 @@ --- ~/.config/nvim/lua/config/luasnip.lua -return function() - local ls = require("luasnip") - local s = ls.snippet - local t = ls.text_node - local i = ls.insert_node - - -- Minimal test snippets - ls.snippets = { - all = { - s("hi", t("Hello, world!")), -- trigger: hi - }, - lua = { - s("fn", { -- trigger: fn - t("function "), i(1, "name"), t("("), i(2), t({")", "\t"}), - i(0), - t({"", "end"}) - }), - s("fori", { -- for loop snippet - t("for "), i(1, "i"), t(" = "), i(2, "1"), t(", "), i(3, "10"), t(" do"), - t({"", "\t"}), i(0), - t({"", "end"}) - }), - }, - } - - -- Load VSCode-style snippets (optional) - require("luasnip.loaders.from_vscode").lazy_load() - - -- Load Lua snippets from a separate file (optional) - -- require("luasnip.loaders.from_lua").load({ paths = "~/.config/nvim/lua/config/snippets.lua" }) - - local opts = { silent = true, noremap = true } - - -- Expand snippet or jump forward - vim.keymap.set({ "i", "s" }, "<C-l>", function() - if ls.expand_or_jumpable() then - ls.expand_or_jump() - end - end, opts) - - -- Jump backward - vim.keymap.set({ "i", "s" }, "<C-h>", function() - if ls.jumpable(-1) then - ls.jump(-1) - end - end, opts) - - -- Cycle choice nodes - vim.keymap.set({ "i", "s" }, "<C-k>", function() - if ls.choice_active() then - ls.change_choice(1) - end - end, opts) -end - diff --git a/lua/config/.bak/.neovide.lua.bak b/lua/config/.bak/.neovide.lua.bak deleted file mode 100644 index aa62665..0000000 --- a/lua/config/.bak/.neovide.lua.bak +++ /dev/null @@ -1,81 +0,0 @@ --- -------------------------------------------------------- --- -- 🪶 Neovide GUI Configuration --- -------------------------------------------------------- --- -- NEOVIDE -- --- --- -- Enable transparency --- vim.g.neovide_opacity = 0.75 --- --- -- Set font and size --- -- vim.o.guifont = "JetBrainsMono Nerd Font:h14" --- vim.o.guifont = "Source Code Pro:h10.5" --- --- -- Colors (Foreground and Background) --- -- Neovide uses Neovim's colorscheme, so we’ll override via highlight groups --- vim.api.nvim_set_hl(0, "Normal", { fg = "#8affff", bg = "#003636" }) --- vim.api.nvim_set_hl(0, "NormalFloat", { fg = "#8affff", bg = "#003636" }) --- --- -- Neovide also supports an extra blending layer --- vim.g.neovide_background_color = "#003636" .. string.format("%x", math.floor(255 * vim.g.neovide_opacity)) --- --- --- -- Padding (Kitty → Neovide scaling) --- vim.g.neovide_padding_top = 5 --- vim.g.neovide_padding_bottom = 5 --- vim.g.neovide_padding_right = 5 --- vim.g.neovide_padding_left = 5 --- --- -- Set cursor effects --- -- vim.g.neovide_cursor_vfx_mode = "railgun" --- --- -- Enable fullscreen --- -- vim.g.neovide_fullscreen = true --- --- -- Scale factor (zoom) --- vim.g.neovide_scale_factor = 0.75 --- --- -- Helper function to zoom in/out --- -- local change_scale_factor = function(delta) --- -- vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * delta --- -- end --- -- vim.keymap.set("n", "<C-=>", function() change_scale_factor(1.25) end) --- -- vim.keymap.set("n", "<C-->", function() change_scale_factor(1/1.25) end) --- --- - --------------------------------------------------------- --- 🪶 Neovide GUI Configuration --------------------------------------------------------- --- NEOVIDE -- - --- Enable transparency -vim.g.neovide_opacity = 0.75 - - - --- Neovide also supports an extra blending layer -vim.g.neovide_background_color = "#003636" .. string.format("%x", math.floor(255 * vim.g.neovide_opacity)) - - --- Padding (Kitty → Neovide scaling) -vim.g.neovide_padding_top = 5 -vim.g.neovide_padding_bottom = 5 -vim.g.neovide_padding_right = 5 -vim.g.neovide_padding_left = 5 - --- Set cursor effects --- vim.g.neovide_cursor_vfx_mode = "railgun" - --- Enable fullscreen --- vim.g.neovide_fullscreen = true - --- Scale factor (zoom) -vim.g.neovide_scale_factor = 0.75 - --- Helper function to zoom in/out --- local change_scale_factor = function(delta) --- vim.g.neovide_scale_factor = vim.g.neovide_scale_factor * delta --- end --- vim.keymap.set("n", "<C-=>", function() change_scale_factor(1.25) end) --- vim.keymap.set("n", "<C-->", function() change_scale_factor(1/1.25) end) - diff --git a/lua/config/.bak/dashboard.lua.bak b/lua/config/.bak/dashboard.lua.bak deleted file mode 100644 index d5c81c0..0000000 --- a/lua/config/.bak/dashboard.lua.bak +++ /dev/null @@ -1,109 +0,0 @@ --- local home = os.getenv('HOME') --- local db = require('dashboard') --- db.default_banner = --- { --- '', --- '', --- '', --- '██████╗ ██╗ ██╗ ███╗ ██╗██╗ ██╗██╗███╗ ███╗', --- '██╔══██╗██║ ██║ ████╗ ██║██║ ██║██║████╗ ████║', --- '██████╔╝███████║█████╗██╔██╗ ██║██║ ██║██║██╔████╔██║', --- '██╔══██╗██╔══██║╚════╝██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║', --- '██████╔╝██║ ██║ ██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║', --- '╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═ ', --- '', --- ' [TIP: To exit Vim, use a sledgehammer.] ', --- '', --- --- --- } --- db.preview_file_height = 11 --- db.preview_file_width = 70 --- db.custom_center = --- { --- { icon = ' ', --- desc = 'Recently Opened Files ', --- action = 'Telescope oldfiles', --- shortcut = 'SPC f h' }, --- { icon = ' ', --- desc = 'New File ', --- action = ':tabnew', --- shortcut = 'SPC f n' }, --- { icon = ' ', --- desc = 'Find File ', --- action = 'Telescope find_files find_command=rg,--hidden,--files', --- shortcut = 'SPC f f' }, --- { icon = ' ', --- desc = 'File Browser ', --- action = 'Telescope file_browser', --- shortcut = 'SPC f b' }, --- { icon = ' ', --- desc = 'Find Word ', --- action = 'Telescope live_grep', --- shortcut = 'SPC f w' }, --- { icon = ' ', --- desc = 'View Harpoon Marks ', --- action = 'Telescope harpoon marks', --- shortcut = 'SPC f r' }, --- { icon = '⚒ ', --- desc = 'Use A Sledgehammer ', --- action = 'qa', --- shortcut = 'SPC w q' }, --- } - -local db = require("dashboard") -db.setup { - theme = "hyper", - config = { - header = { - " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗ ", - " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║ ", - " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║ ", - " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║ ", - " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║ ", - " ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ " - - }, --- center = { --- { icon = " ", desc = "Find File", action = "Telescope find_files", shortcut = "f" }, --- { icon = " ", desc = "Recent Files", action = "Telescope oldfiles", shortcut = "r" }, --- { icon = " ", desc = "New File", action = "enew", shortcut = "n" }, --- { icon = " ", desc = "Open Config", action = "edit ~/.config/nvim/init.lua", shortcut = "c" }, --- { icon = " ", desc = "Quit", action = "qa", shortcut = "q" }, --- }, - center = - { - { icon = ' ', - desc = 'Recently Opened Files ', - action = 'Telescope oldfiles', - shortcut = 'SPC f h' }, - { icon = ' ', - desc = 'New File ', - action = ':tabnew', - shortcut = 'SPC f n' }, - { icon = ' ', - desc = 'Find File ', - action = 'Telescope find_files find_command=rg,--hidden,--files', - shortcut = 'SPC f f' }, - { icon = ' ', - desc = 'File Browser ', - action = 'Telescope file_browser', - shortcut = 'SPC f b' }, - { icon = ' ', - desc = 'Find Word ', - action = 'Telescope live_grep', - shortcut = 'SPC f w' }, - { icon = ' ', - desc = 'View Harpoon Marks ', - action = 'Telescope harpoon marks', - shortcut = 'SPC f r' }, - { icon = '⚒ ', - desc = 'Use A Sledgehammer ', - action = 'qa', - shortcut = 'SPC w q' }, - }, - - footer = { "Have a productive day!" }, - }, -} - diff --git a/lua/config/.bak/dashboard2.lua.bak b/lua/config/.bak/dashboard2.lua.bak deleted file mode 100644 index 8eeb687..0000000 --- a/lua/config/.bak/dashboard2.lua.bak +++ /dev/null @@ -1,122 +0,0 @@ --- local home = os.getenv('HOME') --- local db = require('dashboard') --- db.default_banner = --- { --- '', --- '', --- '', --- '██████╗ ██╗ ██╗ ███╗ ██╗██╗ ██╗██╗███╗ ███╗', --- '██╔══██╗██║ ██║ ████╗ ██║██║ ██║██║████╗ ████║', --- '██████╔╝███████║█████╗██╔██╗ ██║██║ ██║██║██╔████╔██║', --- '██╔══██╗██╔══██║╚════╝██║╚██╗██║╚██╗ ██╔╝██║██║╚██╔╝██║', --- '██████╔╝██║ ██║ ██║ ╚████║ ╚████╔╝ ██║██║ ╚═╝ ██║', --- '╚═════╝ ╚═╝ ╚═╝ ╚═╝ ╚═══╝ ╚═══╝ ╚═╝╚═╝ ╚═ ', --- '', --- ' [TIP: To exit Vim, use a sledgehammer.] ', --- '', --- --- --- } --- db.preview_file_height = 11 --- db.preview_file_width = 70 --- db.custom_center = --- { --- { icon = ' ', --- desc = 'Recently Opened Files ', --- action = 'Telescope oldfiles', --- shortcut = 'SPC f h' }, --- { icon = ' ', --- desc = 'New File ', --- action = ':tabnew', --- shortcut = 'SPC f n' }, --- { icon = ' ', --- desc = 'Find File ', --- action = 'Telescope find_files find_command=rg,--hidden,--files', --- shortcut = 'SPC f f' }, --- { icon = ' ', --- desc = 'File Browser ', --- action = 'Telescope file_browser', --- shortcut = 'SPC f b' }, --- { icon = ' ', --- desc = 'Find Word ', --- action = 'Telescope live_grep', --- shortcut = 'SPC f w' }, --- { icon = ' ', --- desc = 'View Harpoon Marks ', --- action = 'Telescope harpoon marks', --- shortcut = 'SPC f r' }, --- { icon = '⚒ ', --- desc = 'Use A Sledgehammer ', --- action = 'qa', --- shortcut = 'SPC w q' }, --- } - -local db = require("dashboard") -db.setup { - theme = "hyper", - config = { - header = { - " ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗", - " ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║", - " ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║", - " ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██╔╝██╔╝██║", - " ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║", - " ╚═╝ ╚═══╝╚══════╝╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝", - " " - }, - week_header = { - enable = false -- or true if you want date/time header - }, - shortcut = { - { - icon = " ", - desc = "Find File", - key = "f", - action = "Telescope find_files" - }, - { - icon = " ", - desc = "Recent Files", - key = "r", - action = "Telescope oldfiles" - }, - { - icon = " ", - desc = "New File", - key = "n", - action = "enew" - }, - { - icon = " ", - desc = "Open Config", - key = "c", - action = "edit ~/.config/nvim/init.lua" - }, - { - icon = " ", - desc = "Quit", - key = "q", - action = "qa" - }, - }, - packages = { - enable = true -- set to true if you want plugin count display - }, - project = { - enable = false, -- set true if you want project list - limit = 8, - icon = " ", - label = "Projects", - action = "Telescope find_files cwd=" - }, - mru = { - enable = true, -- set true if you want MRU files - limit = 10, - icon = " ", - label = "Recent", - cwd_only = false - }, - footer = { "Have a productive day!" }, - }, -} - diff --git a/lua/config/.bak/greeter.lua.bak b/lua/config/.bak/greeter.lua.bak deleted file mode 100644 index a41cfd9..0000000 --- a/lua/config/.bak/greeter.lua.bak +++ /dev/null @@ -1,5 +0,0 @@ --- vim.g.dashboard_custom_header = --- { --- [[ Hello ]] --- } - diff --git a/lua/config/.bak/keybindings.lua.bak b/lua/config/.bak/keybindings.lua.bak deleted file mode 100644 index 65d2b2b..0000000 --- a/lua/config/.bak/keybindings.lua.bak +++ /dev/null @@ -1,19 +0,0 @@ --- Keybindings - --- Swap Ctrl + C to Esc --- vim.api.nvim_set_keymap('i', '<C-c>', '<Esc>', { noremap = true, silent = true }) --- vim.api.nvim_set_keymap('i', '<C-g>', '<Esc>', { noremap = true, silent = true }) --- vim.api.nvim_set_keymap('i', '<Esc>', '<C-c>', { noremap = true, silent = true }) - - --- Leader Key -vim.g.mapleader = ' ' - --- Tree -vim.api.nvim_set_keymap('n', '<leader>t', ':NvimTreeToggle<CR>', { noremap = true, silent = true }) - --- Telescope -local builtin = require('telescope.builtin') -vim.keymap.set('n', '<leader>ff', builtin.find_files, {}) -vim.keymap.set('n', '<leader>fg', builtin.live_grep, {}) -vim.keymap.set('n', '<leader>fb', builtin.buffers, {}) diff --git a/lua/config/.bak/theme.lua.bak b/lua/config/.bak/theme.lua.bak deleted file mode 100644 index 4c2a94a..0000000 --- a/lua/config/.bak/theme.lua.bak +++ /dev/null @@ -1,2 +0,0 @@ -vim.cmd("colorscheme default") - diff --git a/lua/plugins/.bak/.init.lua.bak b/lua/plugins/.bak/.init.lua.bak deleted file mode 100644 index 394b181..0000000 --- a/lua/plugins/.bak/.init.lua.bak +++ /dev/null @@ -1,119 +0,0 @@ --- Plugins -return { - - -- Nvim Tree - "nvim-tree/nvim-tree.lua", - - -- Icons - "nvim-tree/nvim-web-devicons", - - -- Color Picker - "uga-rosa/ccc.nvim", - - -- Status Bar - 'nvim-lualine/lualine.nvim', - - -- Neoscroll - "karb94/neoscroll.nvim", - opts = {}, - - - -- Telescope - { - 'nvim-telescope/telescope.nvim', tag = '0.1.8', - -- or , branch = '0.1.x', - dependencies = { 'nvim-lua/plenary.nvim' } - }, - - -- LSP - - - -- LaTeX - { - "lervag/vimtex", - ft = "tex", - init = function() - -- Use Zathura as the PDF viewer - vim.g.vimtex_view_method = "zathura" - - -- Compile using latexmk automatically - vim.g.vimtex_compiler_method = "latexmk" - vim.g.vimtex_compiler_latexmk = { - build_dir = "build", -- optional: keep files in a separate folder - callback = 1, - continuous = 1, -- automatically recompile on save - executable = "latexmk", - options = { - "-pdf", - "-interaction=nonstopmode", - "-synctex=1", - }, - } - - -- Optional: disable conceal for clearer LaTeX text - vim.g.vimtex_syntax_conceal = { - accents = 0, - ligatures = 0, - cites = 0, - fancy = 0, - spacing = 0, - greek = 0, - math_delimiters = 0, - math_super_sub = 0, - } - end, - }, - - -- LSP support - { - "neovim/nvim-lspconfig", - config = function() - require("lspconfig").texlab.setup({}) - end, - }, - - -- Autocompletion (optional) - { "hrsh7th/nvim-cmp" }, - { "hrsh7th/cmp-nvim-lsp" }, - - -- Snippets (optional) - { "L3MON4D3/LuaSnip" }, - - -- Grammar & spell checking - { "rhysd/vim-grammarous", ft = "tex" }, - - - -- Tab Bar - {'romgrk/barbar.nvim', - dependencies = { - 'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status - 'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons - }, - init = function() vim.g.barbar_auto_setup = false end, - opts = { - -- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default: - -- animation = true, - -- insert_at_start = true, - -- …etc. - }, - version = '^1.0.0', -- optional: only update when a new 1.x version is released - }, - - -- Dashboard - { - 'nvimdev/dashboard-nvim', - event = 'VimEnter', - config = function() - require('dashboard').setup { - -- config - } - end, - dependencies = { {'nvim-tree/nvim-web-devicons'}} - }, - - -- THEMES - "martinsione/darkplus.nvim", - "folke/tokyonight.nvim", - "navarasu/onedark.nvim" - -} diff --git a/lua/plugins/.bak/old.lua.bak b/lua/plugins/.bak/old.lua.bak deleted file mode 100644 index e1f3946..0000000 --- a/lua/plugins/.bak/old.lua.bak +++ /dev/null @@ -1,104 +0,0 @@ --- Plugins -return { - - - - -- Telescope - { - 'nvim-telescope/telescope.nvim', tag = '0.1.8', - -- or , branch = '0.1.x', - dependencies = { 'nvim-lua/plenary.nvim' } - }, - - -- LSP - - - -- LaTeX - { - "lervag/vimtex", - ft = "tex", - init = function() - -- Use Zathura as the PDF viewer - vim.g.vimtex_view_method = "zathura" - - -- Compile using latexmk automatically - vim.g.vimtex_compiler_method = "latexmk" - vim.g.vimtex_compiler_latexmk = { - build_dir = "build", -- optional: keep files in a separate folder - callback = 1, - continuous = 1, -- automatically recompile on save - executable = "latexmk", - options = { - "-pdf", - "-interaction=nonstopmode", - "-synctex=1", - }, - } - - -- Optional: disable conceal for clearer LaTeX text - vim.g.vimtex_syntax_conceal = { - accents = 0, - ligatures = 0, - cites = 0, - fancy = 0, - spacing = 0, - greek = 0, - math_delimiters = 0, - math_super_sub = 0, - } - end, - }, - - -- LSP support - { - "neovim/nvim-lspconfig", - config = function() - require("lspconfig").texlab.setup({}) - end, - }, - - -- Autocompletion (optional) - { "hrsh7th/nvim-cmp" }, - { "hrsh7th/cmp-nvim-lsp" }, - - -- Snippets (optional) - { "L3MON4D3/LuaSnip" }, - - -- Grammar & spell checking - { "rhysd/vim-grammarous", ft = "tex" }, - - - -- Tab Bar - {'romgrk/barbar.nvim', - dependencies = { - 'lewis6991/gitsigns.nvim', -- OPTIONAL: for git status - 'nvim-tree/nvim-web-devicons', -- OPTIONAL: for file icons - }, - init = function() vim.g.barbar_auto_setup = false end, - opts = { - -- lazy.nvim will automatically call setup for you. put your options here, anything missing will use the default: - -- animation = true, - -- insert_at_start = true, - -- …etc. - }, - version = '^1.0.0', -- optional: only update when a new 1.x version is released - }, - - -- Dashboard - { - 'nvimdev/dashboard-nvim', - event = 'VimEnter', - config = function() - require('dashboard').setup { - -- config - } - end, - dependencies = { {'nvim-tree/nvim-web-devicons'}} - }, - - -- THEMES - "martinsione/darkplus.nvim", - "folke/tokyonight.nvim", - "navarasu/onedark.nvim" - -} |
