Compare commits

..

No commits in common. "2408ad807b717834d9645b1ac1994732bbc505e8" and "0e5d344b74d74487dad8f93307c8678ebfadb177" have entirely different histories.

2 changed files with 11 additions and 24 deletions

View File

@ -1,9 +1,6 @@
return { return {
"lewis6991/gitsigns.nvim", "lewis6991/gitsigns.nvim",
opts = { opts = {
watch_index = {
interval = 1000, -- 設定更新的時間間隔
},
signs = { signs = {
add = { text = "" }, add = { text = "" },
change = { text = "" }, change = { text = "" },
@ -29,7 +26,7 @@ return {
follow_files = true follow_files = true
}, },
auto_attach = true, auto_attach = true,
attach_to_untracked = true, attach_to_untracked = false,
current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = true, -- Toggle with `:Gitsigns toggle_current_line_blame`
current_line_blame_opts = { current_line_blame_opts = {
virt_text = true, virt_text = true,
@ -54,13 +51,13 @@ return {
on_attach = function(buffer) on_attach = function(buffer)
-- 處理無狀態時的佔位符號 -- 處理無狀態時的佔位符號
vim.wo.signcolumn = "yes" vim.wo.signcolumn = "yes"
-- -- 添加一個空白占位符 -- 添加一個空白占位符
-- vim.fn.sign_define("GitSignsPlaceholder", { text = " ", texthl = "NonText" }) vim.fn.sign_define("GitSignsPlaceholder", { text = " ", texthl = "NonText" })
-- -- 在沒有 Git 變更時手動放置占位符 -- 在沒有 Git 變更時手動放置占位符
-- local line_count = vim.api.nvim_buf_line_count(buffer) local line_count = vim.api.nvim_buf_line_count(buffer)
-- for lnum = 1, line_count do for lnum = 1, line_count do
-- vim.fn.sign_place(0, "GitSignsPlaceholderGroup", "GitSignsPlaceholder", buffer, { lnum = lnum }) vim.fn.sign_place(0, "GitSignsPlaceholderGroup", "GitSignsPlaceholder", buffer, { lnum = lnum })
-- end end
-- 其他預設動作 -- 其他預設動作
local gs = package.loaded.gitsigns local gs = package.loaded.gitsigns

View File

@ -1,9 +1,4 @@
return { return {
{ 'plasticboy/vim-markdown',
config = function()
vim.g.vim_markdown_folding_disabled = 1
end,
},
{ {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
cond = function() cond = function()
@ -20,23 +15,18 @@ return {
-- <https://github.com/nvim-treesitter/nvim-treesitter#supported-languages> -- <https://github.com/nvim-treesitter/nvim-treesitter#supported-languages>
ensure_installed = { ensure_installed = {
"regex", "regex",
"bash",
"html",
"javascript",
"json",
"lua", "lua",
"markdown",
"markdown_inline",
"python",
"php", "php",
"python",
"go", "go",
"html", "html",
"css", "css",
"javascript"
}, },
highlight = { highlight = {
enable = true, -- 啟用高亮 enable = true, -- 啟用高亮
}, },
-- indent = { enable = true }, indent = { enable = true },
}) })
end, end,
}, },