aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Clason <c.clason@uni-graz.at>2024-01-01 15:37:07 +0100
committerGitHub <noreply@github.com>2024-01-01 15:37:07 +0100
commitf69658bc355e130fc2845a8e0edc8baa4f256329 (patch)
tree86f3a87ce3558b5f2b298b4142cf1f31b0b205c4
parentbcd111bd12b9d6db58a88fac728fc51af4d96c12 (diff)
downloadrneovim-f69658bc355e130fc2845a8e0edc8baa4f256329.tar.gz
rneovim-f69658bc355e130fc2845a8e0edc8baa4f256329.tar.bz2
rneovim-f69658bc355e130fc2845a8e0edc8baa4f256329.zip
feat(treesitter): highlight Lua files by default (#26824)
-rw-r--r--runtime/doc/news.txt1
-rw-r--r--runtime/ftplugin/lua.lua2
2 files changed, 3 insertions, 0 deletions
diff --git a/runtime/doc/news.txt b/runtime/doc/news.txt
index abba8fbd75..112a76c013 100644
--- a/runtime/doc/news.txt
+++ b/runtime/doc/news.txt
@@ -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.
diff --git a/runtime/ftplugin/lua.lua b/runtime/ftplugin/lua.lua
new file mode 100644
index 0000000000..98f218e36e
--- /dev/null
+++ b/runtime/ftplugin/lua.lua
@@ -0,0 +1,2 @@
+-- use treesitter over syntax
+vim.treesitter.start()