Skip to content

BracelessEnable in ftplugin works but raises error while opening files #51

@GohioAC

Description

@GohioAC

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions