preservim / nerdcommenter

Vim plugin for intensely nerdy commenting powers
Creative Commons Zero v1.0 Universal
4.99k stars 450 forks source link

E15: Invalid expression: delim #449

Open marzdgzmn opened 3 years ago

marzdgzmn commented 3 years ago

When I create a new file via nvim . and comment a line via <leader>cc, I get these errors:

E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[9]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[10]..44_IsInSexyComment[1]..44_FindBoundingLinesOfSexyCom[5]..44_Multipart[1]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[10]..44_IsInSexyComment[1]..44_FindBoundingLinesOfSexyCom[8]..44_AltMultipart: line 1: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: b:NERDCommenterDelims['rightAlt'] !=# '' Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[14]..44_IsCommentedNormOrSexy[4]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[14]..44_IsCommentedNormOrSexy[4]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[14]..44_IsCommentedNormOrSexy[4]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[14]..44_IsCommentedNormOrSexy[4]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[14]..44_IsCommentedNormOrSexy[9]..44_IsInSexyComment[1]..44_FindBoundingLinesOfSexyCom[5]..44_Multipart[1]..<SNR

44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[19]..44_CanCommentLine[14]..44_IsCommentedNormOrSexy[9]..44_IsInSexyComment[1]..44_FindBoundingLinesOfSexyCom[8]..44_AltMultipart: line 1: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: b:NERDCommenterDelims['rightAlt'] !=# '' Error detected while processing function NERDComment[34]..44_CommentLines[22]..44_Nested: line 1: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: b:NERDCommenterDelims['nested'] Error detected while processing function NERDComment[34]..44_CommentLines[23]..44_SwapOuterMultiPartDelimsForPlaceHolders[3]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[23]..44_SwapOuterMultiPartDelimsForPlaceHolders[3]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[23]..44_SwapOuterMultiPartDelimsForPlaceHolders[4]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[23]..44_SwapOuterMultiPartDelimsForPlaceHolders[4]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[28]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[28]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[28]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[28]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[35]..44_Left: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['leftAlt'] : b:NERDCommenterDelims['left'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim Error detected while processing function NERDComment[34]..44_CommentLines[40]..44_Right: line 3: E121: Undefined variable: b:NERDCommenterDelims E15: Invalid expression: has_key(params, 'alt') ? b:NERDCommenterDelims['rightAlt'] : b:NERDCommenterDelims['right'] line 5: E121: Undefined variable: delim E15: Invalid expression: delim ==# '' line 17: E121: Undefined variable: delim E15: Invalid expression: delim

alerque commented 3 years ago

create a new file

How exactly do you do this? What filetype ends up being set in the resulting buffer?

washtubs commented 3 years ago

I don't know how this is possible but this happens to me when I require 'lspconfig'.sumneko_lua.setup {}. I literally narrowed it to this specific lspconfig of the 3 I have installed. Sorry I can't be more help, but I'm just disabling it for now cause I don't use it.

Presumably it's happening somewhere here: https://github.com/neovim/nvim-lspconfig/blob/master/lua/lspconfig/sumneko_lua.lua