Customize tabline
This commit is contained in:
parent
6e1060fbaf
commit
8242bdd4c4
3 changed files with 27 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
local function ts_disable(_, bufnr)
|
||||
return vim.api.nvim_buf_line_count(bufnr) > 5000
|
||||
end
|
||||
|
||||
return {
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
|
@ -32,7 +36,7 @@ return {
|
|||
},
|
||||
---@type TSConfig
|
||||
opts = {
|
||||
highlight = { enable = true },
|
||||
highlight = { enable = true, disable = ts_disable },
|
||||
indent = { enable = true },
|
||||
ensure_installed = {
|
||||
"bash",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue