Massive Updates

This commit is contained in:
sankalp committed 2024-01-07 22:32:54 +05:45
1 parent 007c2f8edb
commit 5f37d6c0ec
109 files changed
+7670 -3972

No files matched your search

+38
View File
@@ -0,0 +1,38 @@
{
"autocmd": {
"body": [
"vim.api.nvim_create_autocmd(\"${1:event}\", {",
"\tcallback = function()",
"\t\t$0",
"\tend,",
"})"
],
"prefix": "autocmd"
},
"autocmd (Filetype)": {
"body": [
"vim.api.nvim_create_autocmd(\"FileType\", {",
"\tpattern = \"${1:ft}\",",
"\tcallback = function()",
"\t\t$0",
"\tend,",
"})"
],
"filetype": "lua",
"prefix": "autocmd (Filetype)"
},
"check if file exists": {
"body": "local fileExists = vim.loop.fs_stat(\"${1:filepath}\") ~= nil",
"prefix": "check if file exists"
},
"keymap": {
"body": "map(\"n\", \"${1:lhs}\", \"${2:rhs}\", { desc = \"${3:description}\" })",
"filetype": "lua",
"prefix": "keymap"
},
"notify": {
"body": "vim.notify(${1:message}, ${2:level}, { title = \"${3:title}\" })",
"filetype": "lua",
"prefix": "notify"
}
}