feat(lang/thrift): add thrift lang support

This PR adds support for thriftls, the first line is because thrift is not among the neovim built-in file types.
This commit is contained in:
李晓辉 2024-03-22 17:30:21 +08:00 committed by Folke Lemaitre
parent f8268faa7c
commit 088d0f901a

View file

@ -0,0 +1,19 @@
return {
{
"nvim-treesitter",
optional = true,
opts = function(_, opts)
opts.ensure_installed = opts.ensure_installed or {}
vim.list_extend(opts.ensure_installed, { "thrift" })
end,
},
{
"nvim-lspconfig",
optional = true,
opts = {
servers = {
thriftls = {},
},
},
},
}