mirror of
https://github.com/cap153/nvim.git
synced 2025-12-26 19:25:01 +08:00
更新neovim配置
This commit is contained in:
parent
926899e09a
commit
23ac44ae4e
34 changed files with 408 additions and 1312 deletions
37
snippets/lua.json
Normal file
37
snippets/lua.json
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"sec": {
|
||||
"prefix": "sec",
|
||||
"body": [
|
||||
"-- ===",
|
||||
"-- === ${0}",
|
||||
"-- ==="
|
||||
],
|
||||
"description": "Section comment"
|
||||
},
|
||||
"return": {
|
||||
"prefix": "return",
|
||||
"body": [
|
||||
"return {",
|
||||
"\t${1}",
|
||||
"\tconfig = function()",
|
||||
"\t\t${2}",
|
||||
"\tend",
|
||||
"}"
|
||||
],
|
||||
"description": "Return with config function"
|
||||
},
|
||||
"require_keymap": {
|
||||
"prefix": "require_keymap",
|
||||
"body": [
|
||||
"local map = require(\"core.keymap\")"
|
||||
],
|
||||
"description": "Require keymap for Neovim"
|
||||
},
|
||||
"require_plugins": {
|
||||
"prefix": "require_plugins",
|
||||
"body": [
|
||||
"require(\"lazy.plugins.${0}\")"
|
||||
],
|
||||
"description": "Require plugins for Neovim"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue