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:
parent
e00d9b2e96
commit
d1da7c6e15
59 changed files with 19 additions and 68 deletions
15
.config/nvim/coc-settings.json
Normal file
15
.config/nvim/coc-settings.json
Normal 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
62
.config/nvim/init.vim
Normal 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
|
1
.config/nvim/plugged/auto-pairs
Submodule
1
.config/nvim/plugged/auto-pairs
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 39f06b873a8449af8ff6a3eee716d3da14d63a76
|
1
.config/nvim/plugged/blamer.nvim
Submodule
1
.config/nvim/plugged/blamer.nvim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1d5c4b5bcb0e25265ec6e112dcbd1226c4875648
|
1
.config/nvim/plugged/coc.nvim
Submodule
1
.config/nvim/plugged/coc.nvim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 1a74bf3c57fec8442f837b3baad0d6fb75d1b97a
|
1
.config/nvim/plugged/editorconfig-vim
Submodule
1
.config/nvim/plugged/editorconfig-vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit f305bc77faef4b418aee65682d7d147f64cfd5a9
|
1
.config/nvim/plugged/fzf
Submodule
1
.config/nvim/plugged/fzf
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a4bc08f5a35da6e374a2ce0da4c931d7fd32fdf1
|
1
.config/nvim/plugged/fzf.vim
Submodule
1
.config/nvim/plugged/fzf.vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit e34f6c129d39b90db44df1107c8b7dfacfd18946
|
1
.config/nvim/plugged/indentLine
Submodule
1
.config/nvim/plugged/indentLine
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 5617a1cf7d315e6e6f84d825c85e3b669d220bfa
|
1
.config/nvim/plugged/nerdcommenter
Submodule
1
.config/nvim/plugged/nerdcommenter
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a5d1663185bee20bfb120c9ab212144444514982
|
1
.config/nvim/plugged/nerdtree
Submodule
1
.config/nvim/plugged/nerdtree
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 81f3eaba295b3fceb2d032db57e5eae99ae480f8
|
1
.config/nvim/plugged/nord-vim
Submodule
1
.config/nvim/plugged/nord-vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit e5a54c7f0928de8b89bc00eea4dfeeb179f546e4
|
1
.config/nvim/plugged/phpactor
Submodule
1
.config/nvim/plugged/phpactor
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 6d400b88d5f790d91427e333caa0cd9d5b0441ad
|
1
.config/nvim/plugged/vim-airline
Submodule
1
.config/nvim/plugged/vim-airline
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit a8b3c254d0e5c43be24298ce16cd01f740fe8d42
|
1
.config/nvim/plugged/vim-gitgutter
Submodule
1
.config/nvim/plugged/vim-gitgutter
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 10998f303cd85405e51380f6dc406dd756c105e8
|
1
.config/nvim/plugged/vim-highlightedyank
Submodule
1
.config/nvim/plugged/vim-highlightedyank
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 931cc6bd53e4a1fdbe592751f0e13c0e401f0a49
|
1
.config/nvim/plugged/vim-polyglot
Submodule
1
.config/nvim/plugged/vim-polyglot
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 730dcb02caab60a6ae5d8b4bdc16d290041061ec
|
1
.config/nvim/plugged/vim-sort-motion
Submodule
1
.config/nvim/plugged/vim-sort-motion
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c8782be8f7da414c6442b3ba4b6abb0345d392d9
|
1
.config/nvim/plugged/vim-surround
Submodule
1
.config/nvim/plugged/vim-surround
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit f51a26d3710629d031806305b6c8727189cd1935
|
1
.config/nvim/plugged/vim-tmux-navigator
Submodule
1
.config/nvim/plugged/vim-tmux-navigator
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0cabb1ef01af0986b7bf6fb7acf631debdbbb470
|
1
.config/nvim/plugged/vim-visual-multi
Submodule
1
.config/nvim/plugged/vim-visual-multi
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 8041a909fc3f740e9d110dd2e95980ff4645785b
|
18
.config/nvim/plugins.vim
Normal file
18
.config/nvim/plugins.vim
Normal 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'
|
5
.config/nvim/plugins/airline.vim
Normal file
5
.config/nvim/plugins/airline.vim
Normal 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 = ''
|
2
.config/nvim/plugins/blamer.vim
Normal file
2
.config/nvim/plugins/blamer.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
let g:blamer_delay = 500
|
||||
let g:blamer_enabled = 1
|
8
.config/nvim/plugins/coc.vim
Normal file
8
.config/nvim/plugins/coc.vim
Normal 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>
|
4
.config/nvim/plugins/nerdtree.vim
Normal file
4
.config/nvim/plugins/nerdtree.vim
Normal file
|
@ -0,0 +1,4 @@
|
|||
let g:NERDTreeShowHidden=1
|
||||
let g:NERDTreeWinPos = "right"
|
||||
|
||||
nnoremap <leader>ne :NERDTreeToggle<CR>
|
2
.config/nvim/plugins/nord.vim
Normal file
2
.config/nvim/plugins/nord.vim
Normal file
|
@ -0,0 +1,2 @@
|
|||
let g:nord_bold_vertical_split_line = 1
|
||||
let g:nord_cursor_line_number_background = 1
|
Loading…
Add table
Add a link
Reference in a new issue