Add taplo and some snips
This commit is contained in:
parent
35f91760b6
commit
d8a0641fb8
25
init.lua
25
init.lua
@ -446,6 +446,7 @@ require("lazy").setup({
|
|||||||
"cpp",
|
"cpp",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
taplo = {},
|
||||||
yamlls = {},
|
yamlls = {},
|
||||||
-- gopls = {},
|
-- gopls = {},
|
||||||
jdtls = {
|
jdtls = {
|
||||||
@ -475,6 +476,7 @@ require("lazy").setup({
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
arduino_language_server = {},
|
||||||
ltex = {
|
ltex = {
|
||||||
settings = {
|
settings = {
|
||||||
ltex = {
|
ltex = {
|
||||||
@ -681,6 +683,20 @@ require("lazy").setup({
|
|||||||
insert(2),
|
insert(2),
|
||||||
text(")"),
|
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,
|
end,
|
||||||
@ -836,7 +852,14 @@ vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
|||||||
vim.bo.filetype = "scorch"
|
vim.bo.filetype = "scorch"
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
--
|
||||||
|
--Testing scorch highlighting
|
||||||
|
vim.api.nvim_create_autocmd({ "BufRead", "BufNewFile" }, {
|
||||||
|
pattern = "*.sep",
|
||||||
|
callback = function()
|
||||||
|
vim.bo.filetype = "sep"
|
||||||
|
end,
|
||||||
|
})
|
||||||
-- Commands to disable formatting
|
-- Commands to disable formatting
|
||||||
require("conform").setup({
|
require("conform").setup({
|
||||||
format_on_save = function(bufnr)
|
format_on_save = function(bufnr)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user