From 05b8bbc938bdeac4a5ee2d3ae5cf7a7f05e822d3 Mon Sep 17 00:00:00 2001 From: Adam Stankiewicz Date: Fri, 1 Jan 2021 22:30:41 +0100 Subject: Fix loading for vim 8 packages, closes #613 --- autoload/jsx_pretty/comment.vim | 2 +- autoload/jsx_pretty/indent.vim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'autoload/jsx_pretty') diff --git a/autoload/jsx_pretty/comment.vim b/autoload/jsx_pretty/comment.vim index 39157d19..f9ae5b18 100644 --- a/autoload/jsx_pretty/comment.vim +++ b/autoload/jsx_pretty/comment.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand(':p'), 'jsx', 'autoload/jsx_pretty/comment.vim') finish endif diff --git a/autoload/jsx_pretty/indent.vim b/autoload/jsx_pretty/indent.vim index ee4859ce..f45316b2 100644 --- a/autoload/jsx_pretty/indent.vim +++ b/autoload/jsx_pretty/indent.vim @@ -1,4 +1,4 @@ -if has_key(g:polyglot_is_disabled, 'jsx') +if polyglot#init#is_disabled(expand(':p'), 'jsx', 'autoload/jsx_pretty/indent.vim') finish endif -- cgit v1.2.3