refactor(nvim): split options into their own file

This commit is contained in:
Oliver Davies 2021-10-14 00:32:55 +01:00
parent 00ffae0590
commit b6bca8d50f
2 changed files with 27 additions and 30 deletions

View file

@ -1,5 +1,3 @@
let mapleader = " "
function! s:LoadPlugins()
call plug#begin('~/.local/share/nvim/plugins')
source ~/.config/nvim/plugins.vim
@ -16,31 +14,6 @@ function! s:SourceConfigFilesIn(directory)
endfunction
call s:LoadPlugins()
syntax on
filetype on
filetype indent on
filetype plugin on
set autoindent
set breakindent
set clipboard+=unnamedplus
set complete+=kspell
set expandtab
set foldlevelstart=99 " Start unfolded
set foldmethod=indent
set formatoptions=l
set linebreak
set mouse=n
set noswapfile
set nowrap
set number relativenumber
set scrolloff=10 " Automatically scroll
set shiftwidth=2
set smartindent
set tabstop=2 softtabstop=2
set termguicolors
call s:SourceConfigFilesIn('plugins')
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
@ -48,7 +21,4 @@ autocmd FileType gitcommit setlocal colorcolumn=50,72
autocmd FileType gitcommit setlocal textwidth=72
autocmd FileType gitcommit setlocal spell
" Display extra whitespace
set list listchars=tab:»·,trail
lua require("opdavies")

View file

@ -0,0 +1,27 @@
let mapleader = " "
syntax on
filetype on
filetype indent on
filetype plugin on
set autoindent
set breakindent
set clipboard+=unnamedplus
set complete+=kspell
set expandtab
set foldlevelstart=99 " Start unfolded
set foldmethod=indent
set formatoptions=l
set linebreak
set list listchars=tab:»·,trail" Display extra whitespace
set mouse=n
set noswapfile
set nowrap
set number relativenumber
set scrolloff=10 " Automatically scroll
set shiftwidth=2
set smartindent
set tabstop=2 softtabstop=2
set termguicolors