feat nvim: listchars & o-plugin framework

This commit is contained in:
2025-04-28 20:22:22 +08:00
parent 9e351f31d0
commit fa9018d3b5
4 changed files with 39 additions and 7 deletions

View File

@@ -24,8 +24,11 @@ vim.opt.rtp:prepend(lazypath)
-- Setup lazy.nvim
require("lazy").setup({
spec = {
-- import your plugins
-- 自動載入 plugins 資料夾中的所有插件
{ import = "plugins" },
-- 手動引入 o-plugins 資料夾中的插件
-- require("o-plugins.nvim-listchars"),
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.

View File

@@ -0,0 +1,14 @@
-- vim.opt.listchars = {
-- eol = "¬",
-- tab = "→→",
-- trail = ".",
-- extends = ">",
-- precedes = "<"
-- }
vim.opt.listchars = {
trail = "-",
eol = "",
tab = "» ",
space = "·",
}

View File

@@ -19,12 +19,7 @@ vim.opt.expandtab = true -- 使用空格代替tab
vim.opt.termguicolors = true -- 支持真彩色
vim.opt.colorcolumn = "80,120" -- 顯示編輯器建議寬度
vim.opt.scrolloff = 3 -- 捲動時保留 n 行彈性
vim.opt.listchars = {
eol = "¬",
tab = "→→",
trail = ".",
extends = ">",
precedes = "<" }
require("config.listchars") -- 顯示行尾符號
vim.opt.list = true
-- 整行移動的快速鍵