dotfiles/data/nvim/init.vim

69 lines
1.1 KiB
VimL
Raw Normal View History

2021-01-18 08:52:37 +00:00
set breakindent
set completeopt=menuone,noinsert,noselect
set noswapfile
set number
set relativenumber
set scrolloff=4
set virtualedit=block
set whichwrap=<,>,[,]
2021-09-24 07:14:58 +00:00
" tabstop
" https://www.reddit.com/r/vim/wiki/tabstop
set tabstop=8
set softtabstop=4
set shiftwidth=4
set expandtab
" Mouse support
set mouse=a
2021-12-02 04:33:10 +00:00
" Clipboard support
2021-01-18 08:52:37 +00:00
set clipboard+=unnamedplus
" FZF
set rtp+=~/.fzf
" vim-plug
" https://github.com/junegunn/vim-plug
2021-01-18 08:52:37 +00:00
call plug#begin()
2021-03-22 03:17:43 +00:00
2021-01-18 08:52:37 +00:00
Plug 'preservim/nerdtree'
2022-01-10 08:37:36 +00:00
Plug 'nvim-lualine/lualine.nvim'
Plug 'tpope/vim-fugitive'
2022-02-19 04:54:38 +00:00
Plug 'tpope/vim-surround'
2021-03-22 03:17:43 +00:00
" Colorschemes
Plug 'cocopon/iceberg.vim'
2021-03-22 03:17:43 +00:00
Plug 'joshdick/onedark.vim'
2022-01-10 08:37:36 +00:00
Plug 'projekt0n/github-nvim-theme'
2022-02-19 04:54:38 +00:00
Plug 'catppuccin/nvim', {'as': 'catppuccin'}
2021-03-22 03:17:43 +00:00
2021-01-18 08:52:37 +00:00
call plug#end()
2022-01-10 08:37:36 +00:00
lua << EOF
2022-02-19 04:54:38 +00:00
local lualine = require('lualine')
local catppuccin = require("catppuccin")
lualine.setup({
2022-01-10 08:37:36 +00:00
options = {
2022-02-19 04:54:38 +00:00
-- theme = 'onedark',
-- theme = 'github',
theme = 'catppuccin',
2022-01-10 08:37:36 +00:00
}
2022-02-19 04:54:38 +00:00
})
catppuccin.setup({
transparent_background = true,
})
2022-01-10 08:37:36 +00:00
EOF
2022-02-19 04:54:38 +00:00
set background=dark
if $TERM == 'xterm-kitty'
" colorscheme onedark
" colorscheme github_dark
colorscheme catppuccin
else
colorscheme iceberg
endif