mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
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:
parent
f8268faa7c
commit
088d0f901a
1 changed files with 19 additions and 0 deletions
19
lua/lazyvim/plugins/extras/lang/thrift.lua
Normal file
19
lua/lazyvim/plugins/extras/lang/thrift.lua
Normal 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 = {},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
Loading…
Add table
Reference in a new issue