dotfiles/nvim/own-snippets/nroff.snippets
Gabriel Arazas 0681d1fd7c Structure the project with NixOS-styled distros
It's been a while but I've been using NixOS (or anything styled like it
like GuixSD, for example) and distro-hopped from Arch Linux.
I think it's high noon for making the structure of this setup to be
truer to one of the big objectives which is how easy to transfer this
between different setups.
Which means I removed some things such as the package lists, systemd
config files, and package manager-specific configs.
While the solution is easy (which is to simply ignore the
system-specific files) but I'm not going with the pragmatic solution not
because I'm a dumbass but because I'm so smart that I want to create a
challenge for myself to solve a puzzle on figuring out a way on how to
structure my dotfiles. :)

Such a productive use of my time, that's for sure.
2020-09-11 03:12:26 +08:00

75 lines
874 B
Plaintext
Executable File

# Text formatting
snippet p "Paragraph" bi
.PP
$0
endsnippet
snippet bf "Boldface" iw
.ft B
$1
.ft
$0
endsnippet
snippet it "Italic" iw
.ft I
$1
.ft
$0
endsnippet
snippet bfit "Boldface italic" iw
.ft BI
$1
.ft
$0
endsnippet
# Document structures
snippet title "Title header" bi
.TH ${1:TITLE} ${2:SECTION} ${3:EXTRA}
$0
endsnippet
snippet sect "Sectioned (unnumbered) headers" bi
.SH ${1:SECTION NAME}
$0
endsnippet
snippet ss "Subsectioned (unnumbered) headers" bi
.SS ${1:SUBSECTION NAME}
$0
endsnippet
snippet ol "Ordered list setup" bi
.nr step 1 1
.IP \n+[step]
$1
$0
endsnippet
snippet oli "Ordered list item" bi
.IP \n+[step]
$1
$0
endsnippet
snippet uli "Unordered list item" bi
.IP \[bu]
$1
$0
endsnippet
snippet dl "Definition-style list item" bi
.IP ${1:WORD}
${2:DESCRIPTION}
$0
endsnippet
snippet eq "Equation" bi
.EQ
${1:EQUATION}
.EN
endsnippet