Skip to content

Commit

Permalink
feat(treesitter): highlight Lua files by default (#26824)
Browse files Browse the repository at this point in the history
  • Loading branch information
clason committed Jan 1, 2024
1 parent bcd111b commit f69658b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions runtime/doc/news.txt
Expand Up @@ -300,6 +300,7 @@ The following changes to existing APIs or features add new behavior.
<
• Enabled treesitter highlighting for treesitter query files.
• Enabled treesitter highlighting for help files.
• Enabled treesitter highlighting for Lua files.

• The `workspace/didChangeWatchedFiles` LSP client capability is now enabled
by default.
Expand Down
2 changes: 2 additions & 0 deletions runtime/ftplugin/lua.lua
@@ -0,0 +1,2 @@
-- use treesitter over syntax
vim.treesitter.start()

0 comments on commit f69658b

Please sign in to comment.