-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
379 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,243 @@ | ||
scriptencoding utf-8 | ||
|
||
function! myspacevim#before() abort | ||
set tabstop=2 | ||
set softtabstop=2 | ||
set shiftwidth=2 | ||
set textwidth=120 | ||
set nofoldenable | ||
" set icm=split | ||
set wrap | ||
let g:spacevim_enable_guicolors = 0 | ||
|
||
if exists('$VIRTUAL_ENV') | ||
let g:python3_host_prog = substitute(system('which -a python3 | head -n2 | tail -n1'), '\n', '', 'g') | ||
else | ||
let g:python3_host_prog = '/usr/bin/python3' | ||
endif | ||
|
||
let g:startify_custom_header = [ | ||
\'', | ||
\'___________ .__ ', | ||
\'\__ ___/___ ____ | |__ _________ __ __ ____ ', | ||
\' | |_/ __ \_/ ___\| | \ / ___\__ \ | | \/ \ ', | ||
\' | |\ ___/\ \___| Y \/ /_/ > __ \| | / | \', | ||
\' |____| \___ >\___ >___| /\___ (____ /____/|___| /', | ||
\' \/ \/ \//_____/ \/ \/ ', | ||
\' www.techgaun.com https://github.com/techgaun ', | ||
\] | ||
let g:spacevim_enable_debug = 0 | ||
let g:spacevim_realtime_leader_guide = 1 | ||
let g:spacevim_default_indent = 2 | ||
let g:spacevim_max_column = 120 | ||
let g:spacevim_colorscheme = 'molokai' | ||
let g:mapleader = ',' | ||
let g:localmapleader = ',' | ||
let g:LanguageClient_autoStart = 1 | ||
let g:spacevim_lint_on_save = 1 | ||
let g:spacevim_auto_disable_touchpad = 0 | ||
let g:spacevim_enable_neomake = 0 | ||
let g:spacevim_enable_ale = 1 | ||
let g:ale_fix_on_save = 1 | ||
let g:ale_lint_on_enter = 0 | ||
|
||
let g:ale_elixir_elixir_ls_release = $HOME."/projects/elixir-ls/rel" | ||
let g:ale_linters = { | ||
\ 'elixir': ['credo', 'dialyxir', 'elixir-ls'] | ||
\} | ||
|
||
let g:ale_fixers = { | ||
\ 'javascript': ['eslint'], | ||
\} | ||
|
||
let g:spacevim_enable_vimfiler_welcome = 1 | ||
let g:spacevim_enable_debug = 0 | ||
let g:spacevim_enable_tabline_filetype_icon = 1 | ||
let g:spacevim_enable_os_fileformat_icon = 1 | ||
let g:spacevim_buffer_index_type = 1 | ||
let g:neomake_vim_enabled_makers = ['vint'] | ||
let g:vim_json_syntax_conceal = 0 | ||
let g:indentLine_color_term = 130 | ||
let g:indentLine_char = '¦' | ||
|
||
" goyo settings | ||
let g:goyo_width = 110 | ||
let g:goyo_height = '90%' | ||
|
||
let g:clang2_placeholder_next = '' | ||
let g:clang2_placeholder_prev = '' | ||
let g:deoplete#sources#clang#executable = '/usr/bin/clang-4.0' | ||
|
||
augroup NERDCommenter | ||
autocmd FileType elixir,sh,vim let g:NERDSpaceDelims = 1 | ||
augroup end | ||
|
||
if executable('ag') | ||
let g:ctrlp_user_command = 'ag %s -l --nocolor --hidden -g ""' | ||
let g:ackprg = 'ag --vimgrep --smart-case' | ||
cnoreabbrev ag Ack | ||
cnoreabbrev aG Ack | ||
cnoreabbrev Ag Ack | ||
cnoreabbrev AG Ack | ||
endif | ||
|
||
iabbrev adn and | ||
iabbrev THis This | ||
iabbrev THe The | ||
iabbrev @@ samar+oss@techgaun.com | ||
iabbrev ccopy Copyright 2017 techgaun, all rights reserved. | ||
iabbrev mysite http://www.techgaun.com | ||
iabbrev mygh https://github.com/techgaun | ||
iabbrev mytw https://twitter.com/techgaun | ||
|
||
map <Left> :echo "हुँदै हुँदैन!"<cr> | ||
map <Right> :echo "हुँदै हुँदैन!"<cr> | ||
map <Up> :echo "हुँदै हुँदैन!"<cr> | ||
map <Down> :echo "हुँदै हुँदैन!"<cr> | ||
nnoremap <leader>ev :vsplit ~/.SpaceVim.d/init.toml<cr> | ||
nnoremap <leader>Sv :source ~/.SpaceVim.d/init.toml<cr> | ||
nnoremap <leader>jt :! find . -type f -iregex ".*\.js$" -not -path "./node_modules/*" -exec jsctags {} -f \; \| sed '/^$/d' \| sort > tags | ||
augroup fmtpy | ||
autocmd FileType python nnoremap <Leader><Leader>= :0,$!yapf<CR> | ||
augroup END | ||
|
||
" ctags stuff | ||
let g:tagbar_type_ansible = { | ||
\ 'ctagstype' : 'ansible', | ||
\ 'kinds' : [ | ||
\ 't:tasks' | ||
\ ], | ||
\ 'sort' : 0 | ||
\ } | ||
|
||
let g:tagbar_type_coffee = { | ||
\ 'ctagstype' : 'coffee', | ||
\ 'kinds' : [ | ||
\ 'c:classes', | ||
\ 'm:methods', | ||
\ 'f:functions', | ||
\ 'v:variables', | ||
\ 'f:fields', | ||
\ ] | ||
\ } | ||
|
||
let g:tagbar_type_css = { | ||
\ 'ctagstype' : 'Css', | ||
\ 'kinds' : [ | ||
\ 'c:classes', | ||
\ 's:selectors', | ||
\ 'i:identities' | ||
\ ] | ||
\ } | ||
|
||
let g:tagbar_type_elixir = { | ||
\ 'ctagstype' : 'elixir', | ||
\ 'kinds' : [ | ||
\ 'f:functions', | ||
\ 'functions:functions', | ||
\ 'c:callbacks', | ||
\ 'd:delegates', | ||
\ 'e:exceptions', | ||
\ 'i:implementations', | ||
\ 'a:macros', | ||
\ 'o:operators', | ||
\ 'm:modules', | ||
\ 'p:protocols', | ||
\ 'r:records', | ||
\ 't:tests' | ||
\ ] | ||
\ } | ||
|
||
let g:tagbar_type_markdown = { | ||
\ 'ctagstype' : 'markdown', | ||
\ 'kinds' : [ | ||
\ 'h:Heading_L1', | ||
\ 'i:Heading_L2', | ||
\ 'k:Heading_L3' | ||
\ ] | ||
\ } | ||
|
||
let g:tagbar_type_puppet = { | ||
\ 'ctagstype': 'puppet', | ||
\ 'kinds': [ | ||
\'c:class', | ||
\'s:site', | ||
\'n:node', | ||
\'d:definition' | ||
\] | ||
\} | ||
|
||
let g:tagbar_type_ruby = { | ||
\ 'kinds' : [ | ||
\ 'm:modules', | ||
\ 'c:classes', | ||
\ 'd:describes', | ||
\ 'C:contexts', | ||
\ 'f:methods', | ||
\ 'F:singleton methods' | ||
\ ] | ||
\ } | ||
|
||
let g:tagbar_type_rust = { | ||
\ 'ctagstype' : 'rust', | ||
\ 'kinds' : [ | ||
\'T:types,type definitions', | ||
\'f:functions,function definitions', | ||
\'g:enum,enumeration names', | ||
\'s:structure names', | ||
\'m:modules,module names', | ||
\'c:consts,static constants', | ||
\'t:traits', | ||
\'i:impls,trait implementations', | ||
\] | ||
\} | ||
|
||
let g:tagbar_type_typescript = { | ||
\ 'ctagstype': 'typescript', | ||
\ 'kinds': [ | ||
\ 'c:classes', | ||
\ 'n:modules', | ||
\ 'f:functions', | ||
\ 'v:variables', | ||
\ 'v:varlambdas', | ||
\ 'm:members', | ||
\ 'i:interfaces', | ||
\ 'e:enums', | ||
\ ] | ||
\ } | ||
|
||
let g:vimfiler_ignore_pattern = get(g:, 'vimfiler_ignore_pattern', [ | ||
\ '^\.git$', | ||
\ '^\.DS_Store$', | ||
\ '^\.init\.vim-rplugin\~$', | ||
\ '^\.netrwhist$', | ||
\ '\.class$', | ||
\ ]) | ||
|
||
let g:chromatica#libclang_path = '/usr/lib/x86_64-linux-gnu/libclang-4.0.so.1' | ||
|
||
" terraform configs | ||
let g:terraform_align=1 | ||
let g:terraform_fmt_on_save=1 | ||
" call deoplete#custom#option('omni_patterns', { | ||
" \ 'terraform': '[^ *\t"{=$]\w*', | ||
" \}) | ||
|
||
" https://github.com/JakeBecker/elixir-ls/issues/35#issuecomment-351522003 | ||
" augroup elixir_lsp | ||
" au! | ||
" au User lsp_setup call lsp#register_server({ | ||
" \ 'name': 'elixir-ls', | ||
" \ 'cmd': {server_info->[&shell, &shellcmdflag, 'env ERL_LIBS=/home/techgaun/projects/elixir-ls/lsp mix elixir_ls.language_server']}, | ||
" \ 'whitelist': ['elixir', 'eelixir'], | ||
" \ }) | ||
" augroup END | ||
|
||
imap <C-b> @tag :wipa | ||
imap <C-x> require IEx; IEx.pry | ||
nnoremap ,b O@tag :wipa<esc> | ||
let g:prettier#autoformat_require_pragma = 0 | ||
endfunction |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
[options] | ||
# set spacevim theme. by default colorscheme layer is not loaded, | ||
# if you want to use more colorscheme, please load the colorscheme | ||
# layer, the value of this option is a string. | ||
colorscheme = "molokai" | ||
colorscheme_bg = "dark" | ||
|
||
# Disable guicolors in basic mode, many terminal do not support 24bit | ||
# true colors, the type of the value is boolean, true or false. | ||
enable_guicolors = true | ||
|
||
# Disable statusline separator, if you want to use other value, please | ||
# install nerd fonts | ||
statusline_separator = "nil" | ||
statusline_iseparator = "bar" | ||
buffer_index_type = 4 | ||
|
||
# Display file type icon on the tabline, If you do not have nerd fonts | ||
# installed, please change the value to false | ||
enable_tabline_filetype_icon = true | ||
# Display current mode text on statusline, by default It is disabled, | ||
# only color will be changed when switch modes. | ||
enable_statusline_mode = false | ||
|
||
# disable auto update | ||
automatic_update = false | ||
|
||
# find nearest dir for project manager | ||
project_rooter_outermost = false | ||
|
||
bootstrap_before = 'myspacevim#before' | ||
|
||
# Enable autocomplete layer | ||
[[layers]] | ||
name = "autocomplete" | ||
auto-completion-return-key-behavior = "complete" | ||
auto-completion-tab-key-behavior = "smart" # "cycle" is another opt | ||
|
||
[[layers]] | ||
name = "colorscheme" | ||
|
||
[[layers]] | ||
name = "cscope" | ||
|
||
[[layers]] | ||
name = "denite" | ||
|
||
[[layers]] | ||
name = "git" | ||
|
||
[[layers]] | ||
name = "github" | ||
|
||
[[layers]] | ||
name = "incsearch" | ||
|
||
[[layers]] | ||
name = "tags" | ||
|
||
[[layers]] | ||
name = "VersionControl" | ||
|
||
[[layers]] | ||
name = "format" | ||
|
||
[[layers]] | ||
name = "lsp" | ||
filetypes = [ | ||
"rust" | ||
] | ||
[layers.override_cmd] | ||
rust = ["rust-analyzer"] | ||
|
||
[[layers]] | ||
name = "shell" | ||
default_position = "top" | ||
default_height = 30 | ||
# enable = false | ||
|
||
[[layers]] | ||
name = "lang#elixir" | ||
|
||
[[layers]] | ||
name = "lang#go" | ||
|
||
[[layers]] | ||
name = "lang#graphql" | ||
|
||
[[layers]] | ||
name = "lang#html" | ||
|
||
[[layers]] | ||
name = "lang#java" | ||
|
||
[[layers]] | ||
name = "lang#javascript" | ||
|
||
[[layers]] | ||
name = "lang#json" | ||
|
||
[[layers]] | ||
name = "lang#kotlin" | ||
|
||
[[layers]] | ||
name = "lang#lua" | ||
|
||
[[layers]] | ||
name = "lang#markdown" | ||
|
||
[[layers]] | ||
name = "lang#python" | ||
|
||
[[layers]] | ||
name = "lang#solidity" | ||
|
||
[[layers]] | ||
name = "lang#rust" | ||
|
||
[[layers]] | ||
name = "lang#tmux" | ||
|
||
[[layers]] | ||
name = "lang#typescript" | ||
|
||
[[layers]] | ||
name = "lang#vim" | ||
|
||
# [[custom_plugins]] | ||
# repo = "lilydjwg/colorizer" | ||
# merged = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.