Skip to content

Commit

Permalink
add ruby devel env
Browse files Browse the repository at this point in the history
  • Loading branch information
Szwendacz99 committed Oct 11, 2023
1 parent 45e14d2 commit 7fdaa1d
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand All @@ -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}
Expand Down
12 changes: 12 additions & 0 deletions lua/plugins/nvim-lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 7fdaa1d

Please sign in to comment.