Add filetype config

Use view.entries == 'native' instead of experimental.native_menu
This commit is contained in:
hrsh7th
2022-02-11 15:20:24 +09:00
parent ad3c1adbc3
commit 26a9184c88
7 changed files with 179 additions and 86 deletions

View File

@@ -26,7 +26,7 @@ vim.cmd [[
]]
misc.set(_G, { 'cmp', 'plugin', 'cmdline', 'enter' }, function()
if config.get().experimental.native_menu then
if config.is_native_menu() then
return
end
if vim.fn.expand('<afile>')~= '=' then