lukas-reineke / lsp-format.nvim

A wrapper around Neovims native LSP formatting.
564 stars 27 forks source link

Example config leads to lua error #5

Closed cgsimmons closed 3 years ago

cgsimmons commented 3 years ago

Just setting up with the base example from the help file leads to lua error

Example init.vim

lua require "format".setup {
    lua = {
        {cmd = {"luafmt -w replace"}}
    }
}

Error

Error detected while processing /home/creztoe/.config/nvim/init.vim:
line  164:
E5104: Error while creating lua chunk: [string "<VimL compiled string>"]:1: unexpected symbol near '<eof>'
line  165:
E5104: Error while creating lua chunk: [string "<VimL compiled string>"]:1: unexpected symbol near '='
line  166:
E492: Not an editor command:         {cmd = {"luafmt -w replace"}}
line  167:
E492: Not an editor command:     }
line  168:
E492: Not an editor command: }
cgsimmons commented 3 years ago

Ahh, just the embedded syntax block thing