Salt is necessary for lactic fermentation of vegetables. It is one of several components to creating a successful lactic acid ferment. Lactic acid lowers the pH of its environment rapidly, and to the point where competing, problematic organisms can't grow. You will probably need 2% salt at a minimum, but slightly higher amounts of salt will give you more wiggle room on safety. The temperature also matters, as this will impact the speed of fermentation. Further, you want to keep your ferment in an anaerobic environment (no oxygen exposure, such as submerged under a brine). So, there are a few variables to consider. To be more confident, and if you are a novice, you might want to measure the pH of your finished product, aiming for 4.6 or lower. There is a ton of information on the internets about the lactic fermentation of vegetables. It is not difficult to do, but before you start playing around with minimum amounts of salt, you should be absolutely sure about the mechanisms of the process so that you don't get yourself, or someone else, sick.