From 2b2a8052cdc5bad9436466afb86c5cc9be2672b8 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Sun, 17 Mar 2024 01:06:15 -0500 Subject: feat: add mesonlsp (#3076) mesonlsp is a new language server for Meson by the same author as Swift-MesonLSP. Swift-MesonLSP is no longer developed. --- lua/lspconfig/server_configurations/mesonlsp.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 lua/lspconfig/server_configurations/mesonlsp.lua (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/mesonlsp.lua b/lua/lspconfig/server_configurations/mesonlsp.lua new file mode 100644 index 00000000..29eaef9b --- /dev/null +++ b/lua/lspconfig/server_configurations/mesonlsp.lua @@ -0,0 +1,19 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'mesonlsp', '--lsp' }, + filetypes = { 'meson' }, + root_dir = util.root_pattern('meson_options.txt', 'meson.options', '.git'), + }, + docs = { + description = [[ +https://github.com/JCWasmx86/mesonlsp + +An unofficial, unendorsed language server for meson written in C++ +]], + default_config = { + root_dir = [[util.root_pattern("meson_options.txt", "meson.options", ".git")]], + }, + }, +} -- cgit v1.2.3-70-g09d2