Перешел на lazy nvim, навел порядок в плагинах
This commit is contained in:
		
							parent
							
								
									91873ed81a
								
							
						
					
					
						commit
						446d2716e7
					
				
					 25 changed files with 790 additions and 469 deletions
				
			
		
							
								
								
									
										23
									
								
								nvim/snippets/go.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								nvim/snippets/go.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,23 @@
 | 
			
		|||
{
 | 
			
		||||
	"package line": {
 | 
			
		||||
		"body": ["package ${TM_DIRECTORY/.+\\/(.+)$/${1:/downcase}/}", "", "$0"],
 | 
			
		||||
		"description": "package header",
 | 
			
		||||
		"prefix": "pkg"
 | 
			
		||||
	},
 | 
			
		||||
	"structure constructor": {
 | 
			
		||||
		"body": [
 | 
			
		||||
			"// New$1 returns new $1.",
 | 
			
		||||
			"func New${1:type}(${2}) *$1 {",
 | 
			
		||||
			"\t$3",
 | 
			
		||||
			"\treturn &$1{$4}",
 | 
			
		||||
			"}"
 | 
			
		||||
		],
 | 
			
		||||
		"description": "constructor for structure type",
 | 
			
		||||
		"prefix": "construct"
 | 
			
		||||
	},
 | 
			
		||||
	"if err := ...; err != nil": {
 | 
			
		||||
		"prefix": "iferr",
 | 
			
		||||
		"body": "if err := ${1}; err != nil {\n\t${2:return ${3:nil, }${4:err}}\n}",
 | 
			
		||||
		"description": "Snippet for if err := ...; err != nil"
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										38
									
								
								nvim/snippets/package.json
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										38
									
								
								nvim/snippets/package.json
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,38 @@
 | 
			
		|||
{
 | 
			
		||||
	"name": "gotools",
 | 
			
		||||
	"displayName": "Golang Tools",
 | 
			
		||||
	"description": "Tools for productive work",
 | 
			
		||||
	"version": "0.1.5",
 | 
			
		||||
	"engines": {
 | 
			
		||||
		"vscode": "^1.80.0"
 | 
			
		||||
	},
 | 
			
		||||
	"publisher": "neonxp",
 | 
			
		||||
	"license": "GPL-3.0-or-later",
 | 
			
		||||
	"author": {
 | 
			
		||||
		"name": "Alexander NeonXP Kiryukhin",
 | 
			
		||||
		"email": "a.kiryukhin@mail.ru",
 | 
			
		||||
		"url": "https://neonxp.ru/"
 | 
			
		||||
	},
 | 
			
		||||
	"repository": {
 | 
			
		||||
		"type": "git",
 | 
			
		||||
		"url": "https://github.com/neonxp/GoTools"
 | 
			
		||||
	},
 | 
			
		||||
	"icon": "icon.png",
 | 
			
		||||
	"categories": [
 | 
			
		||||
		"Programming Languages",
 | 
			
		||||
		"Snippets",
 | 
			
		||||
		"Other"
 | 
			
		||||
	],
 | 
			
		||||
	"keywords": [
 | 
			
		||||
		"go",
 | 
			
		||||
		"golang"
 | 
			
		||||
	],
 | 
			
		||||
	"contributes": {
 | 
			
		||||
		"snippets": [
 | 
			
		||||
			{
 | 
			
		||||
				"language": "go",
 | 
			
		||||
				"path": "./go.json"
 | 
			
		||||
			}
 | 
			
		||||
		]
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue