Advertisement
TornaxO7

https://vi.stackexchange.com/questions/39967/cannot-open-terminal-ini-nvim/39968

Feb 2nd, 2023
1,102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VIM 2.82 KB | Software | 0 0
  1. set number
  2. set autoindent
  3. set tabstop=4
  4. set shiftwidth=4
  5. set smarttab
  6. set softtabstop=4
  7. set mouse=a
  8. set encoding=UTF-8
  9.  
  10. call plug#begin()
  11. Plug 'tpope/vim-surround' " Surrounding ysw)
  12. Plug 'preservim/nerdtree' " NerdTree
  13. Plug 'tpope/vim-commentary' " For Commenting gcc & gc
  14. Plug 'vim-airline/vim-airline' " Status bar
  15. Plug 'rafi/awesome-vim-colorschemes' " Retro Scheme
  16. Plug 'ryanoasis/vim-devicons' " Developer Icons
  17. Plug 'terryma/vim-multiple-cursors' " CTRL + N for multiple cursors
  18. Plug 'preservim/tagbar' " Tagbar for code navigation
  19. Plug 'vim-airline/vim-airline-themes'
  20. Plug 'nvim-lua/plenary.nvim'
  21. Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.1' }
  22. Plug 'xiyaowong/nvim-transparent'
  23. Plug 'akinsho/toggleterm.nvim', {'tag' : '*'}
  24. call plug#end()
  25.  
  26. nmap <F8> :TagbarToggle<CR>
  27.  
  28. colorscheme jellybeans
  29.  
  30. nnoremap <C-f> :NERDTreeFocus<CR>
  31. nnoremap <C-n> :NERDTree<CR>
  32. nnoremap <C-t> :NERDTreeToggle<CR>
  33. noremap <C-b> :TerminalSplit bash<CR>
  34. noremap <C-v> :TerminalVSplit bash<CR>
  35. noremap <C-n> :TerminalTab bash<CR>
  36.  
  37. let g:NERDTreeDirArrowExpandable="+"
  38. let g:NERDTreeDirArrowCollapsible="~"
  39.  
  40. " air-line
  41. let g:airline_powerline_fonts = 1
  42.  
  43. if !exists('g:airline_symbols')
  44.     let g:airline_symbols = {}
  45. endif
  46.  
  47. " unicode symbols
  48. let g:airline_left_sep = '»'
  49. let g:airline_left_sep = '▶'
  50. let g:airline_right_sep = '«'
  51. let g:airline_right_sep = '◀'
  52. let g:airline_symbols.linenr = '␊'
  53. let g:airline_symbols.linenr = '␤'
  54. let g:airline_symbols.linenr = '¶'
  55. let g:airline_symbols.branch = '⎇'
  56. let g:airline_symbols.paste = 'ρ'
  57. let g:airline_symbols.paste = 'Þ'
  58. let g:airline_symbols.paste = '∥'
  59. let g:airline_symbols.whitespace = 'Ξ'
  60.  
  61. " airline symbols
  62. let g:airline_left_sep = ''
  63. let g:airline_left_alt_sep = ''
  64. let g:airline_right_sep = ''
  65. let g:airline_right_alt_sep = ''
  66. let g:airline_symbols.branch = ''
  67. let g:airline_symbols.readonly = ''
  68. let g:airline_symbols.linenr = ''
  69.  
  70. let g:airline#extensions#tabline#enabled = 1
  71.  
  72. "Create a funtion to get the sections contents, name is irrelevant
  73. function! GetSectionContents()
  74.   " Will be refreshed often
  75.   return 'hello world'
  76. endfunction
  77.  
  78. "Create vim-airline part
  79. call airline#parts#define_function('func','GetSectionContent')
  80.  
  81. "Replace section y with output of parts function
  82. let g:airline_section_y = airline#section#create_right(['','func'])
  83.  
  84. let g:airline#extensions#default#layout = [
  85.     \ [ 'a', 'b', 'c' ],
  86.     \ [ 'x', 'z', 'error', 'warning', 'y' ]
  87.     \ ]
  88.  
  89. " Find files using Telescope command-line sugar.
  90. nnoremap <leader>ff <cmd>Telescope find_files<cr>
  91. nnoremap <leader>fg <cmd>Telescope live_grep<cr>
  92. nnoremap <leader>fb <cmd>Telescope buffers<cr>
  93. nnoremap <leader>fh <cmd>Telescope help_tags<cr>
  94.  
  95. let g:transparent_enabled = v:true
  96.  
  97. " load toggleterm
  98. lua require("toggleterm").setup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement