From 2e759f9fc6e29d241ed926e3dc024b89863a11bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Geoffrey=20=E2=80=9CFrogeye=E2=80=9D=20Preud=27homme?= Date: Sun, 20 Mar 2022 18:09:21 +0100 Subject: [PATCH] Support SQL dev --- config/automatrop/host_vars/curacao.geoffrey.frogeye.fr | 7 ++++--- .../roles/software/templates/snippets/pm_dev_sql.j2 | 1 + .../roles/vim/templates/plugins/nvim_lspconfig.j2 | 3 +++ 3 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 config/automatrop/roles/software/templates/snippets/pm_dev_sql.j2 diff --git a/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr b/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr index 36cbfec..fe7b3db 100644 --- a/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr +++ b/config/automatrop/host_vars/curacao.geoffrey.frogeye.fr @@ -1,12 +1,13 @@ root_access: yes display_server: "x11" dev_stuffs: - - python - - shell - - network - ansible - docker + - network - php + - python + - shell + - sql software_full: yes has_battery: yes auto_numlock: yes diff --git a/config/automatrop/roles/software/templates/snippets/pm_dev_sql.j2 b/config/automatrop/roles/software/templates/snippets/pm_dev_sql.j2 new file mode 100644 index 0000000..b90d766 --- /dev/null +++ b/config/automatrop/roles/software/templates/snippets/pm_dev_sql.j2 @@ -0,0 +1 @@ +sqls diff --git a/config/automatrop/roles/vim/templates/plugins/nvim_lspconfig.j2 b/config/automatrop/roles/vim/templates/plugins/nvim_lspconfig.j2 index fe1c7bb..1c23972 100644 --- a/config/automatrop/roles/vim/templates/plugins/nvim_lspconfig.j2 +++ b/config/automatrop/roles/vim/templates/plugins/nvim_lspconfig.j2 @@ -47,6 +47,9 @@ local servers = { {% if 'php' in dev_stuffs %} "phpactor", -- Install this one manually https://phpactor.readthedocs.io/en/master/usage/standalone.html#global-installation {% endif %} +{% if 'sql' in dev_stuffs %} + "sqls", +{% endif %} } for _, lsp in ipairs(servers) do nvim_lsp[lsp].setup {