refactor(nvim): split options into their own file
This commit is contained in:
parent
00ffae0590
commit
b6bca8d50f
|
@ -1,5 +1,3 @@
|
||||||
let mapleader = " "
|
|
||||||
|
|
||||||
function! s:LoadPlugins()
|
function! s:LoadPlugins()
|
||||||
call plug#begin('~/.local/share/nvim/plugins')
|
call plug#begin('~/.local/share/nvim/plugins')
|
||||||
source ~/.config/nvim/plugins.vim
|
source ~/.config/nvim/plugins.vim
|
||||||
|
@ -16,31 +14,6 @@ function! s:SourceConfigFilesIn(directory)
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call s:LoadPlugins()
|
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')
|
call s:SourceConfigFilesIn('plugins')
|
||||||
|
|
||||||
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
|
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 textwidth=72
|
||||||
autocmd FileType gitcommit setlocal spell
|
autocmd FileType gitcommit setlocal spell
|
||||||
|
|
||||||
" Display extra whitespace
|
|
||||||
set list listchars=tab:»·,trail:·
|
|
||||||
|
|
||||||
lua require("opdavies")
|
lua require("opdavies")
|
||||||
|
|
27
nvim/.config/nvim/plugins/options.vim
Normal file
27
nvim/.config/nvim/plugins/options.vim
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue