mirror of
				https://github.com/neovim/neovim.git
				synced 2025-10-26 12:27:24 +00:00 
			
		
		
		
	fix(runtime): E15: Invalid expression in lua file when gf
				
					
				
			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`.
This commit is contained in:
		 phanium
					phanium
				
			
				
					committed by
					
						 Christian Clason
						Christian Clason
					
				
			
			
				
	
			
			
			 Christian Clason
						Christian Clason
					
				
			
						parent
						
							d40481322a
						
					
				
				
					commit
					29a47b39cc
				
			| @@ -1,7 +1,7 @@ | |||||||
| -- use treesitter over syntax | -- use treesitter over syntax | ||||||
| vim.treesitter.start() | vim.treesitter.start() | ||||||
|  |  | ||||||
| vim.bo.includeexpr = 'v:lua.require"vim._ftplugin.lua".includeexpr()' | vim.bo.includeexpr = [[v:lua.require'vim._ftplugin.lua'.includeexpr(v:fname)]] | ||||||
| vim.bo.omnifunc = 'v:lua.vim.lua_omnifunc' | vim.bo.omnifunc = 'v:lua.vim.lua_omnifunc' | ||||||
| vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()' | vim.wo[0][0].foldexpr = 'v:lua.vim.treesitter.foldexpr()' | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user