aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/configs/muon.lua20
1 files changed, 20 insertions, 0 deletions
diff --git a/lua/lspconfig/configs/muon.lua b/lua/lspconfig/configs/muon.lua
new file mode 100644
index 00000000..b1cce2ba
--- /dev/null
+++ b/lua/lspconfig/configs/muon.lua
@@ -0,0 +1,20 @@
+local async = require('lspconfig.async')
+
+return {
+ default_config = {
+ cmd = { 'muon', 'analyze', 'lsp' },
+ filetypes = { 'meson' },
+ root_dir = function(fname)
+ local res = async.run_command({ 'muon', 'analyze', 'root-for', fname })
+ if res[1] then
+ return vim.trim(res[1])
+ end
+ end,
+ },
+ docs = {
+ description = [[
+https://muon.build
+]],
+ default_config = {},
+ },
+}