This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[1 | |
"a string" | |
{"a-map-key" [42]} | |
['("this" "is" "a" "list" "of" "strings")] | |
#{\a \b} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:type :warrior | |
:name "Bad guy" | |
:position {:x 11 :y 344} | |
:health 93 | |
:objects [:sword :dagger]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{:type :sword | |
:name "excalibur" | |
:strength 50 | |
:weight 40} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defprotocol Talker | |
(talk [this msg])) | |
(defrecord Hero | |
[name type position health objects] | |
Talker | |
(talk [this msg] | |
(println (:name this) ":" msg))) | |
(->Hero "Bad Guy" :warrior {:x 11 :y 344} 93 [:sword :dagger]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# tested on ubuntu 20.04 | |
Install NeoVim | |
install a JDK (8/11 is fine) (I use azul) | |
install lein (a Clojure build tool) | |
sudo apt install nodejs git curl nvim python3-pip npm clang | |
sudo npm install -g neovim | |
pip3 install --upgrade pynvim jedi msgpack black | |
pip install --upgrade pynvim jedi msgpack | |
clone Clojure language server (clone https://github.com/snoe/clojure-lsp and run the install_clojure_lsp script. |
OlderNewer