From 088d0f901a036326592bc7adae7fc7a52ca910bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E8=BE=89?= Date: Fri, 22 Mar 2024 17:30:21 +0800 Subject: [PATCH] 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. --- lua/lazyvim/plugins/extras/lang/thrift.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/lazyvim/plugins/extras/lang/thrift.lua diff --git a/lua/lazyvim/plugins/extras/lang/thrift.lua b/lua/lazyvim/plugins/extras/lang/thrift.lua new file mode 100644 index 00000000..190cc291 --- /dev/null +++ b/lua/lazyvim/plugins/extras/lang/thrift.lua @@ -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 = {}, + }, + }, + }, +}