this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Cleanup nix configuration

+209 -265
+1 -1
certs/Makefile
··· 53 53 SAN="DNS:${DOMAIN},DNS:*.${DOMAIN}" \ 54 54 openssl x509 -req -out "$@" -in ${SIGN_REQ} \ 55 55 -CA ${CACERT} -CAkey ${CAKEY} -CAcreateserial \ 56 - -days 1825 -sha256 \ 56 + -days 365 -sha256 \ 57 57 -extfile config.conf 58 58 59 59 ${PEM}: ${CERT} ${KEY}
+1 -1
fish/.config/fish/functions/p.fish
··· 2 2 if test (count $argv) -gt 0 && test -f $argv[1] || not isatty 3 3 bat $argv 4 4 else 5 - ls -lh $argv 5 + ls -Alh $argv 6 6 end 7 7 end
+16 -10
git/.config/git/config
··· 2 2 commitGraph = true 3 3 pager = "diff-so-fancy | less --tabs=4 -RFX" 4 4 commentChar = ";" 5 - [gc] 6 - writeCommitGraph = true 5 + 6 + [user] 7 + useConfigOnly = true 8 + 9 + [feature] 10 + experimental = true 11 + manyFiles = true 12 + 7 13 [alias] 8 14 ai = add -i 9 15 b = branch ··· 26 32 [pretty] 27 33 simple-oneline = "%C(yellow)%h%C(auto)%d %s <%C(green)%aN%C(reset)> (%C(blue)%ar%C(reset))" 28 34 29 - [mergetool] 30 - keepBackup = false 31 - [mergetool "fugitive"] 32 - cmd = nvim -d 33 35 [merge] 34 - tool = fugitive 36 + conflictstyle = diff3 35 37 36 38 [branch] 37 39 autoSetupRebase = always ··· 56 58 [tag] 57 59 forceSignAnnotated = true 58 60 sort = version:refname 61 + [versionsort] 62 + suffix = "" 63 + suffix = "-rc" 64 + suffix = "-pre" 59 65 [commit] 60 66 gpgsign = true 61 67 verbose = true 62 68 63 69 [filter "lfs"] 64 - clean = git-lfs clean %f 65 - smudge = git-lfs smudge %f 70 + clean = git-lfs clean -- %f 71 + smudge = git-lfs smudge -- %f 72 + process = git-lfs filter-process 66 73 required = true 67 74 68 75 [rerere] 69 76 enabled = true 70 77 71 78 [diff] 72 - ; suppressBlankEmpty = true 73 79 indentHeuristic = true 74 80 algorithm = histogram 75 81 mnemonicPrefix = true
-2
nix/.config/nix/nix.conf
··· 1 - keep-outputs = true 2 - keep-derivations = true
+19 -18
nix/.config/nixpkgs/darwin/configuration.nix
··· 4 4 nixpkgs.config.allowUnfree = true; 5 5 nixpkgs.overlays = [ 6 6 (import ../overlays/encpipe.nix) 7 + (import ../overlays/fonts.nix) 8 + (import ../overlays/ctags.nix) 7 9 ]; 8 10 9 11 system.defaults.dock.autohide = true; ··· 40 42 ripgrep 41 43 universal-ctags 42 44 w3m 45 + watchman 43 46 weechat 44 47 ]; 45 48 46 49 environment.shells = [ pkgs.fish ]; 47 50 48 51 fonts.enableFontDir = true; 49 - fonts.fonts = let 50 - iosevkaTerm = pkgs.iosevka.override { 51 - set = "term"; 52 - privateBuildPlan = { 53 - family = "Iosevka Term"; 54 - design = [ "ss10" "cv10" "cv38" "cv62" "term" ]; 55 - }; 56 - }; 57 - iosevka = pkgs.iosevka.override { 58 - set = "ss10"; 59 - privateBuildPlan = { 60 - family = "Iosevka"; 61 - design = [ "ss10" "cv10" "cv38" "cv62" "calt-logic" ]; 62 - }; 63 - }; 64 - in [ 65 - pkgs.lato 52 + fonts.fonts = with pkgs; [ 53 + lato 66 54 iosevka 67 55 iosevkaTerm 68 56 ]; ··· 73 61 74 62 # Auto upgrade nix package and the daemon service. 75 63 services.nix-daemon = { 76 - enable = false; 64 + enable = true; 77 65 enableSocketListener = true; 78 66 }; 79 67 ··· 84 72 }; 85 73 }; 86 74 75 + launchd.user.agents.watchman = { 76 + serviceConfig.ProgramArguments = ["${pkgs.watchman}/bin/watchman" "--foreground"]; 77 + serviceConfig.KeepAlive = true; 78 + serviceConfig.RunAtLoad = true; 79 + }; 80 + 87 81 programs.gnupg = { 88 82 agent.enable = false; 89 83 agent.enableSSHSupport = true; ··· 103 97 "/private/var/tmp" 104 98 "/usr/bin/env" 105 99 ]; 100 + nix.extraOptions = '' 101 + gc-keep-derivations = true 102 + gc-keep-outputs = true 103 + 104 + keep-outputs = true 105 + keep-derivations = true 106 + ''; 106 107 107 108 # Used for backwards compatibility, please read the changelog before changing. 108 109 # $ darwin-rebuild changelog
+19
nix/.config/nixpkgs/overlays/ctags.nix
··· 1 + self: super: 2 + 3 + let 4 + universal-ctags = (super.universal-ctags.overrideAttrs(oldAttrs: { 5 + version = "unstable-2020-08-07"; 6 + 7 + src = super.fetchFromGitHub { 8 + owner = "universal-ctags"; 9 + repo = "ctags"; 10 + rev = "3f0ea94c60552fc4983472f6e40e375357093364"; 11 + sha256 = "1i7r531zinvdicyhvxl0xknlxylh0m9c232x4plw4syy07rq3aac"; 12 + }; 13 + })).override { 14 + pythonPackages = super.python3.pkgs; 15 + }; 16 + in 17 + { 18 + inherit universal-ctags; 19 + }
+17 -9
nix/.config/nixpkgs/overlays/encpipe.nix
··· 3 3 with super; 4 4 5 5 let 6 - libhydrogen = fetchGit { 6 + libhydrogen = fetchFromGitHub { 7 7 name = "libhydrogen"; 8 8 9 - url = "https://github.com/jedisct1/libhydrogen.git"; 10 - ref = "master"; 9 + owner = "jedisct1"; 10 + repo = "libhydrogen"; 11 + # url = "https://github.com/jedisct1/libhydrogen.git"; 12 + rev = "c879a1d572de4bb2d3bd90516f449557eb156c96"; 13 + sha256 = "1b1bqwpws4n0y2qm9k5a55jynakq7gdqqqqbxakfrrlfwj7hjn4d"; 11 14 }; 12 - in 13 - { 14 15 encpipe = self.stdenv.mkDerivation rec { 15 16 name = "encpipe-${version}"; 16 17 version = "0.5"; ··· 19 20 20 21 preBuild = '' 21 22 cp -R ${libhydrogen}/* ext/libhydrogen 23 + buildFlagsArray+=(CFLAGS="-O3 -march=native -fno-exceptions -I. -Iext/libhydrogen") 22 24 ''; 23 25 24 26 installFlags = [ "PREFIX=$(out)" ]; 25 27 26 - src = fetchGit { 27 - url = "https://github.com/jedisct1/encpipe.git"; 28 - ref = "master"; 28 + src = fetchFromGitHub { 29 + owner = "jedisct1"; 30 + repo = "encpipe"; 31 + # url = "https://github.com/jedisct1/encpipe.git"; 32 + rev = "9abbb95ab6c51b5fb85db7c5ea65843b4d788aae"; 33 + sha256 = "05rv6a5zgzf1i5nn7mzi6sg47papkdfj8jpj7dnjv4hq752i3mhs"; 29 34 }; 30 35 }; 31 - } 36 + in 37 + { 38 + inherit encpipe; 39 + }
+3 -2
nix/.config/nixpkgs/overlays/erlang/elixir-ls.json
··· 1 1 { 2 2 "owner": "elixir-lsp", 3 3 "repo": "elixir-ls", 4 - "rev": "1256038da37b2581dadb0f15c51d9cff590034ee", 5 - "sha256": "1kw0wcchxxd4zgkpv4v0nrbb79yk3pad683x9mgqb88x6zbp1spc" 4 + "rev": "e50e153977af83238f196f0ab0c5aa0156c7573f", 5 + "sha256": "0yak3qd4vclg04lfy2dmn6656ia3x4k0v0r4899wvvy74vfbvab6", 6 + "fetchSubmodules": false 6 7 }
+1 -1
nix/.config/nixpkgs/overlays/erlang/elixir-ls.nix
··· 13 13 name = "${name}-${version}"; 14 14 inherit src; 15 15 16 - sha256 = "0jfv98ibrfm0p46sanjnpxp3hivqafh5qi8cf0c71ssvcqbfk9il"; 16 + sha256 = "1j7v56mfa087wi3x8kdcbqq0wsdiw284cwlccvxs1b60rypx5k55"; 17 17 }; 18 18 19 19 # refresh: nix-prefetch-git https://github.com/elixir-lsp/elixir-ls.git [--rev branchName | --rev sha]
+2 -2
nix/.config/nixpkgs/overlays/erlang/erlang-ls.json
··· 1 1 { 2 2 "owner": "erlang-ls", 3 3 "repo": "erlang_ls", 4 - "rev": "a24a29c64078991dda513dcb6fd55ab33df793f0", 5 - "sha256": "06p8dvji8kmfxm4jzn9d0258wls6s73yhhpn0kpicn3v1mmr53zi" 4 + "rev": "64313bba94e0b5877ffe99ce169478a12d8da049", 5 + "sha256": "1jp4nrb4ns21jga7ysbqpwpkkmmsz90shcgk8qr4ibi4k0ly98ax" 6 6 }
+3 -1
nix/.config/nixpkgs/overlays/erlang/erlang-ls.nix
··· 1 - { rebar3Relx, fetchFromGitHub, gitMinimal }: 1 + { rebar3Relx, fetchFromGitHub, git, cacert }: 2 2 3 3 let 4 4 json = builtins.fromJSON (builtins.readFile ./erlang-ls.json); ··· 6 6 name = "erlang-ls"; 7 7 version = json.rev; 8 8 releaseType = "escript"; 9 + 10 + nativeBuildInputs = [ git cacert ]; 9 11 10 12 src = fetchFromGitHub json; 11 13 }
+29 -27
nix/.config/nixpkgs/overlays/erlang/fetch-mix-deps.nix
··· 1 1 { stdenvNoCC, elixir, rebar, rebar3, git, cacert }: 2 2 3 - { name ? null, src, sha256, env ? "prod" }: 4 - 5 - stdenvNoCC.mkDerivation { 6 - name = "mix-deps" + (if name != null then "-${name}" else ""); 3 + let 4 + fetchMixDeps = 5 + { name ? null, src, sha256, env ? "prod" }: 6 + stdenvNoCC.mkDerivation { 7 + name = "mix-deps" + (if name != null then "-${name}" else ""); 7 8 8 - nativeBuildInputs = [ elixir git cacert ]; 9 + nativeBuildInputs = [ elixir git cacert ]; 9 10 10 - inherit src; 11 + inherit src; 11 12 12 - configurePhase = '' 13 - export MIX_ENV="${env}" 13 + MIX_ENV = env; 14 + MIX_REBAR = "${rebar}/bin/rebar"; 15 + MIX_REBAR3 = "${rebar3}/bin/rebar3"; 14 16 15 - export HEX_HOME="$PWD/hex" 16 - export MIX_HOME="$PWD/mix" 17 - export MIX_DEPS_PATH="$out" 18 - export MIX_REBAR="${rebar}/bin/rebar" 19 - export MIX_REBAR3="${rebar3}/bin/rebar3" 20 - export REBAR_GLOBAL_CONFIG_DIR="$PWD/rebar3" 21 - export REBAR_CACHE_DIR="$PWD/rebar3.cache" 17 + configurePhase = '' 18 + export HEX_HOME="$PWD/hex" 19 + export MIX_HOME="$PWD/mix" 20 + export MIX_DEPS_PATH="$out" 21 + export REBAR_GLOBAL_CONFIG_DIR="$PWD/rebar3" 22 + export REBAR_CACHE_DIR="$PWD/rebar3.cache" 22 23 23 - mix local.hex --force 24 - ''; 24 + mix local.hex --force 25 + ''; 25 26 26 - buildPhase = '' 27 - mix deps.get 28 - find "$out" -path '*/.git/*' -a ! -name HEAD -exec rm -rf {} + 29 - ''; 27 + buildPhase = '' 28 + mix deps.get 29 + find "$out" -path '*/.git/*' -a ! -name HEAD -exec rm -rf {} + 30 + ''; 30 31 31 - dontInstall = true; 32 + dontInstall = true; 32 33 33 - outputHashAlgo = "sha256"; 34 - outputHashMode = "recursive"; 35 - outputHash = sha256; 34 + outputHashAlgo = "sha256"; 35 + outputHashMode = "recursive"; 36 + outputHash = sha256; 36 37 37 - impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; 38 - } 38 + impureEnvVars = stdenvNoCC.lib.fetchers.proxyImpureEnvVars; 39 + }; 40 + in fetchMixDeps
+20
nix/.config/nixpkgs/overlays/fonts.nix
··· 1 + self: super: 2 + 3 + let 4 + iosevka = super.iosevka.override { 5 + set = "ss10"; 6 + privateBuildPlan = { 7 + family = "Iosevka"; 8 + design = [ "ss10" "cv10" "cv38" "cv62" "calt-logic" ]; 9 + }; 10 + }; 11 + iosevkaTerm = super.iosevka.override { 12 + set = "term"; 13 + privateBuildPlan = { 14 + family = "Iosevka Term"; 15 + design = [ "ss10" "cv10" "cv38" "cv62" "term" ]; 16 + }; 17 + }; 18 + in { 19 + inherit iosevka iosevkaTerm; 20 + }
-7
vim/.config/nvim/after/ftplugin/elixir.vim
··· 2 2 3 3 setlocal makeprg=mix 4 4 5 - command! -buffer ModuleName echo ft#elixir#module_name() 6 - command! -buffer Function echo ft#elixir#full_ident() 7 - command! -buffer XrefCallers call asyncdo#run(1, { 'job': 'mix', 'errorformat': '%f:%l: %m' }, 'xref', 'callers', ft#elixir#full_ident()) 8 - command! -buffer -nargs=* -complete=customlist,ft#elixir#mix_compl -bang Mix call asyncdo#run(<bang>0, 'mix', <q-args>) 9 - 10 5 inoreabbrev <buffer> mdoc @moduledoc """<CR>"""<Up><End> 11 6 inoreabbrev <buffer> fdoc @doc """<CR>"""<Up><End> 12 7 inoreabbrev <buffer> pry require IEx; IEx.pry ··· 19 14 inoreabbrev <buffer> pkey add :id, :binary_id, primary_key: true 20 15 21 16 setlocal path=lib,apps/*/lib,apps/*/mix.exs,mix.exs,tests,apps/*/tests 22 - 23 - nnoremap <buffer> gQ :%!mix format -<CR> 24 17 25 18 let b:undo_ftplugin = b:undo_ftplugin . ' | setl path& mp& isk&'
-7
vim/.config/nvim/after/ftplugin/gitrebase.vim
··· 1 - nnoremap <buffer> ce :Edit<CR> 2 - nnoremap <buffer> cf :Fixup<CR> 3 - nnoremap <buffer> cp :Pick<CR> 4 - nnoremap <buffer> cr :Reword<CR> 5 - nnoremap <buffer> cs :Squash<CR> 6 - 7 - nnoremap <buffer> cc :Cycle<CR>
+1
vim/.config/nvim/after/ftplugin/qf.vim
··· 3 3 setlocal nolist 4 4 5 5 nnoremap <buffer><silent> q :cclose<CR> 6 + nnoremap <buffer><silent> qq :cclose<CR> 6 7 nnoremap <buffer><silent> o <CR> 7 8 nnoremap <buffer><silent> O <CR>:cclose<CR> 8 9
+1 -1
vim/.config/nvim/after/ftplugin/robots.vim
··· 1 1 setlocal commentstring=#%s 2 2 3 - let b:undo_ftplugin = b:undo_ftplugin . ' | setl cms&' 3 + let b:undo_ftplugin = 'setl cms&'
-4
vim/.config/nvim/after/ftplugin/ruby.vim
··· 1 - setlocal formatprg=rubocop-clean 2 - setlocal shiftwidth=2 3 - 4 - let b:undo_ftplugin = b:undo_ftplugin . ' | setl fp& sw&'
-8
vim/.config/nvim/after/ftplugin/rust.vim
··· 1 - compiler cargo 2 - 3 - setlocal iskeyword+=! 4 - let g:rustfmt_autosave = 1 5 - 6 - inoreabbrev <buffer> excr extern crate 7 - 8 - let b:undo_ftplugin = b:undo_ftplugin . ' | setl ep&'
-5
vim/.config/nvim/after/ftplugin/tf.vim
··· 2 2 setlocal equalprg=terraform\ fmt\ - 3 3 setlocal shiftwidth=2 4 4 5 - augroup autoformat 6 - au! 7 - " au BufWritePre <buffer> norm! gg=G`` 8 - augroup END 9 - 10 5 let b:undo_ftplugin = 'setl mp& fp& sw&'
-6
vim/.config/nvim/after/ftplugin/vue.vim
··· 1 - runtime! ftplugin/javascript.vim 2 - 3 - augroup fix_vue_syntax 4 - au! 5 - autocmd BufEnter <buffer> syntax sync fromstart 6 - augroup END
-1
vim/.config/nvim/after/plugin/dirvish.vim
··· 1 - highlight link DirvishArg Normal
-7
vim/.config/nvim/after/syntax/elixir.vim
··· 1 - " setlocal conceallevel=1 2 - 3 - " syn match elixirPipe /|>/ contained containedin=elixirOperator conceal cchar=▷ 4 - " syn match elixirJoin /<>/ contained containedin=elixirOperator conceal cchar=◇ 5 - 6 - " hi link elixirPipe elixirOperator 7 - " hi link elixirJoin elixirOperator
-16
vim/.config/nvim/after/syntax/qf.vim
··· 1 - " Extra qf syntax 2 - 3 - if !get(g:, 'kickfix_zebra', 1) 4 - finish 5 - endif 6 - 7 - syn sync fromstart 8 - 9 - syn match qfFileName1 /^[^|]\+/ nextgroup=qfSeparator contained 10 - syn match qfFileName2 /^[^|]\+/ nextgroup=qfSeparator contained 11 - 12 - syn region qfZebra1 start=/^\z([^|]\+\)/ end=/\n\(\z1|\)\@!/ nextgroup=qfZebra2 skipnl keepend fold contains=qfFileName1 13 - syn region qfZebra2 start=/^\z([^|]\+\)/ end=/\n\(\z1|\)\@!/ nextgroup=qfZebra1 skipnl keepend fold contains=qfFileName2 14 - 15 - hi def link qfFileName1 Directory 16 - hi def link qfFileName2 Question
-21
vim/.config/nvim/autoload/db/adapter/ecto.vim
··· 1 - let s:path = expand('<sfile>:h') 2 - let s:cmd = join(['mix', 'run', '--no-start', '--no-compile', shellescape(s:path.'/get_repos.exs')]) 3 - 4 - function! s:repo_list() abort 5 - return map(systemlist(s:cmd), 'split(v:val)') 6 - endfunction 7 - 8 - function! db#adapter#ecto#canonicalize(url) abort 9 - echom a:url 10 - for l:item in s:repo_list() 11 - let l:name = get(l:item, 0) 12 - let l:url = get(l:item, 1) 13 - if !empty(l:name) && 'ecto:'.l:name ==# a:url 14 - return l:url 15 - endif 16 - endfor 17 - endfunction 18 - 19 - function! db#adapter#ecto#complete_opaque(url) abort 20 - return map(s:repo_list(), 'v:val[0]') 21 - endfunction
-54
vim/.config/nvim/autoload/db/adapter/get_repos.exs
··· 1 - defmodule LoadRepos do 2 - defp load_apps do 3 - :code.get_path() 4 - |> Enum.flat_map(fn app_dir -> 5 - Path.join(app_dir, "*.app") |> Path.wildcard() 6 - end) 7 - |> Enum.map(fn app_file -> 8 - app_file |> Path.basename() |> Path.rootname(".app") |> String.to_atom() 9 - end) 10 - |> Enum.map(&Application.load/1) 11 - end 12 - 13 - defp configs do 14 - for {app, _, _} <- Application.loaded_applications(), 15 - repos = Application.get_env(app, :ecto_repos), 16 - is_list(repos) and repos != [], 17 - repo <- repos, 18 - do: {repo, Map.new(Application.get_env(app, repo))} 19 - end 20 - 21 - defp config_to_url(_, %{url: url}), do: url 22 - 23 - defp config_to_url(repo, %{ 24 - hostname: hostname, 25 - username: username, 26 - password: password, 27 - database: database 28 - }) do 29 - %URI{ 30 - scheme: adapter_to_string(repo.__adapter__), 31 - userinfo: "#{username}:#{password}", 32 - host: hostname, 33 - path: Path.join("/", database) 34 - } 35 - |> URI.to_string() 36 - end 37 - 38 - defp adapter_to_string(Ecto.Adapters.Postgres), do: "postgres" 39 - defp adapter_to_string(Ecto.Adapters.MySQL), do: "mysql" 40 - defp adapter_to_string(mod), do: raise("Unknown adapter #{inspect(mod)}") 41 - 42 - def main do 43 - load_apps() 44 - 45 - configs() 46 - |> Enum.map(fn {repo, config} -> 47 - [inspect(repo), ?\s, config_to_url(repo, config)] 48 - end) 49 - |> Enum.intersperse(?\n) 50 - |> IO.puts() 51 - end 52 - end 53 - 54 - LoadRepos.main()
-42
vim/.config/nvim/autoload/ft/elixir.vim
··· 1 - func! s:get_ident(str) abort 2 - return matchstr(a:str, 'def\%(module\|macro\|delegate\)\?\s\+\zs[A-Z][A-Za-z0-9._]*\ze') 3 - endfunc 4 - 5 - func! ft#elixir#module_name() abort 6 - let l:view = winsaveview() 7 - 8 - let l:name = '' 9 - let l:count = searchpair('\<do:\@!\>', '', '\<end\>', 'cbrmW', 'getline(".")!~#"^\\s*defmodule"') 10 - call winrestview(l:view) 11 - 12 - for i in range(l:count) 13 - call searchpair('\<do:\@!\>', '', '\<end\>', 'bW', 'getline(".")!~#"^\\s*defmodule"') 14 - let l:name = s:get_ident(getline('.')).l:name 15 - 16 - if i < l:count - 1 17 - let l:name = '.'.l:name 18 - endif 19 - endfor 20 - 21 - call winrestview(l:view) 22 - return l:name 23 - endfunc 24 - 25 - func! ft#elixir#full_ident() abort 26 - let l:view = winsaveview() 27 - call search('^\s*def', 'cbW') 28 - let l:line = getline('.') 29 - call winrestview(l:view) 30 - 31 - if l:line =~# '^\s*def\%(macro\|delegate\)\?\s\+\k' 32 - return ft#elixir#module_name().'.'.s:get_ident(l:line) 33 - elseif l:line =~# '^\s*defmodule\s\+\k\+' 34 - return ft#elixir#module_name() 35 - else 36 - echoerr 'No ident in current line' 37 - endif 38 - endfunc 39 - 40 - func! ft#elixir#mix_compl(lead, ...) abort 41 - return systemlist("mix help | awk '/^mix ".a:lead."/ { print $2 }'") 42 - endfunc
+7 -7
vim/.config/nvim/autoload/plugins.vim
··· 82 82 " }}} 83 83 " Utils {{{ 84 84 call minpac#add('andymass/vim-matchup') 85 - call minpac#add('tpope/vim-repeat') " autoload-only plugin 86 - call minpac#add('tpope/vim-unimpaired', {'type': 'opt'}) 87 - call minpac#add('tpope/vim-rsi') 88 85 call minpac#add('direnv/direnv.vim') 89 - call minpac#add('sgur/vim-editorconfig') " Required during startup 90 - call minpac#add('tpope/vim-characterize') 91 - call minpac#add('https://gitlab.com/hauleth/qfx.vim.git') 92 86 call minpac#add('hauleth/vim-backscratch') 93 - call minpac#add('tpope/vim-dadbod') 87 + call minpac#add('https://gitlab.com/hauleth/qfx.vim.git') 94 88 call minpac#add('https://gitlab.com/hauleth/smart.vim.git') 95 89 call minpac#add('reedes/vim-pencil') 90 + call minpac#add('sgur/vim-editorconfig') " Required during startup 91 + call minpac#add('simnalamburt/vim-mundo') 92 + call minpac#add('tpope/vim-characterize') 93 + call minpac#add('tpope/vim-dadbod') 94 + call minpac#add('tpope/vim-repeat') " autoload-only plugin 95 + call minpac#add('tpope/vim-rsi') 96 96 call minpac#add('vimwiki/vimwiki') 97 97 " }}} 98 98 endfunc
+11 -3
vim/.config/nvim/init.vim
··· 98 98 \ 'syntax': 'clap_files', 99 99 \ 'on_move': function('clap#provider#files#on_move_impl') 100 100 \ } 101 - 102 - set path=,, 103 101 " }}} 104 102 " Git shortcuts {{{ 105 103 nnoremap U <nop> ··· 171 169 " Quickly disable highligh 172 170 nnoremap <Space>, :nohlsearch<CR> 173 171 " }}} 174 - " Tabs {{{ 172 + " Cycling {{{ 175 173 nnoremap ]w gt 176 174 nnoremap [w gT 175 + 176 + nnoremap ]q :<C-u>cnext<CR> 177 + nnoremap [q :<C-u>cprev<CR> 178 + nnoremap ]Q :<C-u>cnfile<CR> 179 + nnoremap [Q :<C-u>cpfile<CR> 180 + 181 + nnoremap ]l :<C-u>lnext<CR> 182 + nnoremap [l :<C-u>lprev<CR> 183 + nnoremap ]L :<C-u>lnfile<CR> 184 + nnoremap [L :<C-u>lpfile<CR> 177 185 " }}} 178 186 " Terminal {{{ 179 187 nnoremap <C-q> <Nop>
-1
vim/.config/nvim/plugin/pack-delayed.vim
··· 5 5 6 6 func! DelayedLoad(...) abort " No abort as we want to continue if any plugin fails 7 7 " Git 8 - packadd vim-unimpaired 9 8 packadd targets.vim 10 9 11 10 autocmd! delayed_pack_load
+1 -1
vim/.config/nvim/plugin/projections.vim
··· 59 59 \ 'test/*_SUITE.erl': { 60 60 \ 'type': 'test', 61 61 \ 'alternate': 'src/{}.erl', 62 - \ 'template': ['-module({basename}).', '', 62 + \ 'template': ['-module({basename}_SUITE).', '', 63 63 \ '-compile(export_all).', '', 64 64 \ '-include_lib("stdlib/include/assert.hrl").', 65 65 \ '-include_lib("common_test/include/ct.hrl").', '',
+57
vim/.config/nvim/plugin/unimpaired.vim
··· 1 + " Section: Line operations 2 + 3 + function! s:BlankUp(count) abort 4 + put!=repeat(nr2char(10), a:count) 5 + ']+1 6 + silent! call repeat#set("\<Plug>unimpairedBlankUp", a:count) 7 + endfunction 8 + 9 + function! s:BlankDown(count) abort 10 + put =repeat(nr2char(10), a:count) 11 + '[-1 12 + silent! call repeat#set("\<Plug>unimpairedBlankDown", a:count) 13 + endfunction 14 + 15 + nnoremap <silent> <Plug>unimpairedBlankUp :<C-U>call <SID>BlankUp(v:count1)<CR> 16 + nnoremap <silent> <Plug>unimpairedBlankDown :<C-U>call <SID>BlankDown(v:count1)<CR> 17 + 18 + nmap [<Space> <Plug>unimpairedBlankUp 19 + nmap ]<Space> <Plug>unimpairedBlankDown 20 + 21 + function! s:ExecMove(cmd) abort 22 + let old_fdm = &foldmethod 23 + if old_fdm !=# 'manual' 24 + let &foldmethod = 'manual' 25 + endif 26 + normal! m` 27 + silent! exe a:cmd 28 + norm! `` 29 + if old_fdm !=# 'manual' 30 + let &foldmethod = old_fdm 31 + endif 32 + endfunction 33 + 34 + function! s:Move(cmd, count, map) abort 35 + call s:ExecMove('move'.a:cmd.a:count) 36 + silent! call repeat#set("\<Plug>unimpairedMove".a:map, a:count) 37 + endfunction 38 + 39 + function! s:MoveSelectionUp(count) abort 40 + call s:ExecMove("'<,'>move'<--".a:count) 41 + silent! call repeat#set("\<Plug>unimpairedMoveSelectionUp", a:count) 42 + endfunction 43 + 44 + function! s:MoveSelectionDown(count) abort 45 + call s:ExecMove("'<,'>move'>+".a:count) 46 + silent! call repeat#set("\<Plug>unimpairedMoveSelectionDown", a:count) 47 + endfunction 48 + 49 + nnoremap <silent> <Plug>unimpairedMoveUp :<C-U>call <SID>Move('--',v:count1,'Up')<CR> 50 + nnoremap <silent> <Plug>unimpairedMoveDown :<C-U>call <SID>Move('+',v:count1,'Down')<CR> 51 + xnoremap <silent> <Plug>unimpairedMoveSelectionUp :<C-U>call <SID>MoveSelectionUp(v:count1)<CR> 52 + xnoremap <silent> <Plug>unimpairedMoveSelectionDown :<C-U>call <SID>MoveSelectionDown(v:count1)<CR> 53 + 54 + nmap [e <Plug>unimpairedMoveUp 55 + nmap ]e <Plug>unimpairedMoveDown 56 + xmap [e <Plug>unimpairedMoveSelectionUp 57 + xmap ]e <Plug>unimpairedMoveSelectionDown