feat: structure work
- split files/ into separate dirs - rename scripts/ to script/, remove .sh extensions - remove publish scripts, tf module, use github host - remove unused install files
This commit is contained in:
@@ -1,55 +0,0 @@
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
|
||||
window:
|
||||
dynamic_title: true
|
||||
dynamic_padding: true
|
||||
decorations: None
|
||||
startup_mode: Windowed
|
||||
|
||||
dimensions:
|
||||
columns: 120
|
||||
lines: 32
|
||||
|
||||
padding:
|
||||
x: 12
|
||||
y: 7
|
||||
|
||||
scrolling:
|
||||
history: 10000
|
||||
multiplier: 3
|
||||
|
||||
font:
|
||||
size: 10.0
|
||||
normal:
|
||||
family: FiraCode Nerd Font Mono
|
||||
style: Regular
|
||||
|
||||
bold:
|
||||
family: FiraCode Nerd Font Mono
|
||||
style: Bold
|
||||
|
||||
italic:
|
||||
family: FiraSansCondensed NF
|
||||
style: Italic
|
||||
|
||||
bold_italic:
|
||||
family: FiraSansCondensed NF
|
||||
style: Bold Italic
|
||||
|
||||
draw_bold_text_with_bright_colors: false
|
||||
background_opacity: 0.95
|
||||
|
||||
cursor:
|
||||
style: Beam
|
||||
unfocused_hollow: true
|
||||
|
||||
live_config_reload: true
|
||||
|
||||
key_bindings:
|
||||
- { key: V, mods: Control|Shift, action: Paste }
|
||||
- { key: C, mods: Control|Shift, action: Copy }
|
||||
- { key: Insert, mods: Shift, action: PasteSelection }
|
||||
- { key: Key0, mods: Control, action: ResetFontSize }
|
||||
- { key: Plus, mods: Control, action: IncreaseFontSize }
|
||||
- { key: Minus, mods: Control, action: DecreaseFontSize }
|
||||
1
files/home/.config/nvim/.gitignore
vendored
1
files/home/.config/nvim/.gitignore
vendored
@@ -1 +0,0 @@
|
||||
plugged
|
||||
@@ -1,111 +0,0 @@
|
||||
" ============================================================================ "
|
||||
" === EDITING OPTIONS === "
|
||||
" ============================================================================ "
|
||||
"
|
||||
" Leader key <SPACE>
|
||||
let g:mapleader=' '
|
||||
|
||||
" Use posix-compliant shell
|
||||
set shell=sh
|
||||
|
||||
" Enable syntax highlighting
|
||||
syntax enable
|
||||
filetype on
|
||||
filetype plugin on
|
||||
|
||||
" Hides buffers instead of closing them
|
||||
set hidden
|
||||
|
||||
" do not wrap long lines by default
|
||||
set nowrap
|
||||
|
||||
" default encoding
|
||||
set encoding=utf-8
|
||||
set fileencoding=utf-8
|
||||
set fileformat=unix
|
||||
|
||||
" Yank and paste with the system clipboard
|
||||
set clipboard=unnamedplus
|
||||
|
||||
" et = expandtab (spaces instead of tabs)
|
||||
" ts = tabstop (the number of spaces that a tab equates to)
|
||||
" sw = shiftwidth (the number of spaces to use when indenting
|
||||
" -- or de-indenting -- a line)
|
||||
" sts = softtabstop (the number of spaces to use when expanding tabs)
|
||||
set et sts=4 sw=4 ts=4
|
||||
set showtabline=4
|
||||
|
||||
set foldenable
|
||||
set foldmethod=indent
|
||||
set foldlevel=99
|
||||
|
||||
set conceallevel=0
|
||||
|
||||
set scrolloff=10
|
||||
|
||||
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable
|
||||
" delays and poor user experience.
|
||||
set updatetime=100
|
||||
set timeoutlen=300
|
||||
|
||||
" Don't pass messages to |ins-completion-menu|.
|
||||
set shortmess=atT
|
||||
|
||||
" Always show the signcolumn, otherwise it would shift the text each time
|
||||
" diagnostics appear/become resolved.
|
||||
if has("patch-8.1.1564")
|
||||
" Recently vim can merge signcolumn and number column into one
|
||||
set signcolumn=number
|
||||
else
|
||||
set signcolumn=yes
|
||||
endif
|
||||
|
||||
" coc.nvim recommendations
|
||||
set nobackup
|
||||
set nowritebackup
|
||||
|
||||
" ============================================================================ "
|
||||
" === UI === "
|
||||
" ============================================================================ "
|
||||
|
||||
" Support italics
|
||||
hi Comment cterm=italic
|
||||
|
||||
" Enable true color support
|
||||
if (has("termguicolors"))
|
||||
set termguicolors
|
||||
hi LineNr ctermbg=NONE guibg=NONE
|
||||
endif
|
||||
|
||||
" Set preview window to appear at bottom and right
|
||||
set splitbelow
|
||||
set splitright
|
||||
|
||||
" Don't dispay mode in command line (airilne already shows it)
|
||||
set noshowmode
|
||||
|
||||
" Set floating window to be slightly transparent
|
||||
set winbl=10
|
||||
|
||||
" Enable ruler
|
||||
set ruler
|
||||
set number
|
||||
set relativenumber
|
||||
|
||||
" Pop-up menu
|
||||
set pumheight=10
|
||||
|
||||
" two lines for command line
|
||||
set cmdheight=2
|
||||
|
||||
" no visual bell
|
||||
set visualbell t_vb=
|
||||
|
||||
" if the search string has an upper case letter in it, the search will be case sensitive
|
||||
set smartcase
|
||||
|
||||
" Redraw on resize
|
||||
autocmd VimResized * redraw!
|
||||
|
||||
" Redraw on writing buffer
|
||||
autocmd BufWritePost * redraw!
|
||||
@@ -1,104 +0,0 @@
|
||||
{
|
||||
"coc.preferences.extensionUpdateCheck": "daily",
|
||||
|
||||
"list.source.files.args": ["--hidden", "--files"],
|
||||
|
||||
"suggest.echodocSupport": true,
|
||||
|
||||
"python.pythonPath": "python3",
|
||||
"python.jediEnabled": false,
|
||||
"python.linting.flake8Enabled": true,
|
||||
"python.linting.pylintEnabled": false,
|
||||
|
||||
"languageserver": {
|
||||
"terraform": {
|
||||
"command": "terraform-ls",
|
||||
"args": ["serve"],
|
||||
"filetypes": ["tf", "terraform"],
|
||||
"initializationOptions": {},
|
||||
"settings": {}
|
||||
},
|
||||
"elmLS": {
|
||||
"command": "elm-language-server",
|
||||
"filetypes": ["elm"],
|
||||
"rootPatterns": ["elm.json"],
|
||||
"initializationOptions": {
|
||||
"elmPath": "elm",
|
||||
"elmFormatPath": "elm-format",
|
||||
"elmTestPath": "elm-test",
|
||||
"elmAnalyseTrigger": "change"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
"explorer.width": 30,
|
||||
"explorer.file.root.template": "[icon] [git] [hidden & 1][root]",
|
||||
"explorer.icon.enableNerdfont": true,
|
||||
"explorer.previewAction.onHover": false,
|
||||
"explorer.icon.enableVimDevicons": false,
|
||||
"explorer.file.showHiddenFiles": true,
|
||||
"explorer.file.autoReveal": true,
|
||||
"explorer.keyMappings.global": {
|
||||
"i": false,
|
||||
|
||||
"gk": "expandablePrev",
|
||||
"gj": "expandableNext",
|
||||
|
||||
"*": "toggleSelection",
|
||||
"<tab>": "actionMenu",
|
||||
|
||||
"h": "collapse",
|
||||
"l": ["expandable?", "expand", "open"],
|
||||
"J": ["toggleSelection", "nodeNext"],
|
||||
"K": ["toggleSelection", "nodePrev"],
|
||||
"gl": "expandRecursive",
|
||||
"gh": "collapseRecursive",
|
||||
|
||||
"o": ["expanded?", "collapse", "expand"],
|
||||
"<cr>": ["expandable?", "cd", "open"],
|
||||
"e": "open",
|
||||
"s": "open:split",
|
||||
"v": "open:vsplit",
|
||||
"t": "open:tab",
|
||||
"<bs>": "gotoParent",
|
||||
"gp": "preview:labeling",
|
||||
|
||||
"y": "copyFilepath",
|
||||
"Y": "copyFilename",
|
||||
"c": "copyFile",
|
||||
"x": "cutFile",
|
||||
"p": "pasteFile",
|
||||
"d": "delete",
|
||||
"D": "deleteForever",
|
||||
|
||||
"a": "addFile",
|
||||
"A": "addDirectory",
|
||||
"r": "rename",
|
||||
|
||||
".": "toggleHidden",
|
||||
"R": "refresh",
|
||||
|
||||
"?": "help",
|
||||
"q": "quit",
|
||||
"<esc>": "esc",
|
||||
"X": "systemExecute",
|
||||
"gd": "listDrive",
|
||||
|
||||
"f": "search",
|
||||
"F": "searchRecursive",
|
||||
|
||||
"gf": "gotoSource:file",
|
||||
"gb": "gotoSource:buffer",
|
||||
|
||||
"[[": "sourcePrev",
|
||||
"]]": "sourceNext",
|
||||
|
||||
"[d": "diagnosticPrev",
|
||||
"]d": "diagnosticNext",
|
||||
|
||||
"[c": "gitPrev",
|
||||
"]c": "gitNext",
|
||||
"<<": "gitStage",
|
||||
">>": "gitUnstage"
|
||||
}
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
runtime base.vim
|
||||
|
||||
runtime plugins.vim
|
||||
runtime plugins-config.vim
|
||||
|
||||
runtime mappings.vim
|
||||
@@ -1,155 +0,0 @@
|
||||
" Disable arrow keys
|
||||
noremap <Up> <NOP>
|
||||
noremap <Down> <NOP>
|
||||
noremap <Left> <NOP>
|
||||
noremap <Right> <NOP>
|
||||
inoremap <Up> <NOP>
|
||||
inoremap <Down> <NOP>
|
||||
inoremap <Left> <NOP>
|
||||
inoremap <Right> <NOP>
|
||||
|
||||
|
||||
" Disable manual and ex mode
|
||||
nnoremap <F1> <nop>
|
||||
nnoremap Q <nop>
|
||||
|
||||
|
||||
" Quick escape
|
||||
inoremap jk <Esc>
|
||||
inoremap kj <Esc>
|
||||
|
||||
|
||||
" Quick save
|
||||
nnoremap <C-s> :w<CR>
|
||||
|
||||
|
||||
" Better tabbing
|
||||
" When indenting, reselect previous selection
|
||||
" if in visual mode
|
||||
vnoremap < <gv
|
||||
vnoremap > >gv
|
||||
|
||||
|
||||
" Quick window switching
|
||||
" Ctrl-[hjkl]
|
||||
nnoremap <silent> <C-h> <C-w>h
|
||||
nnoremap <silent> <C-j> <C-w>j
|
||||
nnoremap <silent> <C-k> <C-w>k
|
||||
nnoremap <silent> <C-l> <C-w>l
|
||||
|
||||
|
||||
" Quick window resizing
|
||||
" Alt-[hjkl]
|
||||
nnoremap <silent> <M-j> :resize -2<CR>
|
||||
nnoremap <silent> <M-k> :resize +2<CR>
|
||||
nnoremap <silent> <M-h> :vertical resize -2<CR>
|
||||
nnoremap <silent> <M-l> :vertical resize +2<CR>
|
||||
|
||||
|
||||
" Quicker omni complete nav
|
||||
" Ctrl-[jk]
|
||||
inoremap <expr> <c-j> ("\<C-n>")
|
||||
inoremap <expr> <c-k> ("\<C-p>")
|
||||
|
||||
|
||||
" Distraction free typing
|
||||
" <l>l - Toggle Goyo and Limelight
|
||||
nnoremap <silent> <leader>l :Goyo<cr>
|
||||
autocmd! User GoyoEnter Limelight
|
||||
autocmd! User GoyoLeave Limelight!
|
||||
|
||||
|
||||
" Strip whitespace
|
||||
" <l>y - Remove all trailing whitespace
|
||||
nnoremap <silent> <leader>y :StripWhitespace<cr>
|
||||
|
||||
|
||||
" fzf
|
||||
" <l>p - Search files in current workdir
|
||||
" <l>P - Search files in $HOME
|
||||
" <l>g - Search commits for current buffer
|
||||
" <l>G - Search commits in current workdir
|
||||
" <l>f - Search source in current workdir
|
||||
" <l>; - Search buffers
|
||||
nnoremap <silent> <leader>p :Files<cr>
|
||||
nnoremap <silent> <leader>P :Files ~<cr>
|
||||
nnoremap <silent> <leader>g :BCommits<cr>
|
||||
nnoremap <silent> <leader>G :Commits<cr>
|
||||
nnoremap <silent> <leader>f :Rg<cr>
|
||||
nnoremap <silent> <leader>; :Buffers<cr>
|
||||
|
||||
|
||||
" coc.nvim explorer
|
||||
" <l>e - Toggle explorer on/off
|
||||
" <l>E - Open current file location
|
||||
nmap <silent> <leader>e :CocCommand explorer<cr>
|
||||
nmap <silent> <leader>E :CocCommand explorer --reveal expand('<sfile>')<cr>
|
||||
|
||||
|
||||
" coc.nvim
|
||||
" Ctrl-n - Go to next diagnostic
|
||||
" Ctrl-p - Go to previous diagnostic
|
||||
" <l>a - Open action list
|
||||
" <l>c - Open command list
|
||||
" <l>d - Jump to definition of current symbol
|
||||
" <l>r - Jump to references of current symbol
|
||||
" <l>j - Jump to implementation of current symbol
|
||||
" <l>s - Fuzzy search current project symbols
|
||||
" <l>n - Symbol renaming
|
||||
" <l>k - Symbol renaming
|
||||
nmap <silent> <C-n> <Plug>(coc-diagnostic-next)
|
||||
nmap <silent> <C-p> <Plug>(coc-diagnostic-prev)
|
||||
nmap <silent> <leader>a <Plug>(coc-codeaction-line)
|
||||
nmap <silent> <leader>d <Plug>(coc-definition)
|
||||
nmap <silent> <leader>r <Plug>(coc-references)
|
||||
nmap <silent> <leader>j <Plug>(coc-implementation)
|
||||
nmap <silent> <leader>s :<C-u>CocList -I -N --top symbols<cr>
|
||||
nmap <silent> <leader>n <Plug>(coc-rename)
|
||||
nmap <silent> <leader>c :CocCommand<cr>
|
||||
|
||||
" Search shorcuts
|
||||
" <l>h - Find and replace
|
||||
" <l>/ - Clear highlighted search terms while preserving history
|
||||
nnoremap <leader>h :%s///<left><left>
|
||||
nnoremap <silent> <leader>/ :nohlsearch<cr>
|
||||
|
||||
|
||||
" <c-@> - trigger completion
|
||||
" <tab> - trigger completion and navigate to next complete item
|
||||
inoremap <silent><expr> <c-@> coc#refresh()
|
||||
inoremap <silent><expr> <TAB>
|
||||
\ pumvisible() ? "\<C-n>" :
|
||||
\ <SID>check_back_space() ? "\<TAB>" :
|
||||
\ coc#refresh()
|
||||
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>"
|
||||
|
||||
|
||||
|
||||
function! s:check_back_space() abort
|
||||
let col = col('.') - 1
|
||||
return !col || getline('.')[col - 1] =~ '\s'
|
||||
endfunction
|
||||
|
||||
" K - show documentation in preview window
|
||||
nnoremap <silent> K :call <SID>show_documentation()<cr>
|
||||
|
||||
function! s:show_documentation()
|
||||
if (index(['vim','help'], &filetype) >= 0)
|
||||
execute 'h '.expand('<cword>')
|
||||
elseif (coc#rpc#ready())
|
||||
call CocActionAsync('doHover')
|
||||
else
|
||||
execute '!' . &keywordprg . " " . expand('<cword>')
|
||||
endif
|
||||
endfunction
|
||||
|
||||
" Highlight the symbol and its references when holding the cursor.
|
||||
autocmd CursorHold * silent call CocActionAsync('highlight')
|
||||
|
||||
augroup mygroup
|
||||
autocmd!
|
||||
" Setup formatexpr specified filetype(s).
|
||||
autocmd FileType typescript,json setl formatexpr=CocAction('formatSelected')
|
||||
" Update signature help on jump placeholder.
|
||||
autocmd User CocJumpPlaceholder call CocActionAsync('showSignatureHelp')
|
||||
augroup end
|
||||
@@ -1,27 +0,0 @@
|
||||
" Colourscheme
|
||||
set background=dark
|
||||
colorscheme base16-seti
|
||||
|
||||
" Close preview window when completion is done.
|
||||
autocmd! CompleteDone * if pumvisible() == 0 | pclose | endif
|
||||
|
||||
" Disable deprecated python2 provider
|
||||
let g:loaded_python_provider = 0
|
||||
|
||||
" " Call method on window enter
|
||||
" augroup WindowManagement
|
||||
" autocmd!
|
||||
" autocmd WinEnter * call Handle_Win_Enter()
|
||||
" augroup END
|
||||
|
||||
" " Change highlight group of preview window when open
|
||||
" function! Handle_Win_Enter()
|
||||
" if &previewwindow
|
||||
" setlocal winhighlight=Normal:MarkdownError
|
||||
" endif
|
||||
" endfunction
|
||||
"
|
||||
" {{{
|
||||
let g:startify_custom_header =
|
||||
\ startify#pad(split(system('fortune | cowsay -f tux'), '\n'))
|
||||
" }}}
|
||||
@@ -1,190 +0,0 @@
|
||||
call plug#begin('~/.config/nvim/plugged')
|
||||
|
||||
" sensible defaults
|
||||
Plug 'tpope/vim-sensible'
|
||||
|
||||
" colorscheme
|
||||
Plug 'chriskempson/base16-vim'
|
||||
|
||||
" dev icons
|
||||
Plug 'ryanoasis/vim-devicons'
|
||||
" {{{
|
||||
let g:webdevicons_enable_airline_tabline = 1
|
||||
let g:webdevicons_enable_airline_statusline = 1
|
||||
|
||||
let g:webdevicons_enable_startify = 1
|
||||
" }}}
|
||||
|
||||
" status line
|
||||
Plug 'vim-airline/vim-airline'
|
||||
Plug 'vim-airline/vim-airline-themes'
|
||||
" {{{
|
||||
" Theme
|
||||
let g:airline_theme = 'base16_seti'
|
||||
|
||||
" Enable extensions
|
||||
let g:airline_extensions = ['branch', 'coc', 'hunks', 'tabline', 'whitespace', 'fzf']
|
||||
|
||||
" Do not draw separators for empty sections (only for the active window) >
|
||||
let g:airline_skip_empty_sections = 0
|
||||
|
||||
" Custom setup that removes filetype/whitespace from default vim airline bar
|
||||
let g:airline#extensions#default#layout = [['a', 'b', 'c'], ['x', 'z', 'warning', 'error']]
|
||||
|
||||
" Customize vim airline per filetype
|
||||
" 'list' - Only show file type plus current line number out of total
|
||||
let g:airline_filetype_overrides = {
|
||||
\ 'coc-explorer': [ ' Explore', '' ],
|
||||
\ 'fugitive': ['fugitive', '%{airline#util#wrap(airline#extensions#branch#get_head(),80)}'],
|
||||
\ 'help': [ 'Help', '%f' ],
|
||||
\ 'startify': [ 'startify', '' ],
|
||||
\ 'vim-plug': [ 'Plugins', '' ],
|
||||
\ 'list': [ '%y', '%l/%L'],
|
||||
\ }
|
||||
|
||||
" Enable powerline fonts
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline_left_sep = ''
|
||||
let g:airline_right_sep = ''
|
||||
let g:airline_right_alt_sep = ''
|
||||
|
||||
" Enable caching of syntax highlighting groups
|
||||
let g:airline_highlighting_cache = 1
|
||||
|
||||
" Enable tabline
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
let g:airline#extensions#tabline#left_sep = ' '
|
||||
let g:airline#extensions#tabline#left_alt_sep = '|'
|
||||
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
|
||||
" }}}
|
||||
|
||||
" start screen
|
||||
Plug 'mhinz/vim-startify'
|
||||
|
||||
" distraction-free typing
|
||||
Plug 'junegunn/goyo.vim'
|
||||
Plug 'junegunn/limelight.vim'
|
||||
|
||||
" DOcumentation GEneraton
|
||||
Plug 'kkoomen/vim-doge', { 'do': { -> doge#install({ 'headless': 1 }) } }
|
||||
|
||||
" auto-close plugins
|
||||
Plug 'tpope/vim-endwise'
|
||||
|
||||
" easier commentary
|
||||
Plug 'tpope/vim-commentary'
|
||||
|
||||
" easier alignment
|
||||
Plug 'godlygeek/tabular'
|
||||
|
||||
" extra visual feedback
|
||||
Plug 'junegunn/rainbow_parentheses.vim'
|
||||
" {{{
|
||||
let g:rainbow_active = 1
|
||||
let g:rainbow#pairs = [['(', ')'], ['[', ']'], ['{', '}']]
|
||||
let g:rainbow_conf = {'guis': ['bold']}
|
||||
" }}}
|
||||
Plug 'unblevable/quick-scope'
|
||||
Plug 'ntpeters/vim-better-whitespace'
|
||||
|
||||
" heuristic whitepsace
|
||||
Plug 'tpope/vim-sleuth'
|
||||
|
||||
" better motion
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'justinmk/vim-sneak'
|
||||
" {{{
|
||||
let g:sneak#label = 1
|
||||
let g:sneak#prompt = ' '
|
||||
|
||||
" case insensitive
|
||||
let g:sneak#use_ic_scs = 1
|
||||
|
||||
" move to next search if cursor hasn't moved
|
||||
let g:sneak#s_next = 1
|
||||
" }}}
|
||||
|
||||
" git tools
|
||||
Plug 'mhinz/vim-signify'
|
||||
" {{{
|
||||
let g:signify_sign_add = '+'
|
||||
let g:signify_sign_delete = '-'
|
||||
let g:signify_sign_change = '~'
|
||||
|
||||
let g:signify_sign_show_count = 0
|
||||
let g:signify_sign_show_text = 1
|
||||
" }}}
|
||||
Plug 'tpope/vim-fugitive'
|
||||
|
||||
" fzf
|
||||
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||
Plug 'junegunn/fzf.vim'
|
||||
" {{{
|
||||
let g:fzf_layout = { 'down': '~40%' }
|
||||
let g:fzf_preview_window = ['right:50%', 'ctrl-/']
|
||||
let g:fzf_buffers_jump = 1
|
||||
" }}}
|
||||
Plug 'antoinemadec/coc-fzf'
|
||||
Plug 'airblade/vim-rooter'
|
||||
|
||||
" coc
|
||||
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
|
||||
" {{{
|
||||
let g:coc_global_extensions = [
|
||||
\ 'coc-actions',
|
||||
\ 'coc-clangd',
|
||||
\ 'coc-css',
|
||||
\ 'coc-docker',
|
||||
\ 'coc-emmet',
|
||||
\ 'coc-emoji',
|
||||
\ 'coc-eslint',
|
||||
\ 'coc-explorer',
|
||||
\ 'coc-fish',
|
||||
\ 'coc-fzf-preview',
|
||||
\ 'coc-git',
|
||||
\ 'coc-go',
|
||||
\ 'coc-groovy',
|
||||
\ 'coc-highlight',
|
||||
\ 'coc-html',
|
||||
\ 'coc-json',
|
||||
\ 'coc-lists',
|
||||
\ 'coc-marketplace',
|
||||
\ 'coc-perl',
|
||||
\ 'coc-prettier',
|
||||
\ 'coc-python',
|
||||
\ 'coc-react-refactor',
|
||||
\ 'coc-rust-analyzer',
|
||||
\ 'coc-sh',
|
||||
\ 'coc-snippets',
|
||||
\ 'coc-styled-components',
|
||||
\ 'coc-svg',
|
||||
\ 'coc-swagger',
|
||||
\ 'coc-tabnine',
|
||||
\ 'coc-toml',
|
||||
\ 'coc-tslint',
|
||||
\ 'coc-tslint-plugin',
|
||||
\ 'coc-tsserver',
|
||||
\ 'coc-vimlsp',
|
||||
\ 'coc-xml',
|
||||
\ 'coc-yaml',
|
||||
\ ]
|
||||
" }}}
|
||||
|
||||
" ts
|
||||
Plug 'HerringtonDarkholme/yats.vim'
|
||||
Plug 'maxmellon/vim-jsx-pretty'
|
||||
|
||||
" elm
|
||||
Plug 'andys8/vim-elm-syntax'
|
||||
|
||||
|
||||
" debugger
|
||||
Plug 'puremourning/vimspector'
|
||||
" {{{
|
||||
let g:vimspector_enable_mappings = 'HUMAN'
|
||||
" }}}
|
||||
|
||||
" Terminal
|
||||
Plug 'kassio/neoterm'
|
||||
|
||||
call plug#end()
|
||||
@@ -1,234 +0,0 @@
|
||||
;; -*- mode: emacs-lisp; lexical-binding: t -*-
|
||||
(defun dotspacemacs/layers ()
|
||||
"Layer configuration:
|
||||
This function should only modify configuration layer settings."
|
||||
(setq-default
|
||||
dotspacemacs-distribution 'spacemacs
|
||||
|
||||
dotspacemacs-enable-lazy-installation 'unused
|
||||
dotspacemacs-ask-for-lazy-installation t
|
||||
|
||||
dotspacemacs-configuration-layer-path '()
|
||||
dotspacemacs-configuration-layers '(
|
||||
(typescript :variables
|
||||
typescript-backend 'lsp
|
||||
typescript-fmt-tool 'prettier)
|
||||
react
|
||||
javascript
|
||||
auto-completion
|
||||
better-defaults
|
||||
emacs-lisp
|
||||
git
|
||||
helm
|
||||
lsp
|
||||
markdown
|
||||
multiple-cursors
|
||||
org
|
||||
(shell :variables
|
||||
shell-default-height 30
|
||||
shell-default-position 'bottom
|
||||
shell-default-shell 'multi-term)
|
||||
spell-checking
|
||||
syntax-checking
|
||||
version-control
|
||||
treemacs)
|
||||
|
||||
dotspacemacs-additional-packages '()
|
||||
dotspacemacs-frozen-packages '()
|
||||
dotspacemacs-excluded-packages '()
|
||||
|
||||
dotspacemacs-install-packages 'used-only))
|
||||
|
||||
(defun dotspacemacs/init ()
|
||||
"Initialization:
|
||||
This function is called at the very beginning of Spacemacs startup,
|
||||
before layer configuration.
|
||||
It should only modify the values of Spacemacs settings."
|
||||
(setq-default
|
||||
dotspacemacs-enable-emacs-pdumper nil
|
||||
dotspacemacs-emacs-pdumper-executable-file "emacs"
|
||||
dotspacemacs-emacs-dumper-dump-file (format "spacemacs-%s.pdmp" emacs-version)
|
||||
|
||||
dotspacemacs-elpa-https t
|
||||
dotspacemacs-elpa-timeout 5
|
||||
dotspacemacs-elpa-subdirectory 'emacs-version
|
||||
|
||||
dotspacemacs-gc-cons '(100000000 0.1)
|
||||
|
||||
dotspacemacs-read-process-output-max (* 1024 1024)
|
||||
|
||||
dotspacemacs-use-spacelpa nil
|
||||
dotspacemacs-verify-spacelpa-archives t
|
||||
|
||||
dotspacemacs-check-for-update nil
|
||||
|
||||
|
||||
dotspacemacs-editing-style 'hybrid
|
||||
|
||||
dotspacemacs-startup-buffer-show-version t
|
||||
dotspacemacs-startup-banner 'random
|
||||
dotspacemacs-startup-lists '((recents . 5)
|
||||
(projects . 7))
|
||||
dotspacemacs-startup-buffer-responsive t
|
||||
dotspacemacs-startup-buffer-multi-digit-delay 0.4
|
||||
|
||||
dotspacemacs-new-empty-buffer-major-mode 'text-mode
|
||||
|
||||
dotspacemacs-scratch-mode 'text-mode
|
||||
dotspacemacs-scratch-buffer-persistent nil
|
||||
dotspacemacs-scratch-buffer-unkillable nil
|
||||
dotspacemacs-initial-scratch-message nil
|
||||
|
||||
dotspacemacs-themes '(spacemacs-dark
|
||||
spacemacs-light)
|
||||
|
||||
dotspacemacs-mode-line-theme '(spacemacs :separator wave :separator-scale 1.5)
|
||||
|
||||
dotspacemacs-colorize-cursor-according-to-state t
|
||||
|
||||
dotspacemacs-default-font '("Source Code Pro"
|
||||
:size 10.0
|
||||
:weight normal
|
||||
:width normal)
|
||||
|
||||
dotspacemacs-leader-key "SPC"
|
||||
dotspacemacs-emacs-command-key "SPC"
|
||||
|
||||
dotspacemacs-ex-command-key ":"
|
||||
dotspacemacs-emacs-leader-key "M-m"
|
||||
|
||||
dotspacemacs-major-mode-leader-key ","
|
||||
dotspacemacs-major-mode-emacs-leader-key (if window-system "<M-return>" "C-M-m")
|
||||
|
||||
dotspacemacs-distinguish-gui-tab nil
|
||||
|
||||
dotspacemacs-default-layout-name "Default"
|
||||
|
||||
dotspacemacs-display-default-layout nil
|
||||
|
||||
dotspacemacs-auto-resume-layouts nil
|
||||
|
||||
dotspacemacs-auto-generate-layout-names nil
|
||||
|
||||
dotspacemacs-large-file-size 1
|
||||
|
||||
dotspacemacs-auto-save-file-location 'cache
|
||||
|
||||
dotspacemacs-max-rollback-slots 5
|
||||
|
||||
dotspacemacs-enable-paste-transient-state nil
|
||||
|
||||
dotspacemacs-which-key-delay 0.4
|
||||
|
||||
dotspacemacs-which-key-position 'bottom
|
||||
|
||||
dotspacemacs-switch-to-buffer-prefers-purpose nil
|
||||
|
||||
dotspacemacs-loading-progress-bar nil
|
||||
|
||||
dotspacemacs-fullscreen-at-startup t
|
||||
dotspacemacs-fullscreen-use-non-native nil
|
||||
|
||||
dotspacemacs-maximized-at-startup nil
|
||||
|
||||
dotspacemacs-undecorated-at-startup nil
|
||||
|
||||
dotspacemacs-active-transparency 90
|
||||
|
||||
dotspacemacs-inactive-transparency 90
|
||||
|
||||
dotspacemacs-show-transient-state-title t
|
||||
|
||||
dotspacemacs-show-transient-state-color-guide t
|
||||
|
||||
dotspacemacs-mode-line-unicode-symbols t
|
||||
|
||||
dotspacemacs-smooth-scrolling t
|
||||
|
||||
dotspacemacs-scroll-bar-while-scrolling t
|
||||
|
||||
dotspacemacs-line-numbers 'relative
|
||||
|
||||
dotspacemacs-folding-method 'evil
|
||||
|
||||
dotspacemacs-smartparens-strict-mode nil
|
||||
|
||||
dotspacemacs-activate-smartparens-mode t
|
||||
|
||||
dotspacemacs-smart-closing-parenthesis t
|
||||
|
||||
dotspacemacs-highlight-delimiters 'all
|
||||
|
||||
dotspacemacs-enable-server nil
|
||||
dotspacemacs-server-socket-dir nil
|
||||
dotspacemacs-persistent-server nil
|
||||
|
||||
dotspacemacs-search-tools '("rg" "ag" "pt" "ack" "grep")
|
||||
|
||||
dotspacemacs-frame-title-format "%I@%S"
|
||||
dotspacemacs-icon-title-format nil
|
||||
|
||||
dotspacemacs-show-trailing-whitespace t
|
||||
dotspacemacs-whitespace-cleanup 'changed
|
||||
|
||||
dotspacemacs-use-clean-aindent-mode t
|
||||
|
||||
dotspacemacs-swap-number-row nil
|
||||
|
||||
dotspacemacs-zone-out-when-idle nil
|
||||
|
||||
dotspacemacs-pretty-docs nil
|
||||
|
||||
dotspacemacs-home-shorten-agenda-source nil
|
||||
|
||||
dotspacemacs-byte-compile nil))
|
||||
|
||||
(defun dotspacemacs/user-env ()
|
||||
"Environment variables setup.
|
||||
This function defines the environment variables for your Emacs session. By
|
||||
default it calls `spacemacs/load-spacemacs-env' which loads the environment
|
||||
variables declared in `~/.spacemacs.env' or `~/.spacemacs.d/.spacemacs.env'.
|
||||
See the header of this file for more information."
|
||||
(spacemacs/load-spacemacs-env))
|
||||
|
||||
(defun dotspacemacs/user-init ()
|
||||
"Initialization for user code:
|
||||
This function is called immediately after `dotspacemacs/init', before layer
|
||||
configuration.
|
||||
It is mostly for variables that should be set before packages are loaded.
|
||||
If you are unsure, try setting them in `dotspacemacs/user-config' first.")
|
||||
|
||||
|
||||
(defun dotspacemacs/user-load ()
|
||||
"Library to load while dumping.
|
||||
This function is called only while dumping Spacemacs configuration. You can
|
||||
`require' or `load' the libraries of your choice that will be included in the
|
||||
dump.")
|
||||
|
||||
|
||||
(defun dotspacemacs/user-config ()
|
||||
"Configuration for user code:
|
||||
This function is called at the very end of Spacemacs startup, after layer
|
||||
configuration.
|
||||
Put your configuration code here, except for variables that should be set
|
||||
before packages are loaded.")
|
||||
|
||||
|
||||
(defun dotspacemacs/emacs-custom-settings ()
|
||||
"Emacs custom settings.
|
||||
This is an auto-generated function, do not modify its content directly, use
|
||||
Emacs customize menu instead.
|
||||
This function is called at the very end of Spacemacs initialization."
|
||||
(custom-set-variables
|
||||
'(ansi-color-faces-vector
|
||||
[default default default italic underline success warning error])
|
||||
'(custom-enabled-themes '(spacemacs-dark))
|
||||
'(custom-safe-themes
|
||||
'("bffa9739ce0752a37d9b1eee78fc00ba159748f50dc328af4be661484848e476" default))
|
||||
'(evil-want-Y-yank-to-eol nil)
|
||||
'(package-selected-packages
|
||||
'(yasnippet-snippets xterm-color vterm unfill treemacs-magit terminal-here smeargle shell-pop orgit-forge orgit org-rich-yank org-projectile org-category-capture org-present org-pomodoro alert log4e gntp org-mime org-download org-cliplink org-brain mwim multi-term mmm-mode markdown-toc magit-section lsp-ui lsp-origami origami helm-org-rifle helm-lsp helm-gitignore helm-git-grep helm-company helm-c-yasnippet gnuplot gitignore-templates gitignore-mode gitconfig-mode gitattributes-mode git-timemachine git-messenger git-link git-gutter-fringe+ fringe-helper git-gutter+ gh-md fuzzy forge magit ghub closql emacsql-sqlite emacsql treepy git-commit with-editor transient flyspell-correct-helm flyspell-correct flycheck-pos-tip pos-tip evil-org eshell-z eshell-prompt-extras esh-help browse-at-remote auto-yasnippet auto-dictionary ac-ispell auto-complete tide web-mode typescript-mode rjsx-mode emmet-mode web-beautify tern prettier-js npm-mode nodejs-repl livid-mode skewer-mode js2-refactor yasnippet multiple-cursors js2-mode js-doc import-js grizzl impatient-mode htmlize simple-httpd helm-gtags ggtags dap-mode lsp-treemacs bui lsp-mode markdown-mode counsel-gtags counsel swiper ivy company add-node-modules-path ws-butler writeroom-mode winum which-key volatile-highlights vi-tilde-fringe uuidgen use-package undo-tree treemacs-projectile treemacs-persp treemacs-icons-dired treemacs-evil toc-org symon symbol-overlay string-inflection string-edit spaceline-all-the-icons restart-emacs request rainbow-delimiters quickrun popwin pcre2el password-generator paradox overseer org-superstar open-junk-file nameless multi-line macrostep lorem-ipsum link-hint indent-guide hybrid-mode hungry-delete hl-todo highlight-parentheses highlight-numbers highlight-indentation helm-xref helm-themes helm-swoop helm-purpose helm-projectile helm-org helm-mode-manager helm-make helm-ls-git helm-flx helm-descbinds helm-ag google-translate golden-ratio font-lock+ flycheck-package flycheck-elsa flx-ido fancy-battery eyebrowse expand-region evil-visualstar evil-visual-mark-mode evil-unimpaired evil-tutor evil-textobj-line evil-surround evil-numbers evil-nerd-commenter evil-mc evil-matchit evil-lisp-state evil-lion evil-indent-plus evil-iedit-state evil-goggles evil-exchange evil-escape evil-ediff evil-easymotion evil-collection evil-cleverparens evil-args evil-anzu eval-sexp-fu emr elisp-slime-nav editorconfig dumb-jump drag-stuff dotenv-mode dired-quick-sort diminish devdocs define-word column-enforce-mode clean-aindent-mode centered-cursor-mode auto-highlight-symbol auto-compile aggressive-indent ace-link ace-jump-helm-line))
|
||||
'(show-paren-mode t))
|
||||
(custom-set-faces
|
||||
)
|
||||
)
|
||||
Reference in New Issue
Block a user