dotfiles/data/nvim/init.vim

84 lines
1.6 KiB
VimL

set breakindent
set completeopt=menuone,noinsert,noselect
set noswapfile
set number
set relativenumber
set scrolloff=4
set virtualedit=block
set whichwrap=<,>,[,]
" 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
" FZF
set rtp+=~/.fzf
" Plugins config
let g:go_gopls_gofumpt=1
let g:nvim_tree_show_icons = {
\ 'git': 0,
\ 'folders': 0,
\ 'files': 0,
\ 'folder_arrows': 0,
\ }
nnoremap <C-n> :NvimTreeToggle<CR>
" vim-plug
" https://github.com/junegunn/vim-plug
call plug#begin()
Plug 'kyazdani42/nvim-tree.lua'
Plug 'nvim-lualine/lualine.nvim'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-surround'
Plug 'axelf4/vim-strip-trailing-whitespace'
" Colorschemes
Plug 'cocopon/iceberg.vim'
Plug 'joshdick/onedark.vim'
Plug 'projekt0n/github-nvim-theme'
Plug 'catppuccin/nvim', {'as': 'catppuccin'}
" Languages
Plug 'fatih/vim-go'
call plug#end()
lua << EOF
local lualine = require('lualine')
local catppuccin = require('catppuccin')
local tree = require('nvim-tree')
lualine.setup({
options = {
icons_enabled = false,
-- theme = 'onedark',
-- theme = 'github',
theme = 'catppuccin',
component_separators = { left = '', right = ''},
section_separators = { left = '', right = ''},
}
})
catppuccin.setup({
transparent_background = true,
})
tree.setup({})
EOF
set background=dark
if $TERM == 'xterm-kitty'
" colorscheme onedark
" colorscheme github_dark
colorscheme catppuccin
else
colorscheme iceberg
endif