dotfiles/data/nvim/init.vim

84 lines
1.6 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-01-18 08:52:37 +00:00
" FZF
set rtp+=~/.fzf
" Plugins config
let g:go_gopls_gofumpt=1
2022-03-09 09:20:13 +00:00
let g:nvim_tree_show_icons = {
\ 'git': 0,
\ 'folders': 0,
\ 'files': 0,
\ 'folder_arrows': 0,
\ }
nnoremap <C-n> :NvimTreeToggle<CR>
2021-01-18 08:52:37 +00:00
" vim-plug
" https://github.com/junegunn/vim-plug
2021-01-18 08:52:37 +00:00
call plug#begin()
2022-03-09 09:20:13 +00:00
Plug 'kyazdani42/nvim-tree.lua'
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'
2022-05-16 17:25:52 +00:00
Plug 'axelf4/vim-strip-trailing-whitespace'
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
" Languages
Plug 'fatih/vim-go'
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')
2022-03-09 09:20:13 +00:00
local catppuccin = require('catppuccin')
2022-03-09 09:38:39 +00:00
local tree = require('nvim-tree')
2022-02-19 04:54:38 +00:00
lualine.setup({
2022-01-10 08:37:36 +00:00
options = {
icons_enabled = false,
2022-02-19 04:54:38 +00:00
-- theme = 'onedark',
-- theme = 'github',
theme = 'catppuccin',
2022-03-16 05:07:46 +00:00
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
2022-01-10 08:37:36 +00:00
}
2022-02-19 04:54:38 +00:00
})
catppuccin.setup({
transparent_background = true,
})
2022-03-09 09:38:39 +00:00
tree.setup({})
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