Created
December 26, 2022 03:02
-
-
Save aziyan99/48f1a5905075aef7f047210415a9d450 to your computer and use it in GitHub Desktop.
An neovim configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set tabstop=4 | |
set expandtab | |
set number | |
set relativenumber | |
set autoindent | |
set smarttab | |
set shiftwidth=4 | |
set softtabstop=4 | |
set mouse=a | |
set nowrap | |
set nu | |
set nohlsearch | |
set scrolloff=8 | |
call plug#begin('~/.vim/plugged') | |
Plug 'http://github.com/tpope/vim-surround' " Surrounding ysw) | |
Plug 'https://github.com/preservim/nerdtree' " NerdTree | |
Plug 'https://github.com/vim-airline/vim-airline' " Status bar at the bottom | |
Plug 'https://github.com/ryanoasis/vim-devicons' " Developer Icons | |
Plug 'https://github.com/tc50cal/vim-terminal' " Vim Terminal | |
Plug 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors | |
Plug 'https://github.com/preservim/tagbar' " Tagbar for code navigation | |
Plug 'phpactor/phpactor', {'do': 'composer install', 'for': 'php'} " PHP autocompletion | |
Plug 'ncm2/ncm2' " ncm2 | |
Plug 'roxma/nvim-yarp' | |
Plug 'ncm2/ncm2-bufword' | |
Plug 'ncm2/ncm2-path' | |
Plug 'phpactor/ncm2-phpactor' | |
Plug 'mustache/vim-mustache-handlebars' | |
Plug 'jwalton512/vim-blade' " Blade templating | |
Plug 'rust-lang/rust.vim' | |
Plug 'morhetz/gruvbox' "gruvbox color scheme | |
set encoding=UTF-8 | |
call plug#end() | |
nmap <F8> :TagbarToggle<CR> | |
nnoremap <C-f> :NERDTreeFocus<CR> | |
nnoremap <C-n> :NERDTree<CR> | |
nnoremap <C-t> :NERDTreeToggle<CR> | |
let g:NERDTreeDirArrowExpandable="+" | |
let g:NERDTreeDirArrowCollapsible="~" | |
let g:mustache_abbreviations=1 | |
syntax enable | |
filetype plugin indent on | |
filetype indent on | |
" shada permission | |
" let &viminfofile = expand('$XDG_DATA_HOME/nvim/shada/main.shada') | |
" Enable ncm2 | |
autocmd BufEnter * call ncm2#enable_for_buffer() | |
set completeopt=noinsert,menuone,noselect | |
set shortmess+=c | |
inoremap <c-c> <ESC> | |
" When the <Enter> key is pressed while the popup menu is visible, it only | |
" hides the menu. Use this mapping to close the menu and also start a new | |
" line. | |
inoremap <expr> <CR> (pumvisible() ? "\<c-y>\<cr>" : "\<CR>") | |
" Use <TAB> to select the popup menu: | |
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>" | |
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>" | |
" colorscheme gruvbox |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment