diff options
| author | Tobias Frilling <tobias@frilling.dev> | 2023-10-06 08:15:25 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-06 14:15:25 +0800 |
| commit | cafbeff74f063ed49456a1a99102efde824e6e00 (patch) | |
| tree | b2b9d6bbbd4a75708e4c001fb253ac0e45eae62e /lua | |
| parent | fix(launch): check buffer is valid before get_name (#2852) (diff) | |
| download | nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.tar nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.tar.gz nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.tar.bz2 nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.tar.lz nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.tar.xz nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.tar.zst nvim-lspconfig-cafbeff74f063ed49456a1a99102efde824e6e00.zip | |
feat: add support for uiua (#2853)
* feat: add support for uiua
* feat(uiua): change `root_dir`
It now includes `main.ua` and `.fmt.ua`
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/lspconfig/server_configurations/uiua.lua | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/uiua.lua b/lua/lspconfig/server_configurations/uiua.lua new file mode 100644 index 00000000..b102f8c3 --- /dev/null +++ b/lua/lspconfig/server_configurations/uiua.lua @@ -0,0 +1,31 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'uiua', 'lsp' }, + filetypes = { 'uiua' }, + root_dir = function(fname) + return util.root_pattern('main.ua', '.fmt.ua')(fname) or util.find_git_ancestor(fname) + end, + }, + docs = { + description = [[ +https://github.com/uiua-lang/uiua/ + +The builtin language server of the Uiua interpreter. + +The Uiua interpreter can be installed with `cargo install uiua` +]], + default_config = { + cmd = { 'uiua', 'lsp' }, + filetypes = { 'uiua' }, + root_dir = [[ + root_pattern( + 'main.ua', + 'fmt.ua', + '.git' + ) + ]], + }, + }, +} |
