From 7fdaa1dba275d9e7305f796533e7bd8332e9defd Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Wed, 11 Oct 2023 18:40:33 +0200 Subject: [PATCH] add ruby devel env --- Dockerfile | 9 +++++++-- lua/plugins/nvim-lspconfig.lua | 12 ++++++++++++ 2 files changed, 19 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7a13510..bfa332b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -27,6 +27,8 @@ ENV PYTHON_DEVEL_PKGS="\ ENV R_DEVEL_PKGS="R-core R-core-devel" +ENV RUBY_DEVEL_PKGS="ruby-devel rubygems" + ENV MASON_PKGS=" \ bash-language-server \ css-lsp \ @@ -48,14 +50,17 @@ ENV MASON_PKGS=" \ typescript-language-server \ yaml-language-server \ markdownlint\ - ansible-language-server" + ansible-language-server \ + standardrb \ + ruby-lsp \ + solargraph" ENV PIP_PKGS="pynvim ansible ansible-lint" COPY . /root/.config/nvim # install system dependencies RUN dnf install -y \ - ${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${R_DEVEL_PKGS} && \ + ${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${R_DEVEL_PKGS} ${RUBY_DEVEL_PKGS} && \ R -e 'install.packages("languageserver", repos = "http://cran.us.r-project.org")' && \ dnf clean all && \ pip install ${PIP_PKGS} diff --git a/lua/plugins/nvim-lspconfig.lua b/lua/plugins/nvim-lspconfig.lua index 9f9324f..8fb3b6f 100644 --- a/lua/plugins/nvim-lspconfig.lua +++ b/lua/plugins/nvim-lspconfig.lua @@ -204,5 +204,17 @@ return { on_attach = on_attach, capabilities = capabilities, } + require 'lspconfig'.solargraph.setup { + on_attach = on_attach, + capabilities = capabilities, + } + require 'lspconfig'.ruby_ls.setup { + on_attach = on_attach, + capabilities = capabilities, + } + require 'lspconfig'.standardrb.setup { + on_attach = on_attach, + capabilities = capabilities, + } end }