Closed desmap closed 5 years ago
It's just hidden since it uses conceal feature of vim and your json syntax plugin mark "
as concealled.
Disable conceal feature of your json plugin can avoid it.
Ok, I tried set conceallevel=0
. I tried also set cocu=""
and set cocu=
but the problem is still there. Do you mean this? Or is it a coc-json-setting, I didn't find any setting there...
It's problem of your json syntax plugin.
let g:vim_json_syntax_conceal=0
might helps.
It's problem of your json syntax plugin.
I don't have any json-syntax plugin installed except coc-json or do you mean coc-json with json syntax plugin
?
let g:vim_json_syntax_conceal=0 might helps.
I tried this too
When I uninstall coc-smartf again, remove all mappings, restart nvim the problem is gone
I saw that manager.ts is modding conceallevel
and concealcursor
:
...
nvim.call('eval', ['&conceallevel'], true)
nvim.call('eval', ['&concealcursor'], true)
if (this.hasIndentLine) {
nvim.command('silent! IndentLinesDisable', true)
}
nvim.command(`setl conceallevel=2`, true)
nvim.command(`setl concealcursor=n`, true)
...
Maybe it's not set back to 0 consistently? Didn't have time to get through the entire code and grasp what is happening. So just a thought...
Now, I now what you mean with vim-json plugin. nvim has this splugin built-in: https://github.com/neovim/neovim/blob/master/runtime/syntax/json.vim
But there's now way to turn it off. set conceallevel=0
just works until the first time you execute smartf.
Ok found a so-so work-around: you have to turn-off neovim's built-in json.vim with au BufRead,BufNewFile *.json setfiletype disabled
at the beginning of your init.vim. Then you loose syntax highlighting though but this trade-off is ok since it's json and nobody works all the day on json files ;)
I can't reproduce your issue, it makes "
hidden when activated, but also reset conceallevel
as expected.
This is odd. Let me test this again these days, FWIW: i'vev run the latest nvim nightly and the latest coc.vim
I reinstalled coc-smartf and tried it again, same, tried it without any Plug-plugin, same.
@desmap Please provide minimal vimrc and steps to reproduce.
Before:
after pressing f:
Setting
json.format.enable: false
makes no difference. I have coc-json installed. If I uninstall it it'a a bit better: the " are removed after f and once I press the target they come back.