Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
1.3 kB
2
Indexable
Never
set number
set splitright
set splitbelow
set clipboard+=unnamedplus
set paste
set go+=a
set tabstop=4
set shiftwidth=4
set expandtab
set autoindent
set mouse+=a
set nocompatible

call plug#begin()
Plug 'preservim/nerdtree'  
Plug 'joshdick/onedark.vim'
Plug 'sheerun/vim-polyglot'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
Plug 'akinsho/toggleterm.nvim', {'tag' : '*'}
Plug 'voldikss/vim-floaterm'
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
call plug#end()

syntax on
colorscheme onedark

nnoremap <C-S-e> :NERDTree<CR>
nnoremap <C-S-t> :NERDTreeToggle<CR>
nnoremap <C-n> :FloatermNew <CR>
nnoremap <C-k> :FloatermKill <CR>
tnoremap <C-S-n> :FloatermNew <CR>
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:copypath_copy_to_unnamed_register = 1  
" Using Lua functions
nnoremap <leader>ff <cmd>lua require('telescope.builtin').find_files()<cr>
nnoremap <leader>fg <cmd>lua require('telescope.builtin').live_grep()<cr>
nnoremap <leader>fb <cmd>lua require('telescope.builtin').buffers()<cr>
nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>