added nixos-hardware

This commit is contained in:
Rouven Seifert 2023-02-21 22:35:56 +01:00
parent e9e167d26d
commit 1b7ccea62c
Signed by: rouven.seifert
GPG key ID: B95E8FE6B11C4D09
3 changed files with 33 additions and 14 deletions

View file

@ -37,10 +37,10 @@ map('n', '<leader>n :NERDTreeFocus<CR>', ':NERDTreeRefreshRoot<CR>')
autocmd('VimEnter', {command = 'NERDTree | wincmd p'})
--Close the tab if NERDTree is the only window remaining in it.
autocmd("BufEnter", {
pattern = "*",
command = "if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif"
})
--autocmd("BufEnter", {
--pattern = "*",
--command = "if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif"
--})
-- remove ex-mode shortcut
map('n', 'Q', '<Nop>')