Skip to content

Syntax checker #4

Open
Open

Description

@jean553

Does neovim actually checks the syntax ? In fact, I get no error when writing simple syntax errors as e piston_window::*; instead of use piston_window::* or f main() instead of fn main(). Is there anyway to enable syntax check (like syntastic) in your container ?

Activity

  1. allan-simon commented on Aug 6, 2017

    @allan-simon
    Owner

    can you give me an exemple project ?
    also have you tried with a simple main.rs from a brand new project , to be here you're not hitting some corner case (after all the whole ecosystem is still in alpha)

  2. allan-simon commented on Aug 6, 2017

    @allan-simon
    Owner

    what happen when you do in /tmp a cargo init and you start filling the main function with some code ?

  3. allan-simon commented on Aug 6, 2017

    @allan-simon
    Owner

    this is for the "realtime" check synta, if you want to have the check like with syntastic add this to your

    ~/.config/nvim/init.vim

    " Neomake configuration.
    augroup my_neomake_cmds
        autocmd  " <= not sure this line is actually necessary
        " Have neomake run cargo when Rust files are saved.
        autocmd BufWritePost *.rs Neomake cargo
    augroup END
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions