Read configurations from a per-filetype directory or a default location as well as local config file
This commit is contained in:
parent
86afe89d63
commit
583fb95ea0
4 changed files with 55 additions and 18 deletions
|
|
@ -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( '.' )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue