From d8a0641fb832e3c5032b60791d85cf9ed818885c Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Tue, 5 Nov 2024 22:27:59 -0500 Subject: [PATCH] Add taplo and some snips --- init.lua | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/init.lua b/init.lua index 694cea1..c3d23ff 100644 --- a/init.lua +++ b/init.lua @@ -446,6 +446,7 @@ require("lazy").setup({ "cpp", }, }, + taplo = {}, yamlls = {}, -- gopls = {}, jdtls = { @@ -475,6 +476,7 @@ require("lazy").setup({ }, }, }, + arduino_language_server = {}, ltex = { settings = { ltex = { @@ -681,6 +683,20 @@ require("lazy").setup({ insert(2), text(")"), }), + snip({ + trig = "header", + namr = "header", + dscr = "Yaml header for markdown notes", + }, { + text({ "---", "" }), + text("title: "), + insert(1), + text({ "", "author: Alex Selimov", "" }), + text("tags: ["), + insert(2), + text({ "]", "", "" }), + text({ "---", "" }), + }), }, }) end, @@ -836,7 +852,14 @@ vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { vim.bo.filetype = "scorch" end, }) - +-- +--Testing scorch highlighting +vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, { + pattern = "*.sep", + callback = function() + vim.bo.filetype = "sep" + end, +}) -- Commands to disable formatting require("conform").setup({ format_on_save = function(bufnr)