swekaj / php-foldexpr.vim

Vim folding for PHP with foldexpr
MIT License
41 stars 10 forks source link

Configuration not being applied #27

Open PZ01 opened 6 years ago

PZ01 commented 6 years ago

I added the following configuration variables to my .vimrc:

let b:phpfold_text_right_lines=1
let b:phpfold_text_percent = 0
let b:phpfold_doc_with_funcs=0        
let b:phpfold_docblocks=1
+--   12 lines: public __construct() {...} - StylesController constructor.-----------------------------------------------------------------------------------------------
  4 
  3 
  2 +--  190 lines: public index() {...}-------------------------------------------------------------------------------------------------------------------------------------
  1 
227 +--   34 lines: public show() {...} - Display the specified resource.----------------------------------------------------------------------------------------------------
  1 
  2 +--   27 lines: public updateSingleStyleSizingChart() {...}--------------------------------------------------------------------------------------------------------------
  3 
  4 +--   27 lines: public updateSingleSizingChartException() {...}----------------------------------------------------------------------------------------------------------
  5 
  6 +--   47 lines: public updateMultiSizingChartExceptions() {...}-----------

I don't seem to see the right-alignment and the default behavior of the function + doc folding seems to be persist even if I set the doc_with_func to false.

I'm using the following version:

VIM - Vi IMproved 8.0 (2016 Sep 12, compiled Mar 14 2018 14:26:22)
Included patches: 1-1605
baxter2 commented 1 year ago

Did you set the fold method to expr like so:

" .vimrc

set foldmethod=expr

You can check what it's currently set to in your buffer by running :set foldmethod? you want that to return foldmethod=expr