aboutsummaryrefslogtreecommitdiff
path: root/lua/themes
AgeCommit message (Collapse)AuthorFilesLines
2024-07-26add missing lexer specific styles to solarized themeMatěj Cepl1-0/+120
This is a parallel to https://github.com/martanne/vis/pull/1197 Signed-off-by: Matěj Cepl <mcepl@cepl.eu>
2024-07-04Add additional html style tags to base-16.luajvvv1-0/+2
This closes https://github.com/martanne/vis/issues/1196.
2024-05-03lua: themes: add `STYLE_CODE`Thim Cederlund1-1/+2
used by the following lexers: gemini, markdown and txt2tags to highlight sections of code.
2024-04-30lua: uncomment list of lexer specific styles in default themeRandy Palamar1-2/+0
2024-03-27lua: update default themesRandy Palamar1-0/+121
This also involves modifying the style definitions so that they include sub tags as well. For example command.section in latex should be mapped to COMMAND_SECTION.
2024-03-25ui: refactor style handlingRandy Palamar5-47/+8
The old style handling had a lot edge cases where one of the colours or the attribute wouldn't get applied correctly. This commit adds a new style_set() method to the Ui which should be called instead of manually touching a cell's style. This also means that the Cell struct can be made opaque since all the handling is now done inside the ui-terminal files. With this it is now viable to combine the light and dark 16 colour themes into a single base-16 theme. This theme works very well with the Linux virtual console and will now be the default theme regardless of if the terminal supports 256 colours or not. This should address the common complaints about vis not respecting the users default terminal colours. fixes #1151: Theming is sometimes partially applied or ignored see #1103: terminal no longer has transparency/opacity see #1040: Transparent background and setting options by default
2022-11-29Resync the lexers with Scintilluaqiu-x1-4/+4
- Resync the lexers with Scintillua - Update the lexer readme - Update `zenburn` theme to fix some highlighting issues - lexers: redirect print function to vis:info() - Fix support for custom style names - As per error message "lexer.delimited_range() is deprecated, use lexer.range()". - Remove remaining `lexer.delimited_range()` call - Set syntax to `nil` if the file type has no matching lexer - Updated Go lexer for Go 1.18. - lexers/dsv: convert to new lexer format (cherry picked from commit 9edbc3cd9ea1d7142b1305840432a3d2739e755a) - lexers/gemini: disable legacy gemini lexer This reverts commit 468f9ee1b027a7ce98b1a249fa1af5888feeb989. It is in legacy format and of questionable quality. Ideally it should be contributed upstream from where it will eventually trickle down to us. - lexers/git-rebase: convert to new lexer format (cherry picked from commit 4000a4cc9ac4a4c2869dfae772b977a82aee8d8c) - lexers/strace: convert to new lexer format (cherry picked from commit e420451320d97eb164f5629c1bcfab0b595be29d) - lexers/typescript: add new upstream lexer revision 28e2b60 (cherry picked from commit 7326e6deecdaa75fa94ae9ebdb653f9f907b33f2) - use `package.searchpath` instead of a local `searchpath` function - Restore `filetype: support filetype detection via hashbang` - Remove redundant comment - Restore gemini lexer
2018-07-27solarized themed terms do not need bg and fg set againxcko1-0/+4
2017-10-23themes: add zenburn and make it the default 256 themeChris Rawnsley2-1/+40
2017-06-10More theme improvementsPhilipp Emanuel Weidmann3-1/+4
2017-06-05themes: simplify color definitionMarc André Tanner1-16/+16
2017-06-04Improve appearance of line numbers and EOF markersPhilipp Emanuel Weidmann1-2/+2
2017-03-15Make Vis' Solarized theme match the official Vim one.Tim Allen1-2/+2
2017-03-14Restructure display codeMarc André Tanner3-1/+16
Use pull instead of push based model for display code. Previously view.c was calling into the ui frontend code, with the new scheme this switches around: the necessary data is fetched by the ui as necessary. The UI independent display code is moved out of view.c/ui-curses.c into vis.c. The cell styles are now directly embedded into the Cell struct. New UI styles are introduced for: - status bar (focused / non-focused) - info message - window separator - EOF symbol You will have to update your color themes. The terminal output code is further abstracted into a generic ui-terminal.c part which keeps track of the whole in-memory cell matrix and #includes ui-terminal-curses.c for the actual terminal output. This architecture currently assumes that there are no overlapping windows. It will also allow non-curses based terminal user interfaces.
2017-03-05lua: fix more luacheck warningsMarc André Tanner1-1/+1
2017-01-05theme: pretend that specifying color numbers doesn't workS. Gilles1-16/+16
2016-12-07Move all lua related files to lua/ subfolderMarc André Tanner5-0/+123
Also remove the lexers sub directory from the Lua search path. As a result we attempt to open fewer files during startup: $ strace -e open -o log ./vis +q config.h && wc -l log In order to avoid having to modifiy all lexers which `require('lexer')` we instead place a symlink in the top level directory. $ ./configure --disable-lua $ rm -rf lua Should result in a source tree with most lua specifc functionality removed.