dashboard + FTerm, look i'm sorry okay
This commit is contained in:
parent
fc96c7f620
commit
aa0e2d0101
|
@ -79,6 +79,8 @@ in
|
|||
nvim-treesitter
|
||||
nvim-treesitter-context
|
||||
cmp-treesitter
|
||||
dashboard-nvim
|
||||
FTerm-nvim
|
||||
|
||||
# kitaab stuff
|
||||
vimwiki
|
||||
|
@ -249,9 +251,17 @@ in
|
|||
map <leader>zo :ZettelOpen<CR>
|
||||
map <leader>zn :ZettelNew<CR>
|
||||
|
||||
" NERDTree
|
||||
" open on directory
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
let g:mapleader="\<Space>"
|
||||
let g:dashboard_default_executive = 'telescope'
|
||||
nmap <Leader>ss :<C-u>SessionSave<CR>
|
||||
nmap <Leader>sl :<C-u>SessionLoad<CR>
|
||||
nnoremap <silent> <Leader>fh :DashboardFindHistory<CR>
|
||||
nnoremap <silent> <Leader>ff :DashboardFindFile<CR>
|
||||
nnoremap <silent> <Leader>tc :DashboardChangeColorscheme<CR>
|
||||
nnoremap <silent> <Leader>fa :DashboardFindWord<CR>
|
||||
nnoremap <silent> <Leader>fb :DashboardJumpMark<CR>
|
||||
nnoremap <silent> <Leader>cn :DashboardNewFile<CR>
|
||||
autocmd FileType dashboard set showtabline=0 | autocmd WinLeave <buffer> set showtabline=2
|
||||
|
||||
" fzf
|
||||
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } }
|
||||
|
@ -395,6 +405,11 @@ require('lint').linters_by_ft = {
|
|||
python = {'black'}
|
||||
}
|
||||
|
||||
-- f_term
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local opts = { noremap = true, silent = true }
|
||||
map('n', '<C-i>', '<CMD>lua require("FTerm").toggle()<CR>', opts)
|
||||
map('t', '<A-i>', '<C-\\><C-n><CMD>lua require("FTerm").toggle()<CR>', opts)
|
||||
EOF
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue