add ruby devel env

This commit is contained in:
Maciej Lebiest 2023-10-11 18:40:33 +02:00
parent 45e14d2f07
commit 7fdaa1dba2
2 changed files with 19 additions and 2 deletions

View file

@ -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}

View file

@ -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
}