124 lines
2.7 KiB
VimL
124 lines
2.7 KiB
VimL
call plug#begin()
|
|
Plug 'preservim/nerdtree'
|
|
Plug 'vimwiki/vimwiki'
|
|
Plug 'ryanoasis/vim-devicons'
|
|
Plug 'tribela/vim-transparent'
|
|
Plug 'ap/vim-css-color'
|
|
Plug 'theRealCarneiro/hyprland-vim-syntax'
|
|
Plug 'vim-airline/vim-airline'
|
|
Plug 'catppuccin/vim', { 'as': 'catppuccin' }
|
|
call plug#end()
|
|
|
|
|
|
|
|
set termguicolors
|
|
|
|
syntax on
|
|
|
|
set background=dark
|
|
|
|
set ttyfast
|
|
|
|
set cursorline
|
|
|
|
set autoindent
|
|
set smartindent
|
|
|
|
set cmdheight=1
|
|
"set smartcase
|
|
|
|
"set hlsearch
|
|
set incsearch
|
|
|
|
set ignorecase
|
|
|
|
set clipboard=unnamedplus
|
|
|
|
"set wildmode=longest,list
|
|
set noswapfile
|
|
|
|
autocmd SwapExists * let v:swapchoice = "e"
|
|
|
|
set clipboard=unnamedplus
|
|
|
|
set number relativenumber
|
|
|
|
|
|
|
|
colorscheme catppuccin_mocha
|
|
|
|
if has("autocmd")
|
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | execute "normal! g`\"" | endif
|
|
endif
|
|
|
|
|
|
"inoremap <silent><expr> <TAB>
|
|
" \ coc#pum#visible() ? coc#pum#next(1) :
|
|
" \ CheckBackspace() ? "\<Tab>" :
|
|
" \ coc#refresh()
|
|
"inoremap <expr><S-TAB> coc#pum#visible() ? coc#pum#prev(1) : "\<C-h>"
|
|
|
|
|
|
nnoremap nn :NERDTreeToggle<CR>
|
|
|
|
"nnoremap ff :wincmd p<CR>
|
|
nnoremap xs :w<CR>
|
|
|
|
nnoremap tt :tabnew<CR>
|
|
nnoremap tq :tabclose<CR>
|
|
|
|
let NERDTreeShowHidden=1
|
|
|
|
"autocmd VimEnter * NERDTree | wincmd p
|
|
|
|
" Start NERDTree when Vim is started without file arguments.
|
|
autocmd StdinReadPre * let s:std_in=1
|
|
|
|
autocmd VimEnter * if argc() == 0 && !exists('s:std_in') | NERDTree | endif
|
|
|
|
" Exit Vim if NERDTree is the only window remaining in the only tab.
|
|
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
|
|
|
|
|
let g:startify_lists = [
|
|
\ { 'type': 'files', 'header': [' Files'] },
|
|
\ { 'type': 'dir', 'header': [' Files '. getcwd()] },
|
|
\ ]
|
|
|
|
let g:startify_custom_header = [
|
|
\ ' ',
|
|
\ ' __ ',
|
|
\ ' __ __ /\_\ ___ ___ ',
|
|
\ ' /\ \/\ \\/\ \ /'' __` __`\ ',
|
|
\ ' \ \ \_/ |\ \ \/\ \/\ \/\ \ ',
|
|
\ ' \ \___/ \ \_\ \_\ \_\ \_\ ',
|
|
\ ' \/__/ \/_/\/_/\/_/\/_/ ',
|
|
\ ]
|
|
<
|
|
|
|
|
|
"AirLine Things
|
|
let g:airline_powerline_fonts = 1
|
|
if !exists('g:airline_symbols')
|
|
let g:airline_symbols = {}
|
|
endif
|
|
let g:airline_left_sep = ''
|
|
let g:airline_right_sep = ''
|
|
|
|
let g:airline_section_z = airline#section#create(['linenr','/%v', ])
|
|
let g:airline_skip_empty_sections = 1
|
|
let g:airline_extensions = []
|
|
let g:airline_section_x = ''
|
|
let g:airline_symbols.maxlinenr = 'll'
|
|
let g:airline_symbols.linenr = 'L/S: '
|
|
|
|
|
|
"LightLine Things
|
|
"set laststatus=2
|
|
"if !has('gui_running')
|
|
" set t_Co=256
|
|
"endif
|
|
"let g:lightline = {
|
|
" \ 'colorscheme': 'catppuccin_mocha',
|
|
" \ }
|