Skip to content

Commit

Permalink
docs: update main README
Browse files Browse the repository at this point in the history
  • Loading branch information
shellRaining committed May 19, 2023
1 parent b0f6fbc commit 53cfe6a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 68 deletions.
37 changes: 4 additions & 33 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,30 +98,16 @@ The script comes with the following defaults:
chunk = {
enable = true,
use_treesitter = true,
support_filetypes = {
"*.ts",
"*.tsx",
"*.js",
"*.jsx",
"*.html",
"*.json",
"*.go",
"*.c",
"*.cpp",
"*.rs",
"*.h",
"*.hpp",
"*.lua",
"*.vue",
},
chars = {
horizontal_line = "",
vertical_line = "",
left_top = "",
left_bottom = "",
right_arrow = ">",
},
style = "#00ffff",
style = {
{ fg = "#806d9c" },
},
},

indent = {
Expand All @@ -131,27 +117,13 @@ The script comes with the following defaults:
"",
},
style = {
FN.synIDattr(FN.synIDtrans(FN.hlID("Whitespace")), "fg", "gui"),
},
exclude_filetype = {
dashboard = true,
help = true,
lspinfo = true,
packer = true,
checkhealth = true,
man = true,
mason = true,
NvimTree = true,
plugin = true,
{ fg = vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Whitespace")), "fg", "gui") }
},
},

line_num = {
enable = true,
use_treesitter = false,
support_filetypes = {
"..." -- same as chunk
},
style = "#806d9c",
},

Expand All @@ -163,7 +135,6 @@ The script comes with the following defaults:
style = {
vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Whitespace")), "fg", "gui"),
},
exclude_filetype = "...",
},
}
```
Expand Down
37 changes: 4 additions & 33 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,30 +99,16 @@ Plug "shellRaining/hlchunk.nvim"
chunk = {
enable = true,
use_treesitter = true,
support_filetypes = {
"*.ts",
"*.tsx",
"*.js",
"*.jsx",
"*.html",
"*.json",
"*.go",
"*.c",
"*.cpp",
"*.rs",
"*.h",
"*.hpp",
"*.lua",
"*.vue",
},
chars = {
horizontal_line = "",
vertical_line = "",
left_top = "",
left_bottom = "",
right_arrow = ">",
},
style = "#00ffff",
style = {
{ fg = "#806d9c" },
},
},

indent = {
Expand All @@ -132,27 +118,13 @@ Plug "shellRaining/hlchunk.nvim"
"",
},
style = {
FN.synIDattr(FN.synIDtrans(FN.hlID("Whitespace")), "fg", "gui"),
},
exclude_filetype = {
dashboard = true,
help = true,
lspinfo = true,
packer = true,
checkhealth = true,
man = true,
mason = true,
NvimTree = true,
plugin = true,
{ fg = vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Whitespace")), "fg", "gui") }
},
},

line_num = {
enable = true,
use_treesitter = false,
support_filetypes = {
"..." -- same as chunk
},
style = "#806d9c",
},

Expand All @@ -164,7 +136,6 @@ Plug "shellRaining/hlchunk.nvim"
style = {
vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Whitespace")), "fg", "gui"),
},
exclude_filetype = "...",
},
}
```
Expand Down
4 changes: 2 additions & 2 deletions lua/hlchunk/mods/chunk.lua
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ local chunk_mod = BaseMod:new({
name = "chunk",
options = {
enable = true,
use_treesitter = false,
use_treesitter = true,
support_filetypes = ft.support_filetype,
exclude_filetype = ft.exclude_filetype,
chars = {
Expand All @@ -19,7 +19,7 @@ local chunk_mod = BaseMod:new({
right_arrow = ">",
},
style = {
"#806d9c",
{ fg = "#806d9c" },
},
},
})
Expand Down

0 comments on commit 53cfe6a

Please sign in to comment.