Comments (5)
I have also experienced a bit awkward dimming in markdown. I have set context
to 0 and you can see results below.
I found out that using tree-sitter playground setting I could provide sensible values to expand
option in Twilight config. These three values fix make entire paragraph, code block, and list highlighted.
require("twilight").setup({
context = 0,
expand = {
-- markdown
"paragraph",
"fenced_code_block",
"list",
}
})
I am a bit concerned about possible naming collision in tree-sitter nodes, but I have no clue if it is a valid concern. If it is, then perhaps expand
could be extended to provide values per filetype?
Default config with context = 0
Section and paragraph
Code block
List
from twilight.nvim.
Have you tried tweaking the context
config option?
from twilight.nvim.
Have you tried tweaking the
context
config option?
The issue is sometimes I have more than X lines I need to highlight around the current line.
from twilight.nvim.
Related Issues (20)
- [Feature request] Highlight the whole parent block HOT 1
- [Feature request] Highlight current block entirely HOT 12
- Background is black when using guibg=NONE HOT 5
- Random nvim (nightly) crashes when started in a empty buffer HOT 3
- Auto dimming; not dimming other split/buffers HOT 2
- Not dimming anything HOT 16
- [Feature Request]: Second/Additional non-dimmed area that follows the mouse HOT 3
- Highlighting the current function
- [Feature request] Better document how to customize which text should be visible HOT 4
- [Feature Request] Way to not dim comment above function HOT 3
- Lagging a lot while moving horizontally HOT 3
- [Feature Request] Always highlight entire function when within the function HOT 6
- Highlight line under cursor HOT 3
- Match first node for expand options. HOT 2
- bug: weird highlighting behaviour HOT 4
- Feature request: highlight x lines above and y lines below, w/o treesitter HOT 2
- bug: Dim Inlay Hints HOT 2
- feature: disable twilight for certain filetypes HOT 2
- ask: How to run twilight in lazy?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from twilight.nvim.