diff options
| author | bh <qn+git@excalibur.computer> | 2026-04-01 15:08:59 +0800 |
|---|---|---|
| committer | bh <qn+git@excalibur.computer> | 2026-04-01 15:14:00 +0800 |
| commit | 81b4883eaa145cf2ba5c2b0a7296cb15e2aae5d6 (patch) | |
| tree | 8238bd05f926656b051518c04f00bd1be4a49a21 | |
| parent | fc0cf816e5c6b02c590f760dcc7251d5d99bfeed (diff) | |
Small refactor & change telescope border colour
| -rw-r--r-- | init.lua | 3 | ||||
| -rw-r--r-- | lua/plugins/init.lua | 221 |
2 files changed, 110 insertions, 114 deletions
@@ -154,7 +154,6 @@ vim.cmd([[ highlight SignColumn guibg=NONE highlight WinSeparator guifg=#74c4c4 guibg=NONE - highlight Pmenu guibg=NONE highlight PmenuSel guifg=#FFFFFF guibg=#008282 highlight Substitute guifg=#FFFFFF guibg=#008282 @@ -171,6 +170,8 @@ vim.cmd([[ highlight Trailing guifg=#016868 highlight Whitespace guifg=#016868 highlight NonText guifg=#016868 + + highlight TelescopeBorder guifg=#74c4c4 guibg=NONE ]]) diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 0773453..394a807 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -1,108 +1,104 @@ -- ~/.config/nvim/lua/plugins/init.lua return { - -- LSP + -- LSP { - "neovim/nvim-lspconfig", - config = function() - require("config.lsp")() -- note the () if your lsp.lua returns a function - end, - }, - - -- TreeSitter - {"nvim-treesitter/nvim-treesitter", branch = 'master', lazy = false, build = ":TSUpdate", - config = function() - require("config.treesitter")() - end,}, - {"nvim-treesitter/nvim-treesitter-textobjects", lazy = false, }, - - -- Autopairs - { - 'windwp/nvim-autopairs', - event = "InsertEnter", - config = true - }, - - { - "kylechui/nvim-surround", - version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features - event = "VeryLazy", - config = function() - require("nvim-surround").setup({}) - end - }, - - -- Auto Completion - { - "hrsh7th/nvim-cmp", - event = "InsertEnter", -- lazy load when entering insert mode - dependencies = { - "hrsh7th/cmp-nvim-lsp", - "hrsh7th/cmp-buffer", - "hrsh7th/cmp-path", - "saadparwaiz1/cmp_luasnip", - "L3MON4D3/LuaSnip", - "rafamadriz/friendly-snippets", - "onsails/lspkind.nvim", - }, - config = function() - require("config.completion")() -- load the separate config file - end, - }, - - - -- Autocompletion - -- { "hrsh7th/nvim-cmp" }, - -- { "hrsh7th/cmp-nvim-lsp" }, - - -- Snippets - { - "L3MON4D3/LuaSnip", - version = "v2.*", - dependencies = { "rafamadriz/friendly-snippets" }, - build = "make install_jsregexp", - config = function() - -- Call the returned function from your module - require("config.luasnip")() - end, - }, - - -- File Explorer - { "nvim-tree/nvim-tree.lua", config = require("config.tree") }, - - -- Icons - { "nvim-tree/nvim-web-devicons" }, - - -- Color Picker - { "uga-rosa/ccc.nvim", config = require("config.colorpicker") }, - - -- Status Line - { "nvim-lualine/lualine.nvim", config = require("config.statusline"), opts = {} }, - - -- Smooth Scrolling - { "karb94/neoscroll.nvim", opts = {} }, - - -- Telescope - { "nvim-telescope/telescope.nvim", tag = "0.1.8", dependencies = { "nvim-lua/plenary.nvim" }, config = require("config.telescope") }, - - -- Plenary - { "nvim-lua/plenary.nvim" }, - - -- LaTeX - { "lervag/vimtex", ft = "tex", init = require("config.vimtex") }, - - -- 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 - }, - version = "^1.0.0", - config = require("config.tabs"), - }, + "neovim/nvim-lspconfig", + config = function() + require("config.lsp")() + end, + }, + + -- TreeSitter + {"nvim-treesitter/nvim-treesitter", branch = 'master', lazy = false, build = ":TSUpdate", + config = function() + require("config.treesitter")() + end,}, + {"nvim-treesitter/nvim-treesitter-textobjects", lazy = false, }, + + -- Autopairs + { + 'windwp/nvim-autopairs', + event = "InsertEnter", + config = true + }, + + -- Surround + { + "kylechui/nvim-surround", + version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features + event = "VeryLazy", + config = function() + require("nvim-surround").setup({}) + end + }, + + -- Auto Completion + { + "hrsh7th/nvim-cmp", + event = "InsertEnter", -- lazy load when entering insert mode + dependencies = { + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-buffer", + "hrsh7th/cmp-path", + "saadparwaiz1/cmp_luasnip", + "L3MON4D3/LuaSnip", + "rafamadriz/friendly-snippets", + "onsails/lspkind.nvim", + }, + config = function() + require("config.completion")() -- load the separate config file + end, + }, + + -- Snippets + { + "L3MON4D3/LuaSnip", + version = "v2.*", + dependencies = { "rafamadriz/friendly-snippets" }, + build = "make install_jsregexp", + config = function() + -- Call the returned function from your module + require("config.luasnip")() + end, + }, + + -- File Explorer + { "nvim-tree/nvim-tree.lua", config = require("config.tree") }, + + -- Icons + { "nvim-tree/nvim-web-devicons" }, + + -- Color Picker + { "uga-rosa/ccc.nvim", config = require("config.colorpicker") }, + + -- Status Line + { "nvim-lualine/lualine.nvim", config = require("config.statusline"), opts = {} }, + + -- Smooth Scrolling + { "karb94/neoscroll.nvim", opts = {} }, + + -- Telescope + { "nvim-telescope/telescope.nvim", tag = "0.1.8", dependencies = { "nvim-lua/plenary.nvim" }, config = require("config.telescope") }, + + -- Plenary + { "nvim-lua/plenary.nvim" }, + + -- LaTeX + { "lervag/vimtex", ft = "tex", init = require("config.vimtex") }, + + -- 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 + }, + version = "^1.0.0", + config = require("config.tabs"), + }, { "lukas-reineke/indent-blankline.nvim", @@ -113,14 +109,14 @@ return { config = require("config.indent"), }, - -- Dashboard - { "nvimdev/dashboard-nvim", event = "VimEnter", dependencies = { "nvim-tree/nvim-web-devicons" }, config = require("config.dashboard") }, + -- Dashboard + { "nvimdev/dashboard-nvim", event = "VimEnter", dependencies = { "nvim-tree/nvim-web-devicons" }, config = require("config.dashboard") }, -- Hex Editing -- { 'ArcaneSpecs/HexEditor.nvim', - -- config = function() - -- require("config.hex")() -- note the () if your lsp.lua returns a function - -- end, + -- config = function() + -- require("config.hex")() -- note the () if your lsp.lua returns a function + -- end, -- }, 'RaafatTurki/hex.nvim', @@ -182,11 +178,10 @@ return { end, }, - - -- Themes - "martinsione/darkplus.nvim", - "folke/tokyonight.nvim", - "navarasu/onedark.nvim", - "EdenEast/nightfox.nvim" + -- Themes + "martinsione/darkplus.nvim", + "folke/tokyonight.nvim", + "navarasu/onedark.nvim", + "EdenEast/nightfox.nvim" } |
