aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorTristan Partin <tristan@partin.io>2024-03-17 01:06:15 -0500
committerGitHub <noreply@github.com>2024-03-17 14:06:15 +0800
commit2b2a8052cdc5bad9436466afb86c5cc9be2672b8 (patch)
tree3498ffaed76371ddf0d238143bf623fc2ff5093b /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.tar
nvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.tar.gz
nvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.tar.bz2
nvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.tar.lz
nvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.tar.xz
nvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.tar.zst
nvim-lspconfig-2b2a8052cdc5bad9436466afb86c5cc9be2672b8.zip
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.
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/mesonlsp.lua19
1 files changed, 19 insertions, 0 deletions
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")]],
+ },
+ },
+}