braceless.vim icon indicating copy to clipboard operation
braceless.vim copied to clipboard

BracelessEnable in ftplugin works but raises error while opening files

Open GohioAC opened this issue 6 years ago • 1 comments

I'm setting BracelessEnable +indent +fold from ftplugin/python.vim.

Error detected while processing path_to_file/nvim/ftplugin/python.vim:
line #num
E492: Not an editor command: BracelessEnable +indent +fold

While it does not affect performance, it's rather annoying. Is this expected behaviour?

Minimal init.vim

if &compatible
  set nocompatible
endif
filetype plugin indent on
syntax enable

call plug#begin('~/.local/share/nvim/plugged')
Plug 'tweekmonster/braceless.vim', {'for': 'python'}
call plug#end()

Braceless settings in python.vim

let g:braceless_generate_scripts = 1
let g:braceless_enable_easymotion = 0
let g:braceless_block_key = 'p'
let g:braceless_enable_jump_indent = 0
let g:braceless_segment_prev_key = ''
let g:braceless_segment_next_key = ''
let g:braceless_format = {}
BracelessEnable +indent +fold
setlocal fillchars=fold:\ 

NVIM v0.3.1

GohioAC avatar Jan 13 '19 05:01 GohioAC

Can confirm, running VIM 8.1 with patches 1-877 on Arch Linux (4.20.11.arch2-1).

rbpatt2019 avatar Feb 25 '19 20:02 rbpatt2019