From 89b265e7793ba3e33de0f83c4fb0b17e7e82e612 Mon Sep 17 00:00:00 2001 From: emacspace Date: Wed, 1 Jul 2020 19:13:36 +0000 Subject: [PATCH] documentation formatting: Wed Jul 1 19:13:36 UTC 2020 --- layers/+lang/sql/README.org | 22 +++++++++---------- .../+spacemacs/spacemacs-purpose/README.org | 2 ++ layers/LAYERS.org | 1 + 3 files changed, 13 insertions(+), 12 deletions(-) diff --git a/layers/+lang/sql/README.org b/layers/+lang/sql/README.org index 3ddb8f304..9bf3d3301 100644 --- a/layers/+lang/sql/README.org +++ b/layers/+lang/sql/README.org @@ -58,16 +58,14 @@ Some functionality, like linting, rely on external binaries: #+BEGIN_SRC ruby gem install sqlint #+END_SRC - - *Formatting*: Install [[https://github.com/mjibson/sqlfmt][sqlfmt]] and move it into your =$PATH= #+BEGIN_SRC sh # Download and extract the binary 0.4.0 for linux wget -q -O - https://github.com/mjibson/sqlfmt/releases/latest/download/sqlfmt_0.4.0_linux_amd64.tar.gz | tar -xpvzf - --directory "${installdir}/bin" #+END_SRC - - *LSP supporting (sqls)*: - - Install [[https://golang.org/dl/][Go]]lang and [[https://github.com/lighttiger2505/sqls][sqls]], then setting the variable =sql-backend= to ='lsp=. + - Install [[https://golang.org/dl/][Go]] lang and [[https://github.com/lighttiger2505/sqls][sqls]], then setting the variable =sql-backend= to ='lsp=. - One of way to connect DB is setting variable =sql-lsp-sqls-workspace-config-path= to ='workspace= or ='root= and put json file at these directory. #+BEGIN_SRC emacs-lisp @@ -78,16 +76,16 @@ Some functionality, like linting, rely on external binaries: #+END_SRC #+BEGIN_SRC json -{ - "sqls": { - "connections": [ - { - "driver": "mysql", - "dataSourceName": "user1:password1@tcp(localhost:3306)/sample_db" - } - ] + { + "sqls": { + "connections": [ + { + "driver": "mysql", + "dataSourceName": "user1:password1@tcp(localhost:3306)/sample_db" + } + ] + } } -} #+END_SRC ** SQL Keywords Capitalization diff --git a/layers/+spacemacs/spacemacs-purpose/README.org b/layers/+spacemacs/spacemacs-purpose/README.org index 7ca28a094..0c7dc9858 100644 --- a/layers/+spacemacs/spacemacs-purpose/README.org +++ b/layers/+spacemacs/spacemacs-purpose/README.org @@ -91,6 +91,7 @@ that users can still overwrite these configs it is important to declare them uniformly in Spacemacs. To do so copy and adjust the following code: + #+BEGIN_SRC emacs-lisp ;; This will only be called if `window-purpose` is listed ;; among the layer packages. @@ -118,6 +119,7 @@ these allocations to match ones own personal needs. This can easily be achieved by adding below code in `dotspacemacs/user-config`: + #+BEGIN_SRC emacs-lisp ;; This will add user allocations with a higher ;; priority than the ones from the layers. diff --git a/layers/LAYERS.org b/layers/LAYERS.org index d7f4fc2f6..998d4d9e0 100644 --- a/layers/LAYERS.org +++ b/layers/LAYERS.org @@ -1233,6 +1233,7 @@ Features: - Snippet insertion for the more general SQL constructs. - REPL support via =SQLi= buffer. - Automatic capitalization of keywords. +- LSP support via [[https://github.com/lighttiger2505/sqls][sqls]]. *** Lisp dialects **** Clojure