<feed xmlns='http://www.w3.org/2005/Atom'>
<title>neovim/runtime/ftplugin/lua.lua, branch master</title>
<subtitle>Vim-fork focused on extensibility and usability</subtitle>
<id>http://git.waynecole.info/neovim/atom?h=master</id>
<link rel='self' href='http://git.waynecole.info/neovim/atom?h=master'/>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/'/>
<updated>2025-07-15T22:15:16Z</updated>
<entry>
<title>revert: "fix(runtime): set 'foldmethod' for Lua ftplugin #34929" (#34947)</title>
<updated>2025-07-15T22:15:16Z</updated>
<author>
<name>Phạm Bình An</name>
<email>111893501+brianhuster@users.noreply.github.com</email>
</author>
<published>2025-07-15T22:15:16Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=9789a3b854d7f670dd231bdffe1bce0098509539'/>
<id>urn:sha1:9789a3b854d7f670dd231bdffe1bce0098509539</id>
<content type='text'>
This reverts commit 12276832ab67b16f795d78c72386ab28c6ee26c7.</content>
</entry>
<entry>
<title>fix(runtime): set 'foldmethod' for Lua ftplugin #34929</title>
<updated>2025-07-14T12:28:30Z</updated>
<author>
<name>Phạm Bình An</name>
<email>111893501+brianhuster@users.noreply.github.com</email>
</author>
<published>2025-07-14T12:28:30Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=12276832ab67b16f795d78c72386ab28c6ee26c7'/>
<id>urn:sha1:12276832ab67b16f795d78c72386ab28c6ee26c7</id>
<content type='text'>
Problem:
Neovim's Lua ftplugin doesn't set `'foldmethod'`, though Vim one sets it https://github.com/vim/vim/blob/1341176e7b800238b30a137c1ea1a31ca2c3d488/runtime/ftplugin/lua.vim#L66-L68

Solution:
Set it</content>
</entry>
<entry>
<title>fix(runtime): E15: Invalid expression in lua file when `gf`</title>
<updated>2025-03-18T09:10:36Z</updated>
<author>
<name>phanium</name>
<email>91544758+phanen@users.noreply.github.com</email>
</author>
<published>2025-03-18T00:59:48Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=29a47b39ccd0317e815632439966f0f1343d96cf'/>
<id>urn:sha1:29a47b39ccd0317e815632439966f0f1343d96cf</id>
<content type='text'>
Problem:
after https://github.com/neovim/neovim/pull/32719, `gf` error in lua:
```
E15: Invalid expression: "v:lua.require"vim._ftplugin.lua".includeexpr()"
E447: Can't find file "vim._ftplugin.lua" in path
```

Solution:
* use single quote (no idea why there's two pair double quote in
  expression).
* add missing `v:fname`.
</content>
</entry>
<entry>
<title>feat(runtime): Lua ftplugin 'includeexpr' #32719</title>
<updated>2025-03-17T22:41:07Z</updated>
<author>
<name>Phạm Bình An</name>
<email>111893501+brianhuster@users.noreply.github.com</email>
</author>
<published>2025-03-17T22:41:07Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=08c328b8b079334e7fb38472339c4f8ba1a0df3b'/>
<id>urn:sha1:08c328b8b079334e7fb38472339c4f8ba1a0df3b</id>
<content type='text'>
Problem:
Current `'includeexpr'` in runtime/ftplugin/lua.vim doesn't work with Nvim Lua.

Solution:
Provide an improved 'includeexpr' for Lua in "ftplugin/lua.lua".

Closes: https://github.com/neovim/neovim/issues/32490</content>
</entry>
<entry>
<title>feat(runtime): Lua ftplugin sets 'omnifunc', 'foldexpr' #32697</title>
<updated>2025-03-15T16:44:53Z</updated>
<author>
<name>Phạm Bình An</name>
<email>111893501+brianhuster@users.noreply.github.com</email>
</author>
<published>2025-03-15T16:44:53Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=f5714994bc4fc578b5f07bca403e7067e6d9b5a0'/>
<id>urn:sha1:f5714994bc4fc578b5f07bca403e7067e6d9b5a0</id>
<content type='text'>
Problem:
- Many other ftplugin have defined 'omnifunc', but the Lua one doesn't
  define one, even though there is `vim.lua_omnifunc()`
- Users may want "stupid" completion to fix Lua config with
  `nvim --clean` in case they breaks it
- Nvim doesn't port Lua foldexpr from Vim

Solution:
- Set 'omnifunc' to 'v:lua.vim.lua_omnifunc' in ftplugin/lua.lua
- Set 'foldexpr' to use treesitter</content>
</entry>
<entry>
<title>revert "feat(ftplugin): set 'omnifunc' of Lua to 'v:lua.vim.lua_omnifunc'" #32597</title>
<updated>2025-02-23T16:21:24Z</updated>
<author>
<name>Justin M. Keyes</name>
<email>justinkz@gmail.com</email>
</author>
<published>2025-02-23T16:21:24Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=2a733ec6ccbc44dbc37c9cb36dc74bf9bcb8c02c'/>
<id>urn:sha1:2a733ec6ccbc44dbc37c9cb36dc74bf9bcb8c02c</id>
<content type='text'>
This reverts commit f398e3a61abbf802b49867d2f533be1b0725c0d7.</content>
</entry>
<entry>
<title>feat(ftplugin): set Lua 'omnifunc' to vim.lua_omnifunc #32491</title>
<updated>2025-02-23T15:57:16Z</updated>
<author>
<name>Phạm Bình An</name>
<email>111893501+brianhuster@users.noreply.github.com</email>
</author>
<published>2025-02-23T15:57:16Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=f398e3a61abbf802b49867d2f533be1b0725c0d7'/>
<id>urn:sha1:f398e3a61abbf802b49867d2f533be1b0725c0d7</id>
<content type='text'>
Problem:
- Many other ftplugin have defined 'omnifunc', but the Lua one doesn't
  define one, even though there is `vim.lua_omnifunc()`
- Users may want "stupid" completion to fix Lua config with
  `nvim --clean` in case they breaks it

Solution:
Set 'omnifunc' to 'v:lua.vim.lua_omnifunc' in ftplugin/lua.lua</content>
</entry>
<entry>
<title>fix(runtime): treat b:undo_ftplugin consistently in Lua ftplugins (#30473)</title>
<updated>2024-09-23T08:49:34Z</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2024-09-23T08:49:34Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=50577534318bbf8c1e22e80a74baa3b20c131ea8'/>
<id>urn:sha1:50577534318bbf8c1e22e80a74baa3b20c131ea8</id>
<content type='text'>
- Don't assume b:undo_ftplugin is set when first modifying it.
- Don't assume b:undo_ftplugin already contains some resetting.</content>
</entry>
<entry>
<title>fix(runtime): stop treesitter highlight in b:undo_ftplugin (#29533)</title>
<updated>2024-07-03T07:24:12Z</updated>
<author>
<name>zeertzjq</name>
<email>zeertzjq@outlook.com</email>
</author>
<published>2024-07-03T07:24:12Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=12c9791e0fef7ee0d6cf6d3b828caa488d6347ea'/>
<id>urn:sha1:12c9791e0fef7ee0d6cf6d3b828caa488d6347ea</id>
<content type='text'>
It seems that nvim-treesitter stops treesitter highlight when changing
filetype, so it makes sense for builtin ftplugins to do this as well.

Use :call and v:lua here to allow separation with '|'.</content>
</entry>
<entry>
<title>feat(treesitter): highlight Lua files by default (#26824)</title>
<updated>2024-01-01T14:37:07Z</updated>
<author>
<name>Christian Clason</name>
<email>c.clason@uni-graz.at</email>
</author>
<published>2024-01-01T14:37:07Z</published>
<link rel='alternate' type='text/html' href='http://git.waynecole.info/neovim/commit/?id=f69658bc355e130fc2845a8e0edc8baa4f256329'/>
<id>urn:sha1:f69658bc355e130fc2845a8e0edc8baa4f256329</id>
<content type='text'>
</content>
</entry>
</feed>
