add ruby devel env
This commit is contained in:
parent
45e14d2f07
commit
7fdaa1dba2
2 changed files with 19 additions and 2 deletions
|
@ -27,6 +27,8 @@ ENV PYTHON_DEVEL_PKGS="\
|
||||||
|
|
||||||
ENV R_DEVEL_PKGS="R-core R-core-devel"
|
ENV R_DEVEL_PKGS="R-core R-core-devel"
|
||||||
|
|
||||||
|
ENV RUBY_DEVEL_PKGS="ruby-devel rubygems"
|
||||||
|
|
||||||
ENV MASON_PKGS=" \
|
ENV MASON_PKGS=" \
|
||||||
bash-language-server \
|
bash-language-server \
|
||||||
css-lsp \
|
css-lsp \
|
||||||
|
@ -48,14 +50,17 @@ ENV MASON_PKGS=" \
|
||||||
typescript-language-server \
|
typescript-language-server \
|
||||||
yaml-language-server \
|
yaml-language-server \
|
||||||
markdownlint\
|
markdownlint\
|
||||||
ansible-language-server"
|
ansible-language-server \
|
||||||
|
standardrb \
|
||||||
|
ruby-lsp \
|
||||||
|
solargraph"
|
||||||
|
|
||||||
ENV PIP_PKGS="pynvim ansible ansible-lint"
|
ENV PIP_PKGS="pynvim ansible ansible-lint"
|
||||||
|
|
||||||
COPY . /root/.config/nvim
|
COPY . /root/.config/nvim
|
||||||
# install system dependencies
|
# install system dependencies
|
||||||
RUN dnf install -y \
|
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")' && \
|
R -e 'install.packages("languageserver", repos = "http://cran.us.r-project.org")' && \
|
||||||
dnf clean all && \
|
dnf clean all && \
|
||||||
pip install ${PIP_PKGS}
|
pip install ${PIP_PKGS}
|
||||||
|
|
|
@ -204,5 +204,17 @@ return {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
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
|
end
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue