json: add specific settings for JSON

- Creates the `after/ftplugin` folders.
- Sets specific settings for JSON for folding method.

Co-Authored-by: iGor milhit <igor@milhit.ch>
iGor milhit 2023-07-04 16:37:48 +02:00
parent 516ecbef92
commit 544891631a
Signed by: igor
GPG Key ID: 692D97C3D0228A99
1 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,8 @@
-- Specific settings for JSON files
-- Use treesitter for folding
-- Disable the color column
vim.opt.foldmethod="expr"
vim.opt.foldexpr="nvim_treesitter#foldexpr()"
vim.opt.foldlevel=3
vim.opt.colorcolumn=""