elzr / vim-json

A better JSON for Vim: distinct highlighting of keywords vs values, JSON-specific (non-JS) warnings, quote concealing. Pathogen-friendly.
Other
1.23k stars 111 forks source link

warnings not being displayed at all #96

Open prankousky opened 5 years ago

prankousky commented 5 years ago

Hi,

I just installed the plugin and tried the sample json file. None of the errors will be displayed. Even when I insert complete gibberish text and numbers, they will not be recognized as false input.

I tried let g:vim_json_warnings = 1 (which I assume is the standard value anyway, right?), but there is nothing.

I have also looked through the issues here and found somebody's manual snippet to add ti $MYVIMRC, which kinda worked: some errors would be displayed (incorrect colons/semicolons), but not things like this

{
hi mom
afwgwöjng
wef0ü
"something:" somethingles.132
}

this should all be wrong, but nothing got marked as incorrect; same for the sample.json, the errors there would not be marked in red.

What am I doing wrong?

I am using plugged as my plugin manager, use vim_airline and colorscheme onedark, if that is of any help. gvim --version ==> VIM - VI IMproved 8.1 (2018 May 18 compiled Mar 29 2019).

Thanks in advance for your help :)

UzK98fYoE commented 4 years ago

I'm seeing the same thing with neovim:

:version
NVIM v0.3.8
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -g -O2 -fdebug-prefix-map=/build/neovim-lpKDO8/neovim-0.3.8=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=1 -DDISABLE_LOG -Wdate-time -D_FORT
IFY_SOURCE=1 -Wconversion -O2 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=au
to -Wno-array-bounds -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/build/neovim-lpKDO8/neovim-0.3.8/build/config -I/build/neovim-lpKDO8/neovim-0.3.8/src
-I/usr/include -I/build/neovim-lpKDO8/neovim-0.3.8/build/src/nvim/auto -I/build/neovim-lpKDO8/neovim-0.3.8/build/include
Compiled by team+vim@tracker.debian.org

Features: +acl +iconv -jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "/usr/share/nvim"

Run :checkhealth for more info
Press ENTER or type command to continue
call plug#begin('~/.vim/plugged')
" Plugs
  Plug 'airblade/vim-gitgutter'
  Plug 'tpope/vim-commentary'
  Plug 'tpope/vim-endwise'
  Plug 'tpope/vim-fugitive' " Causes pumvisible to appear when using COC's pumvisible <cr>
  Plug 'tpope/vim-surround'
  Plug 'tpope/vim-unimpaired'
  Plug 'raimondi/delimitmate'
  Plug 'scrooloose/nerdtree'
  Plug 'scrooloose/syntastic'
  Plug 'altercation/vim-colors-solarized'
  Plug 'dzeban/vim-log-syntax'
  " Plug 'vim-utils/vim-man' " neovim has a built–in man. View man pages in vim. Grep for the man pages. E.g., :Man printf
  Plug 'lbrayner/vim-rzip'  " Extends stock zip.vim to allow recursively browsing and writing zip files (EAR,WAR,JAR,etc.)
  Plug 'will133/vim-dirdiff'
  Plug 'elzr/vim-json' " json highlighting
  Plug 'stephpy/vim-yaml' " Much faster yaml highlighting than vim 7.4, as of Sept 2018. Good for helm's _helpers.tpl
  Plug 'mustache/vim-mustache-handlebars' " Go template syntax and coloration
  Plug 'ntpeters/vim-better-whitespace' " Find whitespace in unexpected places
  Plug 'christoomey/vim-tmux-navigator' " When combined with a set of tmux key bindings, the plugin will allow you to navigate seamlessly between vim and tmux splits using a consistent set of hotkeys.
  Plug 'itchyny/lightline.vim' " A statusline plugin that doesn't require powerline or vim-airline
  Plug 'godlygeek/tabular' " Aligns regions of text into columns
  Plug 'ryanoasis/vim-devicons' " Supports plugins such as NERDTree, vim-lightline, vim-airline, CtrlP, powerline ...
  Plug 'majutsushi/tagbar' " Warning: this slows down airvim
  Plug 'junegunn/fzf.vim'  " Fuzzy finder
  " Plug 'ervandew/supertab'
  Plug 'SirVer/ultisnips'    " Holger Rapp's snippets engine
  Plug 'honza/vim-snippets'  " 'UltiSnips comes without snippets. An excellent selection of snippets can be found here.'
  Plug 'jlanzarotta/bufexplorer' " Navigate buffers with :BufExplorer: 'be', 'bt', 'bs', 'bv' 'be'
  Plug 'AndrewRadev/splitjoin.vim'
  " Plug 'w0rp/ale' " Check syntax (linting) and fix files asynchronously, with Language Server Protocol (LSP) integration in Vim
  " Go stuff
  Plug 'fatih/vim-go'
  Plug 'neoclide/coc.nvim', {'tag': '*', 'do': './install.sh'}
  Plug 'rhysd/rust-doc.vim' " integrate rust documentation (cargo doc too) in vim
  Plug 'rust-lang/rust.vim' " Vim plugin that provides Rust file detection, syntax highlighting, formatting, Syntastic integration, and more.