[nvim] feat: add filetype specific config

This commit is contained in:
David JULIEN 2021-10-19 19:02:43 +02:00
parent 9538391e5c
commit d17d905645
2 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,25 @@
-- Author : swytch
-- Created : Monday Oct. 04, 2021 16:09:13 CET
-- License : GPLv3
-- Description : tex fietype config
-- Caps
utils.map("i", "AA", "À")
utils.map("i", "CC", "Ç")
utils.map("i", "EE", "É")
-- Unbreakable spaces
utils.map("i", "<Space>etc", "\\,etc.")
utils.map("i", "<Space>:", "\\,:")
-- Centered point
utils.map("i", ";.", "\\textperiodcentered")
-- Italics
utils.map("i", "II", "\\textit{}<Esc>i")
-- Bold
utils.map("i", "BB", "\\textbf{}<Esc>i")
-- Bold + Italics
utils.map("i", "BI", "\\textit{\\textbf{}}<Esc>hi")
-- Smallcaps
utils.map("i", "SC", "\\fsc{}<Esc>i")

View File

@ -0,0 +1,10 @@
-- Author : swytch
-- Created : Sunday Oct. 03, 2021 18:06:12 CET
-- License : GPLv3
-- Description : verilog fietype config
utils.map("n", "<leader>j", ":CoqNext<Enter>")
utils.map("n", "<leader>k", ":CoqUndo<Enter>")
utils.map("n", "<leader><Enter>", ":CoqToLine<Enter>")
utils.map("i", "//", "")