mirror of
https://github.com/neovim/neovim.git
synced 2026-07-23 09:23:09 +00:00
fix(ftplugin): source inherited Lua ftplugins
Problem:
Vimscript ftplugins that inherit a base ftplugin often use explicit
`runtime! ftplugin/foo.vim` patterns. This skips corresponding Lua
ftplugins, unlike top-level ftplugin loading.
Solution:
Use the existing `{vim,lua}` patterns for bang runtime imports while
preserving each call's current lookup breadth.
This commit is contained in:
committed by
Christian Clason
parent
fd02e91319
commit
0bb2f5cc08
@@ -13,7 +13,7 @@ vim.treesitter.start()
|
||||
-- set omnifunc
|
||||
vim.bo.omnifunc = 'v:lua.vim.treesitter.query.omnifunc'
|
||||
|
||||
vim.opt_local.iskeyword:append('.')
|
||||
vim.api.nvim_set_option_value('iskeyword', '.', { scope = 'local', operation = 'append' })
|
||||
|
||||
-- query linter
|
||||
local buf = vim.api.nvim_get_current_buf()
|
||||
|
||||
Reference in New Issue
Block a user