From c53cf5cdff6006f964f8ef4e65870753b3e5bcec Mon Sep 17 00:00:00 2001 From: Buddy Date: Mon, 13 Jan 2025 10:26:05 -0800 Subject: [PATCH] Remove vim configs not needed anymore --- dot_config/vim/plug.vim.tmpl | 66 +----------------------- dot_config/vim/settings.vim.tmpl | 3 -- dot_config/vim/snips/all.snippets | 54 ------------------- dot_config/vim/snips/coffee.snippets | 22 -------- dot_config/vim/snips/go.snippets.tmpl | 49 ------------------ dot_config/vim/snips/html.snippets | 19 ------- dot_config/vim/snips/javascript.snippets | 65 ----------------------- dot_config/vim/snips/php.snippets | 41 --------------- dot_config/vim/snips/python.snippets | 10 ---- dot_config/vim/snips/scss.snippets | 8 --- dot_config/vim/snips/typescript.snippets | 1 - 11 files changed, 1 insertion(+), 337 deletions(-) delete mode 100644 dot_config/vim/snips/all.snippets delete mode 100644 dot_config/vim/snips/coffee.snippets delete mode 100644 dot_config/vim/snips/go.snippets.tmpl delete mode 100644 dot_config/vim/snips/html.snippets delete mode 100644 dot_config/vim/snips/javascript.snippets delete mode 100644 dot_config/vim/snips/php.snippets delete mode 100644 dot_config/vim/snips/python.snippets delete mode 100644 dot_config/vim/snips/scss.snippets delete mode 100644 dot_config/vim/snips/typescript.snippets diff --git a/dot_config/vim/plug.vim.tmpl b/dot_config/vim/plug.vim.tmpl index d009f9d..f7221e6 100644 --- a/dot_config/vim/plug.vim.tmpl +++ b/dot_config/vim/plug.vim.tmpl @@ -5,8 +5,6 @@ Plug 'editorconfig/editorconfig-vim', { 'tag': 'v1.1.1' } Plug 'tpope/vim-surround', { 'tag': 'v2.2' } Plug 'preservim/nerdtree', { 'tag': '6.10.16' } Plug 'cespare/vim-toml', { 'for': 'toml' } -Plug 'SirVer/ultisnips', { 'tag': '3.2' } -Plug 'lifepillar/pgsql.vim', { 'for': [ 'sql' ] } " Themes Plug 'NLKNguyen/papercolor-theme' @@ -20,7 +18,7 @@ Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' "{{ if lookPath "fzf" -}} -Plug 'junegunn/fzf', { 'tag': '0.40.0' } +Plug 'junegunn/fzf', { 'tag': '0.43.0' } Plug 'junegunn/fzf.vim' "{{ end -}} @@ -31,65 +29,3 @@ Plug 'fatih/vim-go' "{{ if lookPath "rustc" }} Plug 'rust-lang/rust.vim', { 'for': 'rust' } "{{ end }} - -"{{ if .development }} -Plug 'dense-analysis/ale', { - \ 'tag': 'v3.3.0', - \ 'for': [ - \ 'bash', - \ 'css', - \ 'dockerfile', - \ 'go', - \ 'graphql', - \ 'html', - \ 'javascript', - \ 'json', - \ 'less', - \ 'make', - \ 'markdown', - \ 'php', - \ 'python', - \ 'ruby', - \ 'rust', - \ 'scss', - \ 'sh', - \ 'sql', - \ 'tcl', - \ 'toml', - \ 'typescript', - \ 'vim', - \ 'vue', - \ 'xml', - \ 'yaml' - \ ] -\ } - -"{{ if lookPath "node" }} -Plug 'prettier/vim-prettier', { - \ 'branch': 'master', - \ 'do': 'npm install', - \ 'for': [ - \ 'css', - \ 'graphql', - \ 'html', - \ 'javascript', - \ 'json', - \ 'less', - \ 'markdown', - \ 'package', - \ 'php', - \ 'pug', - \ 'python', - \ 'ruby', - \ 'scss', - \ 'sh', - \ 'swift', - \ 'toml', - \ 'typescript', - \ 'vue', - \ 'xml', - \ 'yaml' - \ ] -\ } -"{{ end }} -"{{ end }} diff --git a/dot_config/vim/settings.vim.tmpl b/dot_config/vim/settings.vim.tmpl index a14553e..8bf22a3 100644 --- a/dot_config/vim/settings.vim.tmpl +++ b/dot_config/vim/settings.vim.tmpl @@ -3,9 +3,6 @@ """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" " fzf "{{ if lookPath "fzf" }} -Plug 'junegunn/fzf', { 'tag': '0.43.0' } -Plug 'junegunn/fzf.vim' - map fz :GFiles map rg :Rg "{{ end }} diff --git a/dot_config/vim/snips/all.snippets b/dot_config/vim/snips/all.snippets deleted file mode 100644 index 8920541..0000000 --- a/dot_config/vim/snips/all.snippets +++ /dev/null @@ -1,54 +0,0 @@ -snippet #! "Shebang" !b -#!/usr/bin/env ${1:bash} -endsnippet -snippet - "bullet" -• -endsnippet -snippet -> "right arrow" -→ -endsnippet -snippet :) "smile" -☺ -endsnippet -snippet :( "frown" -☹ -endsnippet -snippet <3 "heart" -♥ -endsnippet -snippet *<3 "sparkle heart" -💖 -endsnippet -snippet x "ballot x" -✗ -endsnippet -snippet v "check mark" -✓ -endsnippet -snippet !? "interrobang" -‽ -endsnippet -snippet ?! "interrobang" -‽ -endsnippet -snippet ... "ellipsis" -… -endsnippet -snippet * "star" -★ -endsnippet -snippet -- "em dash" -— -endsnippet -snippet != "not equal" -≠ -endsnippet -snippet <- "left arrow ←" -← -endsnippet -snippet \/ "down arrow ↓" -↓ -endsnippet -snippet 1/2 "half ½" -½ -endsnippet diff --git a/dot_config/vim/snips/coffee.snippets b/dot_config/vim/snips/coffee.snippets deleted file mode 100644 index 2992b76..0000000 --- a/dot_config/vim/snips/coffee.snippets +++ /dev/null @@ -1,22 +0,0 @@ -snippet timeout "timeout" -setTimeout(${1:->}, ${2:500}) -endsnippet - -snippet log "Log" ! -console.log ${1:"${2:msg}"} -endsnippet - -snippet cl "console.log" -console.log ${1:"${2:msg}"} -endsnippet - -snippet def "define" -define [ - '${1:path}' -], ( - ${2:Object} -) -> -endsnippet -snippet it "jasmine test case" -it '→ $1', -> -endsnippet diff --git a/dot_config/vim/snips/go.snippets.tmpl b/dot_config/vim/snips/go.snippets.tmpl deleted file mode 100644 index b59cfc0..0000000 --- a/dot_config/vim/snips/go.snippets.tmpl +++ /dev/null @@ -1,49 +0,0 @@ -# chezmoi:template:left-delimiter=#{{ -#{{- /* vim: set filetype=snippets: */ -}} -#{{- if lookPath "go" -}} -snippet ignore "ignore function" ! -func(...any) {}(${1}) -endsnippet -snippet ctx "context" ! -ctx context.Context -endsnippet -snippet e "error wrapper" ! -e := wrap(".${1}") -endsnippet -snippet test "setup test case" ! -func Test${1}(t *testing.T) { - type testcase struct { - Name string - Setup func(tc *testcase) - } - tt := []testcase{} - for _, tc := range tt { - tc := tc - t.Run(tc.Name, func(t *testing.T) { - t.Parallel() - tc.Setup(&tc) - }) - } -} -endsnippet - -snippet htest "setup context test case" ! -func Test${1}(t *testing.T) { - type testcase struct { - Name string - Setup func(tc *testcase) - } - - tt := []testcase{} - - for _, tc := range tt { - tc := tc - t.Run(tc.Name, func(t *testing.T) { - ctx, a, ctrl := utils.Test(t) - t.Parallel() - tc.Setup(&tc) - }) - } -} -endsnippet -#{{- end }} diff --git a/dot_config/vim/snips/html.snippets b/dot_config/vim/snips/html.snippets deleted file mode 100644 index a2e55ed..0000000 --- a/dot_config/vim/snips/html.snippets +++ /dev/null @@ -1,19 +0,0 @@ -snippet doctype "html5 doctype" ! - -endsnippet -snippet head "head tag based html5 boilerplate" ! - - - - - - - - -endsnippet -snippet script "script tag" ! - -endsnippet -snippet scriptsrc "script src" ! - -endsnippet diff --git a/dot_config/vim/snips/javascript.snippets b/dot_config/vim/snips/javascript.snippets deleted file mode 100644 index 85c9a93..0000000 --- a/dot_config/vim/snips/javascript.snippets +++ /dev/null @@ -1,65 +0,0 @@ -snippet f "function" ! -function ${1:func} (${2}) { - ${VISUAL}$0 -} -endsnippet - -snippet if "if" ! -if (${1:true}) { - ${VISUAL}$0 -} -endsnippet - -snippet scf "self calling function" ! -(function (${1:argument}) { - ${VISUAL}$0 -}(${2:$1})); -endsnippet - -snippet log "console.log" -console.log(${1:'${2:value}'}); -endsnippet - -snippet strict "use strict" -'use strict'; -endsnippet - -snippet timeout "setTimeout" ! -setTimeout(function () { - ${1://code} -}, 0); -endsnippet - -snippet it "it test case" ! -it('→ $1', () => { -}); -endsnippet - -snippet desc "describe test case" ! -describe('→ $1', () => { -}); -endsnippet - -snippet exp "expect" b -expect($1).toBe($2); -endsnippet - -snippet umd "Universal Module Definition" b -(function (root, factory) { - if (typeof define === "function" && define.amd) { - define(["${1:dependency}"], factory); - } else if (typeof exports === "object") { - module.exports = factory(require("$1")); - } else { - root.${2:Export} = factory(root.$1); - } -}(this, function ($1) { - function $2($3) { - } - return $2; -})) -endsnippet - -snippet debug "debugger" ! -debugger$1; -endsnippet diff --git a/dot_config/vim/snips/php.snippets b/dot_config/vim/snips/php.snippets deleted file mode 100644 index 54b4b67..0000000 --- a/dot_config/vim/snips/php.snippets +++ /dev/null @@ -1,41 +0,0 @@ -snippet php "Starting php tag" !b - -endsnippet - -snippet ec "echo" !b -echo "${1}"; -endsnippet - -snippet f "Anonymous function" -function () { - ${1} -} -endsnippet - -snippet fuse "Anonymous function with use" -function () use (${1}) { - ${2} -} -endsnippet - -snippet this "this helper" -$${1:this}->${2:prop} -endsnippet - -snippet [] "array literal" -array(${1}) -endsnippet - -snippet {} "Empty object" -new stdClass() -endsnippet - -snippet scf "self calling function" !b -call_user_func(function () { - ${1} -}); -endsnippet diff --git a/dot_config/vim/snips/python.snippets b/dot_config/vim/snips/python.snippets deleted file mode 100644 index ffdf421..0000000 --- a/dot_config/vim/snips/python.snippets +++ /dev/null @@ -1,10 +0,0 @@ -snippet map "Map snippet" -map(${1:lambda x: x}, ${2:[]}) -endsnippet -snippet #! "Python shebang" ! -#!/usr/bin/env python3 -endsnippet -snippet #! "Python2 shebang" ! -#!/usr/bin/env python2 -# encoding: utf-8 -endsnippet diff --git a/dot_config/vim/snips/scss.snippets b/dot_config/vim/snips/scss.snippets deleted file mode 100644 index d5a7742..0000000 --- a/dot_config/vim/snips/scss.snippets +++ /dev/null @@ -1,8 +0,0 @@ -snippet mixin "mixin definition" -@mixin ${1:name}(${2:$vars}) { - ${3:@content} -} -endsnippet -snippet inc "call a mixin" -@include ${1:mixin-name}${2:($variables)} -endsnippet diff --git a/dot_config/vim/snips/typescript.snippets b/dot_config/vim/snips/typescript.snippets deleted file mode 100644 index aa87242..0000000 --- a/dot_config/vim/snips/typescript.snippets +++ /dev/null @@ -1 +0,0 @@ -extends javascript