robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
f907614088
master
1-- Tests for not doing smart indenting when it isn't set. 2 3local n =require ( 'test.functional.testnvim' )() 4local t =require ( 'test.testutil' ) 5 6local describe , it , before_each =t . describe , t . it , t . before_each 7local feed =n . feed 8local clear =n . clear 9local insert =n . insert 10local expect =n . expect 11local feed_command =n . feed_command 12 13describe ( 'unset smart indenting' , function () 14before_each ( clear ) 15 16it ( 'is working' , function () 17insert ( [[ 18start text 19some test text 20test text 21test text 22test text]] ) 23 24feed_command ( 'set nocin nosi ai' ) 25feed_command ( '/some' ) 26feed ( '2cc#test<Esc>' ) 27 28expect ( [[ 29start text 30#test 31test text 32test text]] ) 33end ) 34end )