mirror of
https://github.com/kristoferssolo/solorice.git
synced 2025-10-21 20:10:34 +00:00
93 lines
2.3 KiB
VimL
93 lines
2.3 KiB
VimL
:set number
|
|
:set relativenumber
|
|
:set autoindent
|
|
:set tabstop=4
|
|
:set shiftwidth=4
|
|
:set smarttab
|
|
:set softtabstop=4
|
|
:set mouse=a
|
|
|
|
|
|
call plug#begin()
|
|
Plug 'vim-airline/vim-airline'
|
|
Plug 'preservim/nerdtree'
|
|
Plug 'ap/vim-css-color'
|
|
Plug 'rafi/awesome-vim-colorschemes'
|
|
Plug 'ryanoasis/vim-devicons'
|
|
Plug 'mattn/emmet-vim'
|
|
Plug 'norcalli/nvim-colorizer.lua'
|
|
Plug 'tomasiser/vim-code-dark'
|
|
Plug 'lukas-reineke/indent-blankline.nvim'
|
|
Plug 'vimwiki/vimwiki'
|
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
|
Plug 'numToStr/Comment.nvim'
|
|
Plug 'jiangmiao/auto-pairs'
|
|
Plug 'Mofiqul/dracula.nvim'
|
|
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
|
Plug 'nvim-lua/plenary.nvim'
|
|
Plug 'nvim-telescope/telescope.nvim'
|
|
Plug 'lewis6991/gitsigns.nvim'
|
|
Plug 'nvim-lualine/lualine.nvim'
|
|
" If you want to have icons in your statusline choose one of these
|
|
Plug 'kyazdani42/nvim-web-devicons'
|
|
|
|
call plug#end()
|
|
|
|
colorscheme dracula
|
|
nnoremap <C-t> :NERDTreeToggle<CR>
|
|
|
|
nmap <a-k> :m -2<CR>
|
|
nmap <a-up> :m -2<CR>
|
|
nmap <a-j> :m +1<CR>
|
|
nmap <a-down> :m +1<CR>
|
|
|
|
" Use tab for trigger completion with characters ahead and navigate.
|
|
inoremap <silent><expr> <TAB>
|
|
\ pumvisible() ? "\<C-n>" :
|
|
\ <SID>check_back_space() ? "\<TAB>" :
|
|
\ coc#refresh()
|
|
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
|
function! s:check_back_space() abort
|
|
let col = col('.') - 1
|
|
return !col || getline('.')[col - 1] =~# '\s'
|
|
endfunction
|
|
" Use <c-space> to trigger completion.
|
|
if has('nvim')
|
|
inoremap <silent><expr> <c-space> coc#refresh()
|
|
else
|
|
inoremap <silent><expr> <c-@> coc#refresh()
|
|
endif
|
|
|
|
lua << END
|
|
require('Comment').setup()
|
|
require('lualine').setup {
|
|
options = {
|
|
icons_enabled = true,
|
|
theme = 'dracula',
|
|
component_separators = { left = '', right = ''},
|
|
section_separators = { left = '', right = ''},
|
|
disabled_filetypes = {},
|
|
always_divide_middle = true,
|
|
globalstatus = false,
|
|
},
|
|
sections = {
|
|
lualine_a = {'mode'},
|
|
lualine_b = {'branch', 'diff', 'diagnostics'},
|
|
lualine_c = {'filename'},
|
|
lualine_x = {'encoding', 'fileformat', 'filetype'},
|
|
lualine_y = {'progress'},
|
|
lualine_z = {'location'}
|
|
},
|
|
inactive_sections = {
|
|
lualine_a = {},
|
|
lualine_b = {},
|
|
lualine_c = {'filename'},
|
|
lualine_x = {'location'},
|
|
lualine_y = {},
|
|
lualine_z = {}
|
|
},
|
|
tabline = {},
|
|
extensions = {}
|
|
}
|
|
END
|