diff --git a/nvim/lua/plugins/lsp/treesitter.lua b/nvim/lua/plugins/lsp/treesitter.lua index 9aea9aa..d37e3fa 100755 --- a/nvim/lua/plugins/lsp/treesitter.lua +++ b/nvim/lua/plugins/lsp/treesitter.lua @@ -14,6 +14,7 @@ return { "lua", "python", "typescript", + "verilog" }, sync_install = false, diff --git a/nvim/my_snippets/package.json b/nvim/my_snippets/package.json deleted file mode 100644 index a9aaf4e..0000000 --- a/nvim/my_snippets/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "janishutz-snippets", - "engines": { - "vscode": "^1.11.0" - }, - "contributes": { - "snippets": [ - { - "language": "all", - "path": "./snippets/docSetup.json" - }, - { - "language": "tex", - "path": "./snippets/tex.json" - }, - { - "language": "javascript", - "path": "./snippets/javascript.json" - }, - { - "language": "typescript", - "path": "./snippets/typescript.json" - }, - { - "language": "vue", - "path": "./snippets/vue.json" - } - ] - } -} diff --git a/nvim/my_snippets/snippets/docSetup.json b/nvim/my_snippets/snippets/docSetup.json deleted file mode 100755 index d79bcaa..0000000 --- a/nvim/my_snippets/snippets/docSetup.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "docTitle": { - "prefix": "prepareDoc", - "body": "$BLOCK_COMMENT_START\n*\t\t\t\t$WORKSPACE_NAME - $TM_FILENAME\n*\n*\tCreated by Janis Hutz $CURRENT_MONTH/$CURRENT_DATE/$CURRENT_YEAR, Licensed under ${1|the GPL V3,the MIT,a proprietary,the BSD,the LGPL V3,the Apache|} License\n*\t\t\thttps://janishutz.com, development@janishutz.com\n*\n*\n$BLOCK_COMMENT_END" - } -} \ No newline at end of file diff --git a/nvim/my_snippets/snippets/html.json b/nvim/my_snippets/snippets/html.json deleted file mode 100755 index 1d2e582..0000000 --- a/nvim/my_snippets/snippets/html.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "impress": { - "prefix": "impress", - "body": [ - "", - "", - "\t\n\t\t$1\n\t\t\n\t", - "\t", - "\t\t
\n\t\t\t

Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

\n\t\t\t

For the best experience please use the latest Chrome, Safari or Firefox browser.

\n\t\t
", - "\t\t
", - "\t\t\t
\n\t\t\t\t
", - "\t\t\t\t\t

$2

\n\t\t\t\t
", - "\t\t\t
\n\t\t
", - "\n\t\t\n\t", - "" - ] - }, - "impress-step": { - "prefix": "impressStep", - "body": [ - "\n
", - "\t
", - "\t\t

$2

\n\t
", - "
\n" - ] - }, - "html-basic": { - "prefix": "basic", - "body": [ - "", - "", - "\t\n\t\t$1\n\t\t\n\t\t\n\t\t\n\t", - "\t\n\t\t

$3

", - "\t\n" - ] - }, - "impress-notes": { - "prefix": "impressNotes", - "body": "
\n\t$1\n
" - }, - "impress-substep": { - "prefix": "impressSubstep", - "body": "
\n\t$1\n
" - } -} \ No newline at end of file diff --git a/nvim/my_snippets/snippets/javascript.json b/nvim/my_snippets/snippets/javascript.json deleted file mode 100755 index a6e0759..0000000 --- a/nvim/my_snippets/snippets/javascript.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "JS-Class": { - "prefix": "jsSetupClass", - "body": "class $1 { \n\tconstructor () {} \n\n \t$2 () {\n\t$3\n\t}\n}", - "description": "Setup the basic structure of a class in JS" - }, - "ExpressJS": { - "prefix": "jsExpressSetup", - "body": [ - "const express = require( 'express' );", - "let app = express();", - "const path = require( 'path' );", - "const expressSession = require( 'express-session' );", - "const fs = require( 'fs' );", - "const bodyParser = require( 'body-parser' );", - "const cookieParser = require( 'cookie-parser' )", - "const favicon = require( 'serve-favicon' );", - "\napp.use( expressSession ( {\n\tsecret: $1,\n\tresave: true,\n\tsaveUninitialized: true\n} ) );", - "app.use( bodyParser.urlencoded( { extended: false } ) );", - "app.use( bodyParser.json() );", - "app.use( cookieParser() );", - "app.use( favicon( path.join( __dirname + '$2' ) ) );\n", - "app.use( ( request, response, next ) => {\n\tresponse.sendFile( path.join( __dirname + '$3' ) ) \n} );", - "\n\napp.get( '/', ( request, response ) => {\n$4\n} );", - "\n\nconst PORT = process.env.PORT || 8080;", - "http.createServer( app ).listen( PORT );" - ] - }, - "ExpressJS-Route": { - "prefix": "jsEjsRoute", - "body": "\n\napp.get( '$1', ( request, response ) => {\n$4\n} );" - }, - "JSAsync": { - "prefix": "jsAsync", - "body": "(async () => {\n$1\n} ) ();" - }, - "JSpromiseReturnFunc": { - "prefix": "jsPromise", - "body": "function $1 () {\n\treturn new Promise( ( resolve, reject ) => {\n\t$2\n\t} );\n}" - }, - "fetch from other url": { - "prefix": "remoteURL", - "body": [ - "localStorage.getItem( 'url' ) + '/$1'" - ], - "description": "remote URL fetching (get from base address from local storage)" - }, - "fetch post": { - "prefix": "fetchPost", - "body": [ - "const fetchOptions = {", - "\tmethod: 'post',", - "\tbody: JSON.stringify( $1 ),", - "\tcredentials: 'include',", - "\theaders: {", - "\t\t'Content-Type': 'application/json',", - "\t\t'charset': 'utf-8'", - "\t}", - "};", - "fetch( $2, fetchOptions ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "fetch get": { - "prefix": "fetchGet", - "body": [ - "fetch( $2, { credentials: 'include' } ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "promise": { - "prefix": "promise", - "body": [ - "return new Promise( ( resolve, reject ) => {", - "\t", - "} );" - ] - } -} \ No newline at end of file diff --git a/nvim/my_snippets/snippets/tex.json b/nvim/my_snippets/snippets/tex.json deleted file mode 100755 index b4aeb28..0000000 --- a/nvim/my_snippets/snippets/tex.json +++ /dev/null @@ -1,420 +0,0 @@ -{ - "prepare LaTeX Document": { - "prefix": "latex-prepare", - "body": [ - "\\documentclass{article}\n", - "\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!", - "\\input{\\dir/include.tex}", - "\\load{recommended}\n", - "\\setup{$1}\n", - "\\begin{document}", - "\\startDocument", - "\\usetcolorboxes", - "$2\n\n", - "\\end{document}" - ], - "description": "Prepares a full LaTeX Document for use and compiling" - }, - "Fancy table": { - "prefix": "table", - "body": [ - "\\begin{tables}{$1}{$2}\n", - "\t$3\\\\", - "\\end{tables}" - ], - "description": "Insert a table (without environment)" - }, - "Formula": { - "prefix": "formula", - "body": [ - "\\begin{formula}[]{$1}", - "\t$2", - "\\end{formula}" - ], - "description": "Inserts a tcolorbox to provide a formula (red)" - }, - "Definition": { - "prefix": "definition", - "body": [ - "\\begin{definition}[]{$1}", - "\t$2", - "\\end{definition}" - ], - "description": "Inserts a tcolorbox to provide a definition (blue)" - }, - "Recall": { - "prefix": "recall", - "body": [ - "\\begin{recall}[]{$1}", - "\t$2", - "\\end{recall}" - ], - "description": "Inserts a tcolorbox to provide a recall / revision of previous knowledge (yellow)" - }, - "Important Remarks": { - "prefix": "remarks", - "body": [ - "\\begin{remarks}[]{$1}", - "\t$2", - "\\end{remarks}" - ], - "description": "Inserts a tcolorbox to provide remarks (green)" - }, - "Guides": { - "prefix": "guides", - "body": [ - "\\begin{guides}[]{$1}{${2:Usage}}", - "\t$2", - "\\end{guides}" - ], - "description": "Inserts a tcolorbox to provide guides / instructions on how to use (red)" - }, - "Properties": { - "prefix": "properties", - "body": [ - "\\begin{properties}[]{$1}", - "\t$2", - "\\end{properties}" - ], - "description": "Inserts a tcolorbox to inform about properties" - }, - "Restrictions": { - "prefix": "restrictions", - "body": [ - "\\begin{restrictions}[]{$1}", - "\t$2", - "\\end{restrictions}" - ], - "description": "Inserts a tcolorbox to inform about restrictions" - }, - "Limitations": { - "prefix": "limitations", - "body": [ - "\\begin{limitations}[]{$1}", - "\t$2", - "\\end{limitations}" - ], - "description": "Inserts a tcolorbox to inform about limitations" - }, - "Theorem": { - "prefix": "theorem", - "body": [ - "\\begin{theorem}[]{$1}", - "\t$2", - "\\end{theorem}" - ], - "description": "Inserts a tcolorbox to inform about theorems" - }, - "Lemma": { - "prefix": "lemma", - "body": [ - "\\begin{lemma}[]{$1}", - "\t$2", - "\\end{lemma}" - ], - "description": "Inserts a tcolorbox to inform about lemmas" - }, - "Corollary": { - "prefix": "corollary", - "body": [ - "\\begin{corollary}[]{$1}", - "\t$2", - "\\end{corollary}" - ], - "description": "Inserts a tcolorbox to inform about corollaries" - }, - "Proposition": { - "prefix": "proposition", - "body": [ - "\\begin{proposition}[]{$1}", - "\t$2", - "\\end{proposition}" - ], - "description": "Inserts a tcolorbox to inform about propositions" - }, - "Fact": { - "prefix": "fact", - "body": [ - "\\begin{fact}[]{$1}", - "\t$2", - "\\end{fact}" - ], - "description": "Inserts a tcolorbox to inform about facts" - }, - "Terms": { - "prefix": "terms", - "body": [ - "\\begin{terms}[]{$1}", - "\t$2", - "\\end{terms}" - ], - "description": "Inserts a tcolorbox to inform about terms" - }, - "Proof": { - "prefix": "proof", - "body": [ - "\\begin{proof}[]{$1}", - "\t$2", - "\\end{proof}" - ], - "description": "Inserts a tcolorbox to show a proof" - }, - "Axiom": { - "prefix": "axiom", - "body": [ - "\\begin{axiom}[]{$1}", - "\t$2", - "\\end{axiom}" - ], - "description": "Inserts a tcolorbox to show an axiom" - }, - "Notation": { - "prefix": "notation", - "body": [ - "\\begin{notation}[]{$1}", - "\t$2", - "\\end{notation}" - ], - "description": "Inserts a tcolorbox to show notation" - }, - "Example": { - "prefix": "example", - "body": [ - "\\begin{example}[]{$1}", - "\t$2", - "\\end{example}" - ], - "description": "Inserts a tcolorbox to show example" - }, - "Task": { - "prefix": "task", - "body": [ - "\\begin{task}[]{$1}", - "\t$2", - "\\end{task}" - ], - "description": "Inserts a tcolorbox to show example" - }, - "Usage": { - "prefix": "usage", - "body": [ - "\\begin{usage}[]{$1}", - "\t$2", - "\\end{usage}" - ], - "description": "Inserts a tcolorbox to inform about usage" - }, - "Conjugation": { - "prefix": "conjugation", - "body": [ - "\\begin{conjugation}[]{$1}", - "\t$2", - "\\end{conjugation}" - ], - "description": "Inserts a tcolorbox to inform about conjugation" - }, - "Forms": { - "prefix": "forms", - "body": [ - "\\begin{forms}[]{$1}", - "\t$2", - "\\end{forms}" - ], - "description": "Inserts a tcolorbox to inform about forms of e.g. grammatical structures" - }, - "General-Tcolorbox": { - "prefix": "general-tcb", - "body": [ - "\\begin{general}[]{${1:title}}{${2:second title}}{${3|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}", - "\t$4", - "\\end{general}" - ], - "description": "Inserts a tcolorbox for general purposes. First bracket is title, second one is second title, third one colour" - }, - "Derivative": { - "prefix": "derivative", - "body": [ - "\\frac{\\mbox{d}}{\\mbox{d}x}$1" - ] - }, - "Example (inline)": { - "prefix": "example-inline", - "body": [ - "\\inlineex" - ] - }, - "Example (short)": { - "prefix": "example-short", - "body": [ - "\\shortex" - ] - }, - "Definition (inline)": { - "prefix": "definition-inline", - "body": [ - "\\inlinedef" - ] - }, - "Definition (short)": { - "prefix": "definition-short", - "body": [ - "\\shortdef" - ] - }, - "Theorem (inline)": { - "prefix": "theorem-inline", - "body": [ - "\\inlinetheorem" - ] - }, - "Theorem (short)": { - "prefix": "theorem-short", - "body": [ - "\\shorttheorem" - ] - }, - "Lemma (inline)": { - "prefix": "lemma-inline", - "body": [ - "\\inlinelemma" - ] - }, - "Lemma (short)": { - "prefix": "lemma-short", - "body": [ - "\\shortlemma" - ] - }, - "Corollary (inline)": { - "prefix": "corollary-inline", - "body": [ - "\\inlinecorollary" - ] - }, - "Corollary (short)": { - "prefix": "corollary-short", - "body": [ - "\\shortcorollary" - ] - }, - "Proposition (inline)": { - "prefix": "proposition-inline", - "body": [ - "\\inlineproposition" - ] - }, - "Proposition (short)": { - "prefix": "proposition-short", - "body": [ - "\\shortproposition" - ] - }, - "Fact (inline)": { - "prefix": "fact-inline", - "body": [ - "\\inlinefact" - ] - }, - "Fact (short)": { - "prefix": "fact-short", - "body": [ - "\\shortfact" - ] - }, - "Axiom (inline)": { - "prefix": "axiom-inline", - "body": [ - "\\inlineaxiom" - ] - }, - "Axiom (short)": { - "prefix": "axiom-short", - "body": [ - "\\shortaxiom" - ] - }, - "Proof (inline)": { - "prefix": "proof-inline", - "body": [ - "\\inlineproof" - ] - }, - "Proof (short)": { - "prefix": "proof-short", - "body": [ - "\\shortproof" - ] - }, - "bold": { - "prefix": "#bold", - "body": [ - "\\textbf{$1}" - ] - }, - "italic": { - "prefix": "#i", - "body": [ - "\\textit{$1}" - ] - }, - "bolditalic": { - "prefix": "#bi", - "body": [ - "\\textbf{\\textit{$1}}" - ] - }, - "underlinie": { - "prefix": "#u", - "body": [ - "\\underbar{$1}" - ] - }, - "algebra": { - "prefix": "algebra", - "body": [ - "\\langle $1 \\rangle" - ] - }, - "fill-width": { - "prefix": "#fill", - "body": [ - "\\hspace{\\fill}$1" - ] - }, - "Latex-Colour": { - "prefix": "colour", - "body": [ - "${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}" - ] - }, - "Latex-Text-Colour": { - "prefix": "colour-text", - "body": [ - "\\color{${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}" - ] - }, - "Set Language": { - "prefix": "setLang", - "body": [ - "\\setLang{$1}" - ] - }, - "Letter": { - "prefix": "latex-letter", - "body": [ - "\\documentclass[12pt,a4paper]{scrlttr2}\n", - "\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!", - "\\input{\\dir/include.tex}", - "\\load{letter}\n", - "% Subject", - "\\setkomavar{subject}{$1}", - "\\begin{document}\\raggedright", - "\t\\begin{letter}{Company \\\\\\ Name \\\\\\ Address \\\\\\ CH-Place}", - "\t\t\\opening{Intro}\n", - "\t\t$2\n", - "\t\t\\closing{Kind regards}", - "\t\\end{letter}", - "\\end{document}" - ] - } -} diff --git a/nvim/my_snippets/snippets/typescript.json b/nvim/my_snippets/snippets/typescript.json deleted file mode 100755 index 2b83a66..0000000 --- a/nvim/my_snippets/snippets/typescript.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "JS-Class": { - "prefix": "jsSetupClass", - "body": "class $1 { \n\tconstructor () {} \n\n \t$2 () {\n\t$3\n\t}\n}", - "description": "Setup the basic structure of a class in JS" - }, - "ExpressJS": { - "prefix": "jsExpressSetup", - "body": [ - "const express = require( 'express' );", - "let app = express();", - "const path = require( 'path' );", - "const expressSession = require( 'express-session' );", - "const fs = require( 'fs' );", - "const bodyParser = require( 'body-parser' );", - "const cookieParser = require( 'cookie-parser' )", - "const favicon = require( 'serve-favicon' );", - "\napp.use( expressSession ( {\n\tsecret: $1,\n\tresave: true,\n\tsaveUninitialized: true\n} ) );", - "app.use( bodyParser.urlencoded( { extended: false } ) );", - "app.use( bodyParser.json() );", - "app.use( cookieParser() );", - "app.use( favicon( path.join( __dirname + '$2' ) ) );\n", - "app.use( ( request, response, next ) => {\n\tresponse.sendFile( path.join( __dirname + '$3' ) ) \n} );", - "\n\napp.get( '/', ( request, response ) => {\n$4\n} );", - "\n\nconst PORT = process.env.PORT || 8080;", - "http.createServer( app ).listen( PORT );" - ] - }, - "ExpressJS-Route": { - "prefix": "jsEjsRoute", - "body": "\n\napp.get( '$1', ( request: express.Request, response: express.Response ) => {\n$4\n} );" - }, - "JSAsync": { - "prefix": "jsAsync", - "body": "(async () => {\n$1\n} ) ();" - }, - "JSpromiseReturnFunc": { - "prefix": "jsPromise", - "body": "function $1 () {\n\treturn new Promise( ( resolve, reject ) => {\n\t$2\n\t} );\n}" - }, - "fetch from other url": { - "prefix": "remoteURL", - "body": [ - "localStorage.getItem( 'url' ) + '/$1'", - ], - "description": "remote URL fetching (get from base address from local storage)" - }, - "fetch post": { - "prefix": "fetchPost", - "body": [ - "const fetchOptions = {", - "\tmethod: 'post',", - "\tbody: JSON.stringify( $1 ),", - "\tcredentials: 'include',", - "\theaders: {", - "\t\t'Content-Type': 'application/json',", - "\t\t'charset': 'utf-8'", - "\t}", - "};", - "fetch( $2, fetchOptions ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "fetch get": { - "prefix": "fetchGet", - "body": [ - "fetch( $2, { credentials: 'include' } ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "promise": { - "prefix": "promise", - "body": [ - "return new Promise( ( resolve, reject ) => {", - "\t", - "} );" - ] - } -} \ No newline at end of file diff --git a/nvim/my_snippets/snippets/vue.json b/nvim/my_snippets/snippets/vue.json deleted file mode 100755 index 9571d25..0000000 --- a/nvim/my_snippets/snippets/vue.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "script:setup": { - "prefix": "script:setup", - "body": [ - "" - ], - "description": "Setup the basic structure of a class in JS" - } -} \ No newline at end of file