nvim: set tabstop and shiftwidth for gentoo package.*
This commit is contained in:
parent
8094dd8c18
commit
3c5f5952ad
@ -17,12 +17,18 @@ require('orgmode').setup {}
|
||||
require('orgmode').setup_ts_grammar()
|
||||
|
||||
vim.api.nvim_create_augroup('config_fileformats', { clear = true })
|
||||
vim.api.nvim_create_autocmd({ 'BufEnter' }, {
|
||||
vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
group = 'config_fileformats',
|
||||
pattern = { '*.org' },
|
||||
pattern = { 'org' },
|
||||
callback = function()
|
||||
-- allow to hide stuff, like links
|
||||
vim.opt_local.conceallevel = 2
|
||||
vim.opt_local.concealcursor = 'nc'
|
||||
end
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ 'FileType' }, {
|
||||
group = 'config_fileformats',
|
||||
pattern = { 'gentoo-package-*' },
|
||||
command = [[set tabstop=2 shiftwidth=2]]
|
||||
})
|
||||
|
Loading…
x
Reference in New Issue
Block a user