Read configurations from a per-filetype directory or a default location as well as local config file

This commit is contained in:
Ben Jackson 2020-01-17 17:44:17 +00:00 committed by Ben Jackson
commit 583fb95ea0
4 changed files with 55 additions and 18 deletions

View file

@ -515,3 +515,8 @@ def SetSyntax( current_syntax, syntax, *args ):
vim.command( 'set syntax={}'.format( Escape( syntax ) ) )
return syntax
def GetBufferFiletypes( buf ):
ft = ToUnicode( vim.eval( f"getbufvar( {buf.number}, '&ft' )" ) )
return ft.split( '.' )