auto open nvim-tree
This commit is contained in:
parent
ed5563b210
commit
376288fe21
|
@ -14,6 +14,14 @@ vim.api.nvim_create_autocmd({ 'FocusGained', 'TermClose', 'TermLeave' }, {
|
|||
command = 'checktime',
|
||||
})
|
||||
|
||||
-- Open Neotree in new tabs
|
||||
vim.api.nvim_create_autocmd({'TabNewEntered' }, {
|
||||
group = augroup('automatic_neotree'),
|
||||
callback = function()
|
||||
vim.cmd('Neotree')
|
||||
end,
|
||||
})
|
||||
|
||||
-- Go to last loc when opening a buffer, see ':h last-position-jump'
|
||||
vim.api.nvim_create_autocmd('BufReadPost', {
|
||||
group = augroup('last_loc'),
|
||||
|
@ -79,7 +87,7 @@ vim.api.nvim_create_autocmd('BufWritePre', {
|
|||
-- Disable conceallevel for specific file-types.
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
group = augroup('fix_conceallevel'),
|
||||
pattern = { 'markdown' },
|
||||
pattern = { 'latex', 'tex' },
|
||||
callback = function()
|
||||
vim.opt_local.conceallevel = 0
|
||||
end,
|
||||
|
|
Loading…
Reference in New Issue