diff --git a/README.md b/README.md index 773341d..65327c1 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,14 @@ A simple language parser and highlighter made with [tree-sitter](https://github.com/tree-sitter/tree-sitter) +[tokyonight](https://github.com/folke/tokyonight.nvim) +![tokyonight one](images/tokyonight1.png) +![tokyonight two](images/tokyonight2.png) + +[nightfly](https://github.com/bluz71/vim-nightfly-guicolors) +![nightfly one](images/nightfly1.png) +![nightfly two](images/nightfly2.png) + # Using with [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) Please refer to the [adding parsers](https://github.com/nvim-treesitter/nvim-treesitter#advanced-setup) section on the nvim-treesitter page. @@ -38,3 +46,8 @@ This will match any file whose first line is just lowercase letters_and_undersco Than change the config option `filetype = 'dfraw'` and remove the `used_by` option to only use 'dfraw' type files. More information on custom filetypes [here](https://neovim.io/doc/user/filetype.html#new-filetype). + +# Highlight Colors + +Feel free to change the highlight groups set by `highlights.scm`. I have found that some colors schemes use the same or similar colors for different groups. +I have set them to what I like best using the [tokyonight](https://github.com/folke/tokyonight.nvim) theme. diff --git a/images/nightfly1.png b/images/nightfly1.png new file mode 100644 index 0000000..92c54ea Binary files /dev/null and b/images/nightfly1.png differ diff --git a/images/nightfly2.png b/images/nightfly2.png new file mode 100644 index 0000000..d1420c4 Binary files /dev/null and b/images/nightfly2.png differ diff --git a/images/tokyonight1.png b/images/tokyonight1.png new file mode 100644 index 0000000..038512f Binary files /dev/null and b/images/tokyonight1.png differ diff --git a/images/tokyonight2.png b/images/tokyonight2.png new file mode 100644 index 0000000..23b0d47 Binary files /dev/null and b/images/tokyonight2.png differ diff --git a/queries/highlights.scm b/queries/highlights.scm index cfcfbb9..a2e0ddf 100644 --- a/queries/highlights.scm +++ b/queries/highlights.scm @@ -1,5 +1,5 @@ (comment) @comment (string) @string -(number) @number +(number) @type (declaration) @statement -(large) @identifier +(large) @constant