Re-organise to use a bare repo

Re-organise to use a bare repo, e.g.
https://www.atlassian.com/git/tutorials/dotfiles.
This commit is contained in:
Oliver Davies 2021-06-10 10:10:59 +01:00
parent e00d9b2e96
commit d1da7c6e15
59 changed files with 19 additions and 68 deletions

View file

@ -0,0 +1,15 @@
{
"diagnostic.messageTarget": "echo",
"diagnostic.virtualText": true,
"intelephense.files.associations": [
"*.inc",
"*.module",
"*.php",
"*.profile",
"*.test",
"*.theme"
],
"intelephense.progress.enable": false,
"intelephense.telemetry.enabled": false
}

62
.config/nvim/init.vim Normal file
View file

@ -0,0 +1,62 @@
let mapleader = " "
function! s:LoadPlugins()
call plug#begin('~/.config/nvim/plugged')
source ~/.config/nvim/plugins.vim
call plug#end()
endfunction
function! s:SourceConfigFilesIn(directory)
let directory_splat = '~/.config/nvim/' . a:directory . '/*'
for config_file in split(glob(directory_splat), '\n')
if filereadable(config_file)
execute 'source' config_file
endif
endfor
endfunction
call s:LoadPlugins()
syntax on
filetype on
filetype indent on
filetype plugin on
set complete+=kspell
set expandtab
set foldlevelstart=99 " Start unfolded
set foldmethod=indent
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')
colorscheme nord
" Remaps
nnoremap <leader>pv :Vex<CR>
nnoremap <Leader>so :so ~/.config/nvim/init.vim<CR>
nnoremap <C-p> :Files<CR>
" Remove arrow keys
noremap <up> <nop>
noremap <down> <nop>
noremap <left> <nop>
noremap <right> <nop>
autocmd FileType gitcommit highlight ColorColumn ctermbg=8
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
let g:blamer_delay = 500
let g:blamer_enabled = 1

@ -0,0 +1 @@
Subproject commit 39f06b873a8449af8ff6a3eee716d3da14d63a76

@ -0,0 +1 @@
Subproject commit 1d5c4b5bcb0e25265ec6e112dcbd1226c4875648

@ -0,0 +1 @@
Subproject commit 1a74bf3c57fec8442f837b3baad0d6fb75d1b97a

@ -0,0 +1 @@
Subproject commit f305bc77faef4b418aee65682d7d147f64cfd5a9

@ -0,0 +1 @@
Subproject commit a4bc08f5a35da6e374a2ce0da4c931d7fd32fdf1

@ -0,0 +1 @@
Subproject commit e34f6c129d39b90db44df1107c8b7dfacfd18946

@ -0,0 +1 @@
Subproject commit 5617a1cf7d315e6e6f84d825c85e3b669d220bfa

@ -0,0 +1 @@
Subproject commit a5d1663185bee20bfb120c9ab212144444514982

@ -0,0 +1 @@
Subproject commit 81f3eaba295b3fceb2d032db57e5eae99ae480f8

@ -0,0 +1 @@
Subproject commit e5a54c7f0928de8b89bc00eea4dfeeb179f546e4

@ -0,0 +1 @@
Subproject commit 6d400b88d5f790d91427e333caa0cd9d5b0441ad

@ -0,0 +1 @@
Subproject commit a8b3c254d0e5c43be24298ce16cd01f740fe8d42

@ -0,0 +1 @@
Subproject commit 10998f303cd85405e51380f6dc406dd756c105e8

@ -0,0 +1 @@
Subproject commit 931cc6bd53e4a1fdbe592751f0e13c0e401f0a49

@ -0,0 +1 @@
Subproject commit 730dcb02caab60a6ae5d8b4bdc16d290041061ec

@ -0,0 +1 @@
Subproject commit c8782be8f7da414c6442b3ba4b6abb0345d392d9

@ -0,0 +1 @@
Subproject commit f51a26d3710629d031806305b6c8727189cd1935

@ -0,0 +1 @@
Subproject commit 0cabb1ef01af0986b7bf6fb7acf631debdbbb470

@ -0,0 +1 @@
Subproject commit 8041a909fc3f740e9d110dd2e95980ff4645785b

18
.config/nvim/plugins.vim Normal file
View file

@ -0,0 +1,18 @@
Plug 'APZelos/blamer.nvim'
Plug 'Yggdroot/indentLine'
Plug 'airblade/vim-gitgutter'
Plug 'arcticicestudio/nord-vim'
Plug 'christoomey/vim-sort-motion'
Plug 'christoomey/vim-tmux-navigator'
Plug 'editorconfig/editorconfig-vim'
Plug 'jiangmiao/auto-pairs'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'machakann/vim-highlightedyank'
Plug 'mg979/vim-visual-multi', {'branch': 'master'}
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'preservim/nerdcommenter'
Plug 'preservim/nerdtree'
Plug 'sheerun/vim-polyglot'
Plug 'tpope/vim-surround'
Plug 'vim-airline/vim-airline'

View file

@ -0,0 +1,5 @@
let g:airline_left_alt_sep = ''
let g:airline_left_sep = ''
let g:airline_powerline_fonts = 1
let g:airline_right_alt_sep = ''
let g:airline_right_sep = ''

View file

@ -0,0 +1,2 @@
let g:blamer_delay = 500
let g:blamer_enabled = 1

View file

@ -0,0 +1,8 @@
nmap <Leader>a <Plug>(coc-codeaction)
nmap <Leader>gd <Plug>(coc-definition)
nmap <Leader>gr <Plug>(coc-references)
nmap <Leader>gi <Plug>(coc-implementation)
nmap <Leader>gt <Plug>(coc-type-definition)
nmap <Leader>sr <Plug>(coc-rename)
nmap <Leader>rf <Plug>(coc-refactor)
nnoremap <silent> K :call <SID>show_documentation()<CR>

View file

@ -0,0 +1,4 @@
let g:NERDTreeShowHidden=1
let g:NERDTreeWinPos = "right"
nnoremap <leader>ne :NERDTreeToggle<CR>

View file

@ -0,0 +1,2 @@
let g:nord_bold_vertical_split_line = 1
let g:nord_cursor_line_number_background = 1