From aae60509e87188fc49451155bd65bcd27a79dc17 Mon Sep 17 00:00:00 2001 From: wsdjeg Date: Sun, 30 Oct 2022 19:37:01 +0800 Subject: [PATCH] feat(lang#c): remove invalid entries from neomake --- autoload/SpaceVim/layers/lang/c.vim | 3 +++ docs/layers/lang/c.md | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/autoload/SpaceVim/layers/lang/c.vim b/autoload/SpaceVim/layers/lang/c.vim index 0af96546a..a79701b49 100644 --- a/autoload/SpaceVim/layers/lang/c.vim +++ b/autoload/SpaceVim/layers/lang/c.vim @@ -216,7 +216,10 @@ function! SpaceVim#layers#lang#c#config() abort let g:neomake_c_enabled_makers = ['clang'] let g:neomake_cpp_enabled_makers = ['clang'] endif + let g:neomake_c_clang_remove_invalid_entries = 1 + let g:neomake_cpp_clang_remove_invalid_entries = 1 let g:neomake_c_gcc_remove_invalid_entries = 1 + let g:neomake_cpp_gcc_remove_invalid_entries = 1 let g:chromatica#enable_at_startup = 0 let g:clighter_autostart = 0 augroup SpaceVim_lang_c diff --git a/docs/layers/lang/c.md b/docs/layers/lang/c.md index 075af0675..8b9edfc65 100644 --- a/docs/layers/lang/c.md +++ b/docs/layers/lang/c.md @@ -32,6 +32,12 @@ To use this configuration layer, update the custom configuration file with: name = "lang#c" ``` +for windows users, if you want to install llvm without vs build tools, you can install [mingw-winlibs-llvm](https://winlibs.com/): + +``` +scoop install mingw-winlibs-llvm +``` + ## Features - code completion