Add JSON augroup to neovim config
parent
c81375285a
commit
4b79b603d3
|
@ -78,6 +78,13 @@ vim.api.nvim_create_autocmd('FileType', {
|
||||||
command = 'setlocal tabstop=3|setlocal shiftwidth=3|setlocal softtabstop=3|setlocal tw=72'
|
command = 'setlocal tabstop=3|setlocal shiftwidth=3|setlocal softtabstop=3|setlocal tw=72'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
local json_augroup = vim.api.nvim_create_augroup('filetype_json', {clear = true})
|
||||||
|
vim.api.nvim_create_autocmd('FileType', {
|
||||||
|
pattern = 'json',
|
||||||
|
group = json_augroup,
|
||||||
|
command = 'setlocal tabstop=2|setlocal shiftwidth=2|setlocal softtabstop=2'
|
||||||
|
})
|
||||||
|
|
||||||
-- ----------------------------------
|
-- ----------------------------------
|
||||||
-- Plugins
|
-- Plugins
|
||||||
-- ----------------------------------
|
-- ----------------------------------
|
||||||
|
|
Loading…
Reference in New Issue