mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
Changed nvim init.rc
This commit is contained in:
parent
d8db3697a1
commit
245c3ca779
@ -1,15 +1,31 @@
|
|||||||
:set number
|
let mapleader=" "
|
||||||
:set relativenumber
|
|
||||||
:set autoindent
|
set mouse=a
|
||||||
:set tabstop=4
|
set number
|
||||||
:set shiftwidth=4
|
set relativenumber
|
||||||
:set smarttab
|
set autoindent
|
||||||
:set softtabstop=4
|
set smarttab
|
||||||
:set mouse=a
|
set ignorecase
|
||||||
|
set smartcase
|
||||||
|
set termguicolors
|
||||||
|
syntax on
|
||||||
|
|
||||||
|
" Autocompletion
|
||||||
|
set wildmode=longest,list,full
|
||||||
|
|
||||||
|
" Fix splitting
|
||||||
|
set splitbelow splitright
|
||||||
|
|
||||||
|
"Tab settings
|
||||||
|
set expandtab
|
||||||
|
set shiftwidth=2
|
||||||
|
set softtabstop=2
|
||||||
|
set tabstop=2
|
||||||
|
|
||||||
|
set clipboard+=unnamedplus
|
||||||
|
|
||||||
|
|
||||||
call plug#begin()
|
call plug#begin()
|
||||||
Plug 'vim-airline/vim-airline'
|
|
||||||
Plug 'preservim/nerdtree'
|
Plug 'preservim/nerdtree'
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
Plug 'rafi/awesome-vim-colorschemes'
|
Plug 'rafi/awesome-vim-colorschemes'
|
||||||
@ -34,13 +50,47 @@ Plug 'kyazdani42/nvim-web-devicons'
|
|||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
colorscheme dracula
|
colorscheme dracula
|
||||||
|
|
||||||
|
set cursorline
|
||||||
|
set cursorcolumn
|
||||||
|
highlight CursorLine ctermbg=Yellow cterm=bold guibg=#2b2b2b
|
||||||
|
highlight CursorColumn ctermbg=Yellow cterm=bold guibg=#2b2b2b
|
||||||
|
|
||||||
nnoremap <C-t> :NERDTreeToggle<CR>
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
" Verticaly center document when entering insert mode
|
||||||
|
autocmd InsertEnter * norm zz
|
||||||
|
|
||||||
|
" Remove trailing whitespace on save
|
||||||
|
autocmd BufWritePre * %s/\s\+$//e
|
||||||
|
|
||||||
|
" Enable Disable auto comment
|
||||||
|
map <leader>c :setlocal formatoptions-=cro<CR>
|
||||||
|
map <leader>C :setlocal formatoptions=cro<CR>
|
||||||
|
|
||||||
|
" Enable spell checking, s for spell check
|
||||||
|
map <leader>s :setlocal spell! spelllang=en_us<CR>
|
||||||
|
|
||||||
|
" Enable Disable auto indent
|
||||||
|
map <leader>i :setlocal autoindent<Cr>
|
||||||
|
map <leader>I :setlocal noautoindent<Cr>
|
||||||
|
|
||||||
|
" Shortcutting split navigation
|
||||||
|
map <C-h> <C-w>h
|
||||||
|
map <C-j> <C-w>j
|
||||||
|
map <C-k> <C-w>k
|
||||||
|
map <C-l> <C-w>l
|
||||||
|
|
||||||
|
" Moving line up or down by one line
|
||||||
nmap <a-k> :m -2<CR>
|
nmap <a-k> :m -2<CR>
|
||||||
nmap <a-up> :m -2<CR>
|
nmap <a-up> :m -2<CR>
|
||||||
nmap <a-j> :m +1<CR>
|
nmap <a-j> :m +1<CR>
|
||||||
nmap <a-down> :m +1<CR>
|
nmap <a-down> :m +1<CR>
|
||||||
|
|
||||||
|
" Alias replace all to S
|
||||||
|
nnoremap S :%s//gI<Left><Left><Left>
|
||||||
|
|
||||||
|
|
||||||
" Use tab for trigger completion with characters ahead and navigate.
|
" Use tab for trigger completion with characters ahead and navigate.
|
||||||
inoremap <silent><expr> <TAB>
|
inoremap <silent><expr> <TAB>
|
||||||
\ pumvisible() ? "\<C-n>" :
|
\ pumvisible() ? "\<C-n>" :
|
||||||
@ -58,6 +108,8 @@ else
|
|||||||
inoremap <silent><expr> <c-@> coc#refresh()
|
inoremap <silent><expr> <c-@> coc#refresh()
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
lua << END
|
lua << END
|
||||||
require('Comment').setup()
|
require('Comment').setup()
|
||||||
require('lualine').setup {
|
require('lualine').setup {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user