Skip to content

Add fennel-ls support #804

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 43 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
36432fe
Merge branch 'master' of github.com:sakuraiyuta/vim-lsp-settings
sakuraiyuta Apr 7, 2023
883dff2
Merge branch 'mattn:master' into master
sakuraiyuta May 29, 2023
730fb19
Merge branch 'mattn:master' into master
sakuraiyuta Jun 24, 2023
2986c9d
Use `uname -m` as `-p` doesn't always work
jm33-m0 Jul 31, 2023
1738c3a
Update elixir-ls version to 0.15.1
pojiro Jul 28, 2023
784ebb2
update kotlin language server
dandelion293949 Jul 31, 2023
2537b0c
Add RuboCop lsp mode.
mikoto2000 Aug 18, 2023
911c317
gopls: change capabilities to use documentSymbol
satorunooshie Aug 4, 2023
602b3b0
add v-analyzer
zakuro9715 Sep 2, 2023
339937d
Fix elixir-ls installer
pojiro Aug 2, 2023
b913e13
tailwindcss-intelisense version 0.5.10 -> 0.10.0
gawetto Sep 12, 2023
717a151
Fix deno's inlay hint settings
heavenshell Nov 15, 2023
94b0303
Fix deno lsp did not work when using v1.39.0
kuuote Dec 15, 2023
b96200d
add sorbet information to settings.json
tsukkee Dec 7, 2023
c1f64a4
add sorbet installer
tsukkee Dec 7, 2023
1e27772
add sorbet setting
tsukkee Dec 7, 2023
405c5f6
update README
tsukkee Dec 8, 2023
d52086a
handle watchman dependency
tsukkee Dec 8, 2023
d282773
add documentation
tsukkee Dec 8, 2023
de16c27
Fix build error for ocaml-lsp on macOS Sonoma
msfukui Oct 14, 2023
5cce5c0
Update Kotlin LSP to 1.3.7
lazebny Oct 16, 2023
790a579
new file format for ntt archive for windows
moosq Oct 23, 2023
198a94c
Bump up PowerShellEditorServices to v3.14.0
sgur Nov 16, 2023
2e37889
Update non-windows installer
sgur Nov 16, 2023
f880aa0
tailwindcss in svelte
gawetto Oct 9, 2023
b99b187
fix README
gawetto Dec 16, 2023
be3257b
fix: Use simple check for pip install (win)
tsuyoshicho Dec 23, 2023
fa53f10
Update elixir-ls version to 0.18.1
pojiro Dec 28, 2023
b9096ad
Added Hyuga installer
sakuraiyuta Sep 4, 2022
23029f0
fix hyuga installer(added --system-site-package option)
sakuraiyuta Sep 4, 2022
d23c499
Added Hyuga installer
sakuraiyuta Sep 4, 2022
c50d67e
update README: change "hyuga local install" to "No".
sakuraiyuta Jan 6, 2024
672e168
hyuga: added required, fix installer for windows.
sakuraiyuta Jan 6, 2024
464d00a
Merge branch 'mattn:master' into master
sakuraiyuta Feb 2, 2024
2f40335
Merge branch 'mattn:master' into master
sakuraiyuta Oct 29, 2024
d760b14
Merge remote-tracking branch 'mattn/master'
sakurai-andrew Dec 5, 2024
4c31380
Merge branch 'mattn:master' into master
sakuraiyuta Apr 18, 2025
23b2a4a
Added fennel-ls installer(*nix only, TODO: for windows)
sakurai-andrew Apr 18, 2025
53fabdb
update README(added fennel-ls)
sakurai-andrew Apr 18, 2025
cebe9b1
added installer for Windows.
sakuraiyuta May 17, 2025
fed3e02
Fixed the process to determine if it is Windows or not.
sakuraiyuta May 17, 2025
70a99cb
Fix windows fennel-ls installer, git clone repo
sakuraiyuta May 17, 2025
b759e88
fennel-ls: added comments
sakuraiyuta May 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ You can change the directory to install servers by set `g:lsp_settings_servers_d
| Erlang | erlang-ls | Yes | Yes |
| F# | fsautocomplete | Yes | Yes |
| F# | fsharp-language-server | Yes | Yes |
| Fennel | fennel-ls | Yes | Yes |
| Fortran | fortls | Yes | Yes |
| Go | gopls | Yes | Yes |
| Go | golangci-lint-langserver | Yes | Yes |
Expand Down
31 changes: 31 additions & 0 deletions installer/install-fennel-ls.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
@echo off

:check_bash
IF EXIST "C:\Program Files\Git\bin\bash.exe" (
echo Detected: Git Bash x64
set BASH="C:\Program Files\Git\bin\bash.exe"
) ELSE IF EXIST "C:\Program Files (x86)\Git\bin\bash.exe" (
echo Detected: Git Bash x86
set BASH="C:\Program Files (x86)\Git\bin\bash.exe"
) ELSE (
echo Git Bash not found. Please install Git for Windows.
echo example:
echo winget install Git.Git
goto :exit
)

echo BASH=%BASH%

:make
copy "%~dp0install-fennel-ls.sh" "%cd%\install-fennel-ls.sh"
%BASH% -c "./install-fennel-ls.sh"

:makebat
echo FIXME: Workaround - need to create a dummy .bat file since vim-lsp-settings verifies the executable's existence.
echo Creating dummy file: fennel-ls.bat
echo "" > fennel-ls.bat

:clean
del "%cd%\install-fennel-ls.sh"

:exit
12 changes: 12 additions & 0 deletions installer/install-fennel-ls.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

set -e

# FIXME: official repository is not available for Windows
# git clone https://git.sr.ht/~xerool/fennel-ls src
git clone https://git.sr.ht/~y_sakurai/fennel-ls src
cd src/
make
cp fennel-ls ../
cd ../
rm -rf src/
10 changes: 10 additions & 0 deletions settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,16 @@
}
}
],
"fennel": [
{
"command": "fennel-ls",
"url": "https://git.sr.ht/~xerool/fennel-ls",
"description": "Provides intelligent editing features for fennel files.",
"requires": [
"lua"
]
}
],
"fortran": [
{
"command": "fortls",
Expand Down
19 changes: 19 additions & 0 deletions settings/fennel-ls.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
augroup vim_lsp_settings_fennel_ls
au!
if has('win32') || has('win64')
let Fennel_ls_cmd = {server_info->lsp_settings#get('fennel-ls', 'cmd', ['lua.exe', lsp_settings#servers_dir().'\fennel-ls\fennel-ls']+lsp_settings#get('fennel-ls', 'args', []))}
else
let Fennel_ls_cmd = {server_info->lsp_settings#get('fennel-ls', 'cmd', [lsp_settings#exec_path('fennel-ls')]+lsp_settings#get('fennel-ls', 'args', []))}
endif
LspRegisterServer {
\ 'name': 'fennel-ls',
\ 'cmd': Fennel_ls_cmd,
\ 'root_uri':{server_info->lsp_settings#get('fennel-ls', 'root_uri', lsp_settings#root_uri('fennel-ls'))},
\ 'initialization_options': lsp_settings#get('fennel-ls', 'initialization_options', v:null),
\ 'allowlist': lsp_settings#get('fennel-ls', 'allowlist', ['fennel']),
\ 'blocklist': lsp_settings#get('fennel-ls', 'blocklist', []),
\ 'config': lsp_settings#get('fennel-ls', 'config', lsp_settings#server_config('fennel-ls')),
\ 'workspace_config': lsp_settings#get('fennel-ls', 'workspace_config', {}),
\ 'semantic_highlight': lsp_settings#get('fennel-ls', 'semantic_highlight', {}),
\ }
augroup END
Loading