-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added html snippet, and better filedetection
- Loading branch information
Showing
4 changed files
with
32 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
vim.api.nvim_create_autocmd("BufNewFile", { | ||
pattern = "*.ino", | ||
callback = function() | ||
vim.cmd([[setlocal shiftwidth=2 | ||
"setlocal tabstop=2")]]) | ||
end, | ||
command = "setlocal syntax=css tabstop=2 shiftwidth=2 softtabstop=2", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,4 @@ | ||
vim.api.nvim_create_autocmd("BufReadPre", { | ||
pattern = "*.ts", | ||
callback = function() | ||
vim.cmd([[setlocal shiftwidth=2 | ||
"setlocal tabstop=2")]]) | ||
end, | ||
command = "setlocal syntax=css tabstop=2 shiftwidth=2 softtabstop=2", | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
local env = LUASNIP_ENV -- global variable declared in `lua/plugins/luasnip.lua` | ||
if env == nil then | ||
return | ||
end | ||
|
||
return { | ||
env.s( | ||
"html", | ||
env.fmt( | ||
[[<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<title>HTML5 Boilerplate</title> | ||
<link rel="stylesheet" href="styles.css"> | ||
</head> | ||
<body> | ||
<h1>Page Title</h1> | ||
<script src="scripts.js"></script> | ||
</body> | ||
</html> | ||
]], | ||
{} | ||
) | ||
), | ||
} |