Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- set number
- set autoindent
- set tabstop=4
- set shiftwidth=4
- set smarttab
- set softtabstop=4
- set mouse=a
- set encoding=UTF-8
- call plug#begin()
- Plug 'tpope/vim-surround' " Surrounding ysw)
- Plug 'preservim/nerdtree' " NerdTree
- Plug 'tpope/vim-commentary' " For Commenting gcc & gc
- Plug 'vim-airline/vim-airline' " Status bar
- Plug 'rafi/awesome-vim-colorschemes' " Retro Scheme
- Plug 'ryanoasis/vim-devicons' " Developer Icons
- Plug 'terryma/vim-multiple-cursors' " CTRL + N for multiple cursors
- Plug 'preservim/tagbar' " Tagbar for code navigation
- Plug 'vim-airline/vim-airline-themes'
- Plug 'nvim-lua/plenary.nvim'
- Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.1' }
- Plug 'xiyaowong/nvim-transparent'
- Plug 'akinsho/toggleterm.nvim', {'tag' : '*'}
- call plug#end()
- nmap <F8> :TagbarToggle<CR>
- colorscheme jellybeans
- nnoremap <C-f> :NERDTreeFocus<CR>
- nnoremap <C-n> :NERDTree<CR>
- nnoremap <C-t> :NERDTreeToggle<CR>
- noremap <C-b> :TerminalSplit bash<CR>
- noremap <C-v> :TerminalVSplit bash<CR>
- noremap <C-n> :TerminalTab bash<CR>
- let g:NERDTreeDirArrowExpandable="+"
- let g:NERDTreeDirArrowCollapsible="~"
- " air-line
- let g:airline_powerline_fonts = 1
- if !exists('g:airline_symbols')
- let g:airline_symbols = {}
- endif
- " unicode symbols
- let g:airline_left_sep = '»'
- let g:airline_left_sep = '▶'
- let g:airline_right_sep = '«'
- let g:airline_right_sep = '◀'
- let g:airline_symbols.linenr = '␊'
- let g:airline_symbols.linenr = ''
- let g:airline_symbols.linenr = '¶'
- let g:airline_symbols.branch = '⎇'
- let g:airline_symbols.paste = 'ρ'
- let g:airline_symbols.paste = 'Þ'
- let g:airline_symbols.paste = '∥'
- let g:airline_symbols.whitespace = 'Ξ'
- " airline symbols
- let g:airline_left_sep = ''
- let g:airline_left_alt_sep = ''
- let g:airline_right_sep = ''
- let g:airline_right_alt_sep = ''
- let g:airline_symbols.branch = ''
- let g:airline_symbols.readonly = ''
- let g:airline_symbols.linenr = ''
- let g:airline#extensions#tabline#enabled = 1
- "Create a funtion to get the sections contents, name is irrelevant
- function! GetSectionContents()
- " Will be refreshed often
- return 'hello world'
- endfunction
- "Create vim-airline part
- call airline#parts#define_function('func','GetSectionContent')
- "Replace section y with output of parts function
- let g:airline_section_y = airline#section#create_right(['','func'])
- let g:airline#extensions#default#layout = [
- \ [ 'a', 'b', 'c' ],
- \ [ 'x', 'z', 'error', 'warning', 'y' ]
- \ ]
- " Find files using Telescope command-line sugar.
- nnoremap <leader>ff <cmd>Telescope find_files<cr>
- nnoremap <leader>fg <cmd>Telescope live_grep<cr>
- nnoremap <leader>fb <cmd>Telescope buffers<cr>
- nnoremap <leader>fh <cmd>Telescope help_tags<cr>
- let g:transparent_enabled = v:true
- " load toggleterm
- lua require("toggleterm").setup()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement