@@ -123,25 +123,25 @@ shaders. Shaders are small programs which are run on the graphics card when
123
123
drawing. See https://www.love2d.org/wiki/love.graphics.newShader section
124
124
"Shader Language" for love2d specific aliases.
125
125
126
- This plugin adds additional queries for | treesitter | to support inline GLSL in
127
- specific places. For example when calling `love.graphics.newShader ()` .
126
+ This plugin adds additional queries for Treesitter to support inline GLSL in
127
+ specific places. For example, when calling `love.graphics.newShader ()` .
128
128
129
- For these queries to take effect you need to have `lua ` and `glsl` parsers
130
- installed. Easiest way to do so is by using plugin `nvim- treesitter` from
131
- github https://github.com/nvim-treesitter/nvim-treesitter . After installing
129
+ For these queries to take effect, you need to have `lua ` and `glsl` parsers
130
+ installed. The easiest way to do so is by using the plugin `nvim- treesitter` from
131
+ GitHub https://github.com/nvim-treesitter/nvim-treesitter . After installing
132
132
the plugin, you can run `:TSInstall lua glsl` to install parsers.
133
133
134
- Doing so will enable neovim to "understand" that string inside
135
- `love.graphics.newShader ()` is not just a string, but a `glsl` code. And you
134
+ Doing so will enable Neovim to "understand" that the string inside
135
+ `love.graphics.newShader ()` is not just a string, but `glsl` code. And you
136
136
will get:
137
137
138
138
1. Syntax highlighting for inline shaders.
139
139
2. If you have `Comment .nvim` , it will now properly comment inside shaders.
140
- 3. Plugin `nvim- treesitter- textobjects` , now will work inside shaders.
141
- 4. And any other plugin/feature that depends on treesitter .
140
+ 3. The plugin `nvim- treesitter- textobjects` will now work inside shaders.
141
+ 4. And any other plugin/feature that depends on Treesitter .
142
142
143
- If parsers are installed and plugin is loaded you should see the code below
144
- properly highlighted! (you may have to execute | :edit | to refresh current file)
143
+ If parsers are installed and the plugin is loaded, you should see the code below
144
+ properly highlighted! (You may have to execute | :edit | to refresh the current file)
145
145
146
146
>lua
147
147
love.graphics.newShader([[
0 commit comments