Configure LSP for Go and FORTRAN
This commit is contained in:
parent
80cd12ec19
commit
565379aaf3
|
@ -401,6 +401,7 @@ main() ->
|
|||
main: "main.f",
|
||||
compile: "flang main.f -o main",
|
||||
run: "./main",
|
||||
lsp: "fortls",
|
||||
template: ` program hello
|
||||
print *, "Hello, world!"
|
||||
end program hello
|
||||
|
@ -423,6 +424,7 @@ main() ->
|
|||
main: "main.go",
|
||||
compile: "go build main.go",
|
||||
run: "./main",
|
||||
lsp: "gopls",
|
||||
template: `package main
|
||||
|
||||
import "fmt"
|
||||
|
|
|
@ -34,6 +34,9 @@ npm install -g coffeescript
|
|||
# Elm
|
||||
npm install -g @kachkaev/run-elm
|
||||
|
||||
# FORTRAN
|
||||
pip3 install fortran-language-server
|
||||
|
||||
# Perl
|
||||
cpanm -n Devel::REPL
|
||||
|
||||
|
|
|
@ -40,6 +40,12 @@ gunzip binary-for-linux-64-bit.gz
|
|||
chmod +x binary-for-linux-64-bit
|
||||
mv binary-for-linux-64-bit /usr/bin/elm
|
||||
|
||||
# Go
|
||||
export GO111MODULE=on
|
||||
export GOPATH=/tmp/go
|
||||
mv /tmp/go/bin/gopls /usr/bin/gopls
|
||||
rm -rf /tmp/go
|
||||
|
||||
# Ink
|
||||
cd /tmp
|
||||
wget -nv https://github.com/thesephist/ink/releases/download/v0.1.7/ink-linux
|
||||
|
@ -74,6 +80,7 @@ wget -nv "${nupkg}"
|
|||
unzip -d /opt/mspyls Python-Language-Server-linux-x64.*.nupkg
|
||||
chmod +x /opt/mspyls/Microsoft.Python.LanguageServer
|
||||
ln -s /opt/mspyls/Microsoft.Python.LanguageServer /usr/bin/Microsoft.Python.LanguageServer
|
||||
rm Python-Language-Server-linux-x64.*.nupkg
|
||||
|
||||
# SNOBOL
|
||||
wget -nv ftp://ftp.snobol4.org/snobol/old/snobol4-2.1.4.tar.gz
|
||||
|
|
Loading…
Reference in New Issue