summaryrefslogtreecommitdiff
path: root/nvim/init.vim
diff options
context:
space:
mode:
authorxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-24 19:54:32 +0300
committerxAlpharax <42233094+xAlpharax@users.noreply.github.com>2023-09-24 19:54:32 +0300
commitde867b7ff72e867ea1c39932cccd503065f94df0 (patch)
treece24b508043604035beec9808030bb81f2939bb8 /nvim/init.vim
parent50d9af377491135ae485a682d89757bf510831f7 (diff)
Added Gummi, Neofetch and NeoVim configuratioons.
Changes to be committed: new file: gummi/gummi.ini new file: gummi/snippets.cfg new file: gummi/welcome.tex new file: htop/htoprc new file: neofetch/config.conf new file: nvim/colors/hybrid.vim new file: nvim/init.vim
Diffstat (limited to 'nvim/init.vim')
-rw-r--r--nvim/init.vim77
1 files changed, 77 insertions, 0 deletions
diff --git a/nvim/init.vim b/nvim/init.vim
new file mode 100644
index 0000000..5e52d48
--- /dev/null
+++ b/nvim/init.vim
@@ -0,0 +1,77 @@
+syntax on
+
+let g:hybrid_custom_term_colors = 1
+set background=dark
+
+colorscheme hybrid
+
+set nocompatible
+set encoding=utf-8
+set noswapfile
+
+" CLIPBOARD
+set clipboard+=unnamedplus
+
+" indentation and looks
+
+ " set relativenumber
+ set number
+ set smartindent
+ set smartcase
+ set incsearch
+ set incsearch
+
+" vertical and horizontal splits
+ set splitbelow splitright
+ set wildmode=longest
+
+" tabs and stuff
+ set tabstop=4 softtabstop=4
+ set shiftwidth=4
+ set expandtab
+
+" removing white spaces
+ autocmd BufWritePre * %s/\s\+$//e
+
+" disable auto commenting
+ autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
+
+" plugins
+ call plug#begin('~/.vim/plugged')
+
+ Plug 'vim-airline/vim-airline'
+ Plug 'vim-airline/vim-airline-themes'
+ Plug 'preservim/nerdtree'
+ Plug 'vimsence/vimsence'
+
+ Plug 'neoclide/coc.nvim', {'branch': 'release'}
+
+ call plug#end()
+
+" air-line
+let g:airline_powerline_fonts = 1
+let g:airline_theme='deus'
+
+inoremap <silent><expr> <TAB> coc#pum#visible() ? coc#pum#confirm() : "\<C-g>u\<TAB>"
+
+" remaps
+
+ " replace all
+ nnoremap <C-r> :%s//g<Left><Left>
+
+ " vim tree
+ nnoremap <leader>\ :NERDTreeToggle<CR>
+
+ " spell check
+ map S :setlocal spell! spelllang=en_us<CR>
+
+" movement
+ map J k
+ map K j
+
+"""NeoVide
+if exists("g:neovide")
+ set guifont="Inconsolata Nerd:h14"
+ "let g:neovide_transparency = 0.8
+ let g:neovide_cursor_vfx_mode = "pixiedust"
+endif