Comments (3)
I'm more than willing to support any language at all. The reason there is no support for c at this moment is that nobody who regularly uses it has added support for it yet. I will happily merge a pull request that adds c support. To do this, you will need to add a file at autoload/neomake/makers/c.vim
. A good minimal example of what this file should look like can be found at autoload/neomake/makers/ruby.vim
. It might look roughly like this:
" vim: ts=4 sw=4 et
function! neomake#makers#c#EnabledMakers()
return ['gcc']
endfunction
function! neomake#makers#c#gcc()
return {
\ 'args': ['-Wall', '{OTHER_ARGS_HERE}'],
\ 'errorformat': '{REASONABLE_ERROR_FORMAT_HERE}'
\ }
endfunction
Then you just fill in the blanks.
from neomake.
I should also mention that if you want to get up and running quickly for yourself, you have a couple of options apart from modifying the plugin source code.
- Set your
makeprg
anderrorformat
to whatever you use for c coding. If yourmakeprg
can take a filename as an argument, then running:Neomake
will just work. If it doesn't take an argument like that, you can run the command with no arguments in vim's current directory by running:Neomake!
(note the exclamation point). - Set up a linter like this:
let g:neomake_c_enabled_makers = ['gcc']
let g:neomake_c_gcc_maker = {
\ 'exe': 'gcc',
\ 'errorformat': '{WHATEVER_YOU_USE}',
\ 'args': ['{WHATEVER_YOU_USE}']
\ }
And run it on a c file using :Neomake!
. As long as the executable takes a single file as input and your errorformat is accurate, it should just work.
from neomake.
#36 and #37 add c++ and c support respectively with clang.
from neomake.
Related Issues (20)
- [QUESTION] How the change clangcheck to use -std=c++2a? HOT 2
- [REQUEST] PLEASE UPDATE THE D MAKERS FILE! HOT 1
- Neomake quickfix not opening lnum: 0 bufnr: 0 ... HOT 3
- Aditional Arguments to clang maker not working HOT 2
- golang build tags can't set
- "E788: Not allowed to edit another buffer now" when opening the locations window HOT 1
- "Key not present in Dictionary: "maker_jobs)"" with automake HOT 2
- eslint does not show linting errors (rubocop does show) HOT 9
- option for using quickfix list only HOT 4
- Making C++ header files results in uncleaned `.gch` files
- Run eslint for the whole project
- How to define maker that only supports project mode HOT 1
- Default ruby maker does not work with ruby version >= 3 HOT 2
- python: frosted is deprecated in favor of flake8
- g:neomake_logfile variable expansion not working homedir: ie., $HOME and ~ HOT 2
- Make neomake pick local tsc executable HOT 3
- feature: on/off switch to exclusively report to vim.diagnostic HOT 1
- Temporary files left over HOT 2
- Neomake: Exe (ruby-lint) of maker rubylint is not executable. HOT 2
- ansible-lint not working due to incorrect errorformat
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neomake.