mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-22 08:53:33 +02:00
feat(extras): add thrift lang support (#2804)
This PR adds support for thriftls, the first line is because thrift is not among the neovim built-in file types. --------- Co-authored-by: Folke Lemaitre <folke.lemaitre@gmail.com>
This commit is contained in:
parent
32ba8ea3fe
commit
5a19f6b5fe
1 changed files with 23 additions and 0 deletions
23
lua/lazyvim/plugins/extras/lang/thrift.lua
Normal file
23
lua/lazyvim/plugins/extras/lang/thrift.lua
Normal file
|
@ -0,0 +1,23 @@
|
|||
return {
|
||||
recommended = {
|
||||
ft = "thrift",
|
||||
root = ".thrift",
|
||||
},
|
||||
{
|
||||
"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
Add a link
Reference in a new issue