Create toml.lua

adding toml support to PR on LazyVim
This commit is contained in:
Andrea C from The App 2024-03-30 08:41:14 +01:00 committed by GitHub
parent 97480dc5d2
commit d1381d574b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,34 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "toml" })
end
end,
},
{
"williamboman/mason.nvim",
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "taplo" })
end,
},
{
"stevearc/conform.nvim",
opts = {
formatters_by_ft = {
toml = { "taplo" },
},
},
},
{
"neovim/nvim-lspconfig",
ft = { "toml" },
opts = {
servers = {
taplo = {},
},
},
},
}