nvim: Re-introduce floaterm
Commit f977b8a
while dropping all python dependencies also dropped
floaterm. However it has a dependency on python based neovim-remote
only if integration with git or floaterm is required from command line
which we do not. So add it back. Using the previous toggle bindings
with this gives a nice floating terminal which can be easily hidden.
Signed-off-by: Sanchayan Maity <maitysanchayan@gmail.com>
This commit is contained in:
parent
83a6c276aa
commit
ac9d77f59b
3 changed files with 11 additions and 3 deletions
|
@ -61,7 +61,7 @@ Plug 'liuchengxu/vim-which-key'
|
|||
" Clipboard
|
||||
Plug 'christoomey/vim-system-copy'
|
||||
" Toggle terminal
|
||||
Plug 'caenrique/nvim-toggle-terminal'
|
||||
Plug 'voldikss/vim-floaterm'
|
||||
" LSP
|
||||
Plug 'neovim/nvim-lsp'
|
||||
Plug 'nvim-lua/diagnostic-nvim'
|
||||
|
|
|
@ -69,8 +69,8 @@ nnoremap zms :set foldmethod=syntax<CR>
|
|||
|
||||
" Key Bindings to help with terminal mode
|
||||
tnoremap jk <C-\><C-n>
|
||||
nnoremap <silent> <C-z> :ToggleTerminal<Enter>
|
||||
tnoremap <silent> <C-z> <C-\><C-n>:ToggleTerminal<Enter>
|
||||
nnoremap <silent> <C-z> :FloatermToggle<Enter>
|
||||
tnoremap <silent> <C-z> <C-\><C-n>:FloatermToggle<Enter>
|
||||
|
||||
" Key bindings to move between window splits
|
||||
for key in range(0, 9)
|
||||
|
|
|
@ -54,6 +54,14 @@ let g:vimtex_view_general_viewer = 'qpdfview'
|
|||
let g:vimtex_view_general_options = '--unique @pdf\#src:@tex:@line:@col'
|
||||
let g:vimtex_view_general_options_latexmk = '--unique'
|
||||
|
||||
" Floaterm
|
||||
let g:floaterm_open_in_root = 0
|
||||
let g:floaterm_position = 'center'
|
||||
let g:floaterm_width = 0.8
|
||||
let g:floaterm_height = 0.8
|
||||
let g:floaterm_winblend = 0
|
||||
let g:floaterm_borderchars = ['─', '│', '─', '│', '╭', '╮', '╯', '╰']
|
||||
|
||||
" Neovim LSP Diagnostics
|
||||
let g:diagnostic_enable_virtual_text = 0
|
||||
let g:diagnostic_show_sign = 1
|
||||
|
|
Loading…
Reference in a new issue