Skip to content

Instantly share code, notes, and snippets.

@practicalli-johnny
Last active March 18, 2023 13:47
Show Gist options
  • Save practicalli-johnny/37b71e84478162aea7327590628a8933 to your computer and use it in GitHub Desktop.
Save practicalli-johnny/37b71e84478162aea7327590628a8933 to your computer and use it in GitHub Desktop.
{:final-settings
{:paths-ignore-regex [],
:source-paths-ignore-regex ["target.*" "target.*"],
:api {:exit-on-errors? true},
:compute-external-file-changes true,
:code-lens {:segregate-test-references true},
:source-aliases #{:env/dev :lib/reloaded :env/test :test :dev},
:uri-format
{:upper-case-drive-letter? false, :encode-colons-in-path? false},
:cljfmt-config-path "cljfmt.edn",
:semantic-tokens? true,
:document-formatting? true,
:source-paths
["/home/practicalli/projects/practicalli/gameboard-service/src"
"/home/practicalli/projects/practicalli/gameboard-service/test"
"src"
"test"],
:text-document-sync-kind :full,
:project-specs [],
:classpath-config-paths [],
:stubs
{:generation
{:namespaces #{},
:output-dir ".lsp/.cache/stubs",
:java-command "java"},
:extra-dirs []},
:dependency-scheme :zip,
:java
{:jdk-source-uri "file:///usr/lib/jvm/openjdk-17/lib/src.zip",
:home-path nil,
:download-jdk-source? false},
:hover
{:hide-file-location? false,
:arity-on-same-line? false,
:clojuredocs true},
:linters
{:clj-kondo
{:level :on, :report-duplicates true, :ns-exclude-regex ""}},
:use-metadata-for-privacy? true,
:keep-parens-when-threading? false,
:log-path "/tmp/clojure-lsp.*.out",
:additional-snippets
[{:name "comment-heading",
:detail "Comment Header",
:snippet
";; ---------------------------------------------------------\n ;; ${1:Heading summary title}\n ;;\n ;; ${2:Brief description}\n;; ---------------------------------------------------------\n\n$0"}
{:name "comment-separator",
:detail "Comment Separator",
:snippet
";; ---------------------------------------------------------\n;; ${1:Section title}\n\n$0"}
{:name "comment-section",
:detail "Comment Section",
:snippet
";; ---------------------------------------------------------\n;; ${1:Section title}\n\n$0\n\n\n ;; End of $1\n;; ---------------------------------------------------------\n\n"}
{:name "wrap-reader-comment",
:detail "Wrap current expression with Comment Reader macro",
:snippet "#_$current-form"}
{:name "rich-comment",
:detail "Create rich comment",
:snippet "(comment\n $0\n #_()) ;; End of rich comment"}
{:name "rich-comment-rdd",
:detail "Create comment block",
:snippet
"#_{:clj-kondo/ignore [:redefined-var]}\n (comment\n $0\n #_()) ; End of rich comment"}
{:name "rich-comment-hotload",
:detail "Rich comment library hotload",
:snippet
"#_{:clj-kondo/ignore [:redefined-var]}\n (comment\n ;; Add-lib library for hot-loading\n (require '[clojure.tools.deps.alpha.repl :refer [add-libs]])\n (add-libs '{${1:domain/library-name} {:mvn/version \"${2:1.0.0}\"}$3})\n $0\n #_()) ; End of rich comment block"}
{:name "wrap-rich-comment",
:detail "Wrap current expression with rich comment form",
:snippet
"(comment\n $current-form\n $0\n #_()) ;; End of rich comment"}
{:name "def",
:detail "def with docstring",
:snippet "(def ${1:name}\n \"${2:doc-string}\"\n $0)"}
{:name "def-",
:detail "def private",
:snippet "(def ^:private ${1:name}\n \"${2:doc-string}\"\n $0)"}
{:name "defn",
:detail "Create public function",
:snippet
"(defn ${1:name}\n \"${2:doc-string}\"\n [${3:args}]\n $0)"}
{:name "defn-",
:detail "Create public function",
:snippet
"(defn ^:private ${1:name}\n \"${2:docstring}\"\n [${3:args}]\n $0)"}
{:name "ns",
:detail "Create ns",
:snippet "(ns ${1:name}\n \"${2:doc-string}\"\n ${3:require})"}
{:name "deps-alias",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}}$0"}
{:name "deps-alias-main",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :main-opts [\"-m\" \"${4:main namespace}\"]}$0"}
{:name "deps-alias-exec",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :exec-fn ${4:domain/function-name}\n :exec-args {${5:key value}}}$0"}
{:name "deps-alias-main-exec",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :main-opts [\"-m\" \"${4:main namespace}\"]\n :exec-fn ${4:domain/function-name}\n :exec-args {${5:key value}}}$0"}
{:name "deps-maven",
:detail "deps.edn Maven dependency",
:snippet
"${1:domain/library-name} {:mvn/version \"${2:1.0.0}\"}$0"}
{:name "deps-git",
:detail "deps.edn Git dependency",
:snippet
"${1:domain/library-name}\n {:git/sha \"${2:git-sha-value}\"}$0"}
{:name "deps-git-tag",
:detail "Git dependency",
:snippet
"${1:domain/library-name}\n {:git/tag \"${2:git-tag-value}\"\n :git/sha \"${3:git-sha-value}\"}$0"}
{:name "deps-git-url",
:detail "Git URL dependency",
:snippet
"${1:domain/library-name}\n {:git/url \"https://github.com/$1\"\n :git/sha \"${2:git-sha-value}\"}$0"}
{:name "deps-local",
:detail "deps.edn Maven dependency",
:snippet
"${1:domain/library-name} {:local/root \"${2:/path/to/project/root}\"}$0"}
{:name "require-rdd",
:detail "require for rich comment experiments",
:snippet "(require '[${1:namespace} :as ${2:alias}]$3)$0"}
{:name "require",
:detail "ns require",
:snippet "(:require [${1:namespace}])$0"}
{:name "require-refer",
:detail "ns require with :refer",
:snippet "(:require [${1:namespace} :refer [$2]]$3)$0"}
{:name "require-as",
:detail "ns require with :as alias",
:snippet "(:require [${1:namespace} :as ${2:alias}]$3)$0"}
{:name "use",
:detail "require refer preferred over use",
:snippet "(:require [${1:namespace} :refer [$2]])$0"}
{:name "deftest",
:detail "deftest clojure.test",
:snippet
"(deftest ${1:name}-test\n (testing \"${2:Context of the test assertions}\"\n (is (= ${3:assertion-values}))$4)) $0"}
{:name "testing",
:detail "testing asserting group for clojure.test",
:snippet "(testing \"${1:description-of-assertion-group}\"\n $0)"}
{:name "is",
:detail "assertion for clojure.test",
:snippet "(is (= ${1:function call} ${2:expected result}))$0"}
{:name "lsp-ignore-redefined",
:detail "Ignore redefined Vars",
:snippet "#_{:clj-kondo/ignore [:redefined-var]}\n $0"}
{:name "comment-heading",
:detail "Comment Header",
:snippet
";; ---------------------------------------------------------\n ;; ${1:Heading summary title}\n ;;\n ;; ${2:Brief description}\n;; ---------------------------------------------------------\n\n$0"}
{:name "comment-separator",
:detail "Comment Separator",
:snippet
";; ---------------------------------------------------------\n;; ${1:Section title}\n\n$0"}
{:name "comment-section",
:detail "Comment Section",
:snippet
";; ---------------------------------------------------------\n;; ${1:Section title}\n\n$0\n\n\n ;; End of $1\n;; ---------------------------------------------------------\n\n"}
{:name "wrap-reader-comment",
:detail "Wrap current expression with Comment Reader macro",
:snippet "#_$current-form"}
{:name "rich-comment",
:detail "Create rich comment",
:snippet "(comment\n $0\n #_()) ;; End of rich comment"}
{:name "rich-comment-rdd",
:detail "Create comment block",
:snippet
"#_{:clj-kondo/ignore [:redefined-var]}\n (comment\n $0\n #_()) ; End of rich comment"}
{:name "rich-comment-hotload",
:detail "Rich comment library hotload",
:snippet
"#_{:clj-kondo/ignore [:redefined-var]}\n (comment\n ;; Add-lib library for hot-loading\n (require '[clojure.tools.deps.alpha.repl :refer [add-libs]])\n (add-libs '{${1:domain/library-name} {:mvn/version \"${2:1.0.0}\"}$3})\n $0\n #_()) ; End of rich comment block"}
{:name "wrap-rich-comment",
:detail "Wrap current expression with rich comment form",
:snippet
"(comment\n $current-form\n $0\n #_()) ;; End of rich comment"}
{:name "def",
:detail "def with docstring",
:snippet "(def ${1:name}\n \"${2:doc-string}\"\n $0)"}
{:name "def-",
:detail "def private",
:snippet "(def ^:private ${1:name}\n \"${2:doc-string}\"\n $0)"}
{:name "defn",
:detail "Create public function",
:snippet
"(defn ${1:name}\n \"${2:doc-string}\"\n [${3:args}]\n $0)"}
{:name "defn-",
:detail "Create public function",
:snippet
"(defn ^:private ${1:name}\n \"${2:docstring}\"\n [${3:args}]\n $0)"}
{:name "ns",
:detail "Create ns",
:snippet "(ns ${1:name}\n \"${2:doc-string}\"\n ${3:require})"}
{:name "deps-alias",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}}$0"}
{:name "deps-alias-main",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :main-opts [\"-m\" \"${4:main namespace}\"]}$0"}
{:name "deps-alias-exec",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :exec-fn ${4:domain/function-name}\n :exec-args {${5:key value}}}$0"}
{:name "deps-alias-main-exec",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :main-opts [\"-m\" \"${4:main namespace}\"]\n :exec-fn ${4:domain/function-name}\n :exec-args {${5:key value}}}$0"}
{:name "deps-maven",
:detail "deps.edn Maven dependency",
:snippet
"${1:domain/library-name} {:mvn/version \"${2:1.0.0}\"}$0"}
{:name "deps-git",
:detail "deps.edn Git dependency",
:snippet
"${1:domain/library-name}\n {:git/sha \"${2:git-sha-value}\"}$0"}
{:name "deps-git-tag",
:detail "Git dependency",
:snippet
"${1:domain/library-name}\n {:git/tag \"${2:git-tag-value}\"\n :git/sha \"${3:git-sha-value}\"}$0"}
{:name "deps-git-url",
:detail "Git URL dependency",
:snippet
"${1:domain/library-name}\n {:git/url \"https://github.com/$1\"\n :git/sha \"${2:git-sha-value}\"}$0"}
{:name "deps-local",
:detail "deps.edn Maven dependency",
:snippet
"${1:domain/library-name} {:local/root \"${2:/path/to/project/root}\"}$0"}
{:name "require-rdd",
:detail "require for rich comment experiments",
:snippet "(require '[${1:namespace} :as ${2:alias}]$3)$0"}
{:name "require",
:detail "ns require",
:snippet "(:require [${1:namespace}])$0"}
{:name "require-refer",
:detail "ns require with :refer",
:snippet "(:require [${1:namespace} :refer [$2]]$3)$0"}
{:name "require-as",
:detail "ns require with :as alias",
:snippet "(:require [${1:namespace} :as ${2:alias}]$3)$0"}
{:name "use",
:detail "require refer preferred over use",
:snippet "(:require [${1:namespace} :refer [$2]])$0"}
{:name "deftest",
:detail "deftest clojure.test",
:snippet
"(deftest ${1:name}-test\n (testing \"${2:Context of the test assertions}\"\n (is (= ${3:assertion-values}))$4)) $0"}
{:name "testing",
:detail "testing asserting group for clojure.test",
:snippet "(testing \"${1:description-of-assertion-group}\"\n $0)"}
{:name "is",
:detail "assertion for clojure.test",
:snippet "(is (= ${1:function call} ${2:expected result}))$0"}
{:name "lsp-ignore-redefined",
:detail "Ignore redefined Vars",
:snippet "#_{:clj-kondo/ignore [:redefined-var]}\n $0"}],
:lint-project-files-after-startup? true,
:notify-references-on-file-change true,
:ignore-classpath-directories false,
:show-docs-arity-on-same-line? true,
:document-range-formatting? true,
:cache-path ".lsp/.cache",
:copy-kondo-configs? true,
:auto-add-ns-to-new-files? true,
:clean
{:automatically-after-ns-refactor true,
:ns-inner-blocks-indentation :next-line,
:ns-import-classes-indentation :next-line,
:sort
{:ns false,
:require false,
:import false,
:import-classes {:classes-per-line 3},
:refer {:max-line-length 80}}},
:cljfmt {}},
:classpath #{},
:cljfmt-raw "{}",
:client-settings
{:dependency-scheme "jar",
:show-docs-arity-on-same-line? true,
:text-document-sync-kind nil,
:source-paths nil,
:source-aliases nil,
:cljfmt-config-path ".cljfmt.edn",
:document-formatting? true,
:document-range-formatting? true},
:project-root-uri
"file:///home/practicalli/projects/practicalli/gameboard-service",
:port "NREPL only available on :debug profile (`bb debug-cli`)",
:project-settings
{:paths-ignore-regex [],
:source-paths-ignore-regex ["target.*"],
:api {:exit-on-errors? true},
:compute-external-file-changes true,
:code-lens {:segregate-test-references true},
:source-aliases #{:env/dev :lib/reloaded :env/test :test :dev},
:cljfmt-config-path "cljfmt.edn",
:semantic-tokens? true,
:document-formatting? true,
:source-paths #{"src" "test"},
:text-document-sync-kind :full,
:project-specs [],
:classpath-config-paths [],
:stubs
{:generation
{:namespaces #{},
:output-dir ".lsp/.cache/stubs",
:java-command "java"},
:extra-dirs []},
:dependency-scheme :zip,
:java
{:jdk-source-uri "file:///usr/lib/jvm/openjdk-17/lib/src.zip",
:home-path nil,
:download-jdk-source? false},
:hover
{:hide-file-location? false,
:arity-on-same-line? false,
:clojuredocs true},
:linters
{:clj-kondo
{:level :on, :report-duplicates true, :ns-exclude-regex ""}},
:use-metadata-for-privacy? true,
:keep-parens-when-threading? false,
:log-path "/tmp/clojure-lsp.*.out",
:additional-snippets
[{:name "comment-heading",
:detail "Comment Header",
:snippet
";; ---------------------------------------------------------\n ;; ${1:Heading summary title}\n ;;\n ;; ${2:Brief description}\n;; ---------------------------------------------------------\n\n$0"}
{:name "comment-separator",
:detail "Comment Separator",
:snippet
";; ---------------------------------------------------------\n;; ${1:Section title}\n\n$0"}
{:name "comment-section",
:detail "Comment Section",
:snippet
";; ---------------------------------------------------------\n;; ${1:Section title}\n\n$0\n\n\n ;; End of $1\n;; ---------------------------------------------------------\n\n"}
{:name "wrap-reader-comment",
:detail "Wrap current expression with Comment Reader macro",
:snippet "#_$current-form"}
{:name "rich-comment",
:detail "Create rich comment",
:snippet "(comment\n $0\n #_()) ;; End of rich comment"}
{:name "rich-comment-rdd",
:detail "Create comment block",
:snippet
"#_{:clj-kondo/ignore [:redefined-var]}\n (comment\n $0\n #_()) ; End of rich comment"}
{:name "rich-comment-hotload",
:detail "Rich comment library hotload",
:snippet
"#_{:clj-kondo/ignore [:redefined-var]}\n (comment\n ;; Add-lib library for hot-loading\n (require '[clojure.tools.deps.alpha.repl :refer [add-libs]])\n (add-libs '{${1:domain/library-name} {:mvn/version \"${2:1.0.0}\"}$3})\n $0\n #_()) ; End of rich comment block"}
{:name "wrap-rich-comment",
:detail "Wrap current expression with rich comment form",
:snippet
"(comment\n $current-form\n $0\n #_()) ;; End of rich comment"}
{:name "def",
:detail "def with docstring",
:snippet "(def ${1:name}\n \"${2:doc-string}\"\n $0)"}
{:name "def-",
:detail "def private",
:snippet "(def ^:private ${1:name}\n \"${2:doc-string}\"\n $0)"}
{:name "defn",
:detail "Create public function",
:snippet
"(defn ${1:name}\n \"${2:doc-string}\"\n [${3:args}]\n $0)"}
{:name "defn-",
:detail "Create public function",
:snippet
"(defn ^:private ${1:name}\n \"${2:docstring}\"\n [${3:args}]\n $0)"}
{:name "ns",
:detail "Create ns",
:snippet "(ns ${1:name}\n \"${2:doc-string}\"\n ${3:require})"}
{:name "deps-alias",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}}$0"}
{:name "deps-alias-main",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :main-opts [\"-m\" \"${4:main namespace}\"]}$0"}
{:name "deps-alias-exec",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :exec-fn ${4:domain/function-name}\n :exec-args {${5:key value}}}$0"}
{:name "deps-alias-main-exec",
:detail "deps.edn alias with extra path & deps",
:snippet
":${1:category/name}\n {:extra-paths [\"${2:path}\"]\n :extra-deps {${3:deps-maven or deps-git}}\n :main-opts [\"-m\" \"${4:main namespace}\"]\n :exec-fn ${4:domain/function-name}\n :exec-args {${5:key value}}}$0"}
{:name "deps-maven",
:detail "deps.edn Maven dependency",
:snippet
"${1:domain/library-name} {:mvn/version \"${2:1.0.0}\"}$0"}
{:name "deps-git",
:detail "deps.edn Git dependency",
:snippet
"${1:domain/library-name}\n {:git/sha \"${2:git-sha-value}\"}$0"}
{:name "deps-git-tag",
:detail "Git dependency",
:snippet
"${1:domain/library-name}\n {:git/tag \"${2:git-tag-value}\"\n :git/sha \"${3:git-sha-value}\"}$0"}
{:name "deps-git-url",
:detail "Git URL dependency",
:snippet
"${1:domain/library-name}\n {:git/url \"https://github.com/$1\"\n :git/sha \"${2:git-sha-value}\"}$0"}
{:name "deps-local",
:detail "deps.edn Maven dependency",
:snippet
"${1:domain/library-name} {:local/root \"${2:/path/to/project/root}\"}$0"}
{:name "require-rdd",
:detail "require for rich comment experiments",
:snippet "(require '[${1:namespace} :as ${2:alias}]$3)$0"}
{:name "require",
:detail "ns require",
:snippet "(:require [${1:namespace}])$0"}
{:name "require-refer",
:detail "ns require with :refer",
:snippet "(:require [${1:namespace} :refer [$2]]$3)$0"}
{:name "require-as",
:detail "ns require with :as alias",
:snippet "(:require [${1:namespace} :as ${2:alias}]$3)$0"}
{:name "use",
:detail "require refer preferred over use",
:snippet "(:require [${1:namespace} :refer [$2]])$0"}
{:name "deftest",
:detail "deftest clojure.test",
:snippet
"(deftest ${1:name}-test\n (testing \"${2:Context of the test assertions}\"\n (is (= ${3:assertion-values}))$4)) $0"}
{:name "testing",
:detail "testing asserting group for clojure.test",
:snippet "(testing \"${1:description-of-assertion-group}\"\n $0)"}
{:name "is",
:detail "assertion for clojure.test",
:snippet "(is (= ${1:function call} ${2:expected result}))$0"}
{:name "lsp-ignore-redefined",
:detail "Ignore redefined Vars",
:snippet "#_{:clj-kondo/ignore [:redefined-var]}\n $0"}],
:lint-project-files-after-startup? true,
:notify-references-on-file-change true,
:ignore-classpath-directories false,
:document-range-formatting? true,
:cache-path ".lsp/.cache",
:copy-kondo-configs? true,
:auto-add-ns-to-new-files? true,
:clean
{:automatically-after-ns-refactor true,
:ns-inner-blocks-indentation :next-line,
:ns-import-classes-indentation :next-line,
:sort
{:ns false,
:require false,
:import false,
:import-classes {:classes-per-line 3},
:refer {:max-line-length 80}}},
:cljfmt {}},
:server-version "2023.02.27-13.12.12",
:clj-kondo-version "2023.02.17",
:log-path "/tmp/clojure-lsp.*.out",
:classpath-settings nil}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment