feat(lang): add toml (#3022)

Co-authored-by: gacallea <gacallea@users.noreply.github.com>
This commit is contained in:
Andrea C from The App 2024-05-19 20:47:00 +02:00 committed by GitHub
parent a72baa8295
commit e0c67f6776
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -0,0 +1,30 @@
return {
recommended = function()
return LazyVim.extras.wants({
ft = "toml",
})
end,
{
"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,
},
{
"neovim/nvim-lspconfig",
opts = {
servers = {
taplo = {},
},
},
},
}