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 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}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue