diff options
| author | Stone Tickle <lattis@mochiro.moe> | 2025-03-18 06:33:22 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-18 18:33:22 +0800 |
| commit | 361fff9b06f56ffef1fc50050075158d8c94a936 (patch) | |
| tree | a521e2b06187723627311b1511e679662a923eaf /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.tar nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.tar.gz nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.tar.bz2 nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.tar.lz nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.tar.xz nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.tar.zst nvim-lspconfig-361fff9b06f56ffef1fc50050075158d8c94a936.zip | |
feat: add muon server for meson files(#3646)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/configs/muon.lua | 20 |
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 = {}, + }, +} |
