diff --git a/Dockerfile b/Dockerfile index 382c926..260bf94 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,8 +25,6 @@ ENV PYTHON_DEVEL_PKGS="\ python3\ conda" -ENV PERL_DEVEL_PKGS="perl-App-cpanminus" - ENV MASON_PKGS=" \ bash-language-server \ css-lsp \ @@ -39,7 +37,6 @@ ENV MASON_PKGS=" \ lemminx \ lua-language-server \ marksman \ - perlnavigator \ phpcs \ phpstan \ pyright \ @@ -56,11 +53,9 @@ 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} ${PERL_DEVEL_PKGS} \ + ${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} \ && dnf clean all && \ - cpanm PLS && \ - pip install ${PIP_PKGS} && \ - curl -fsSL https://d2lang.com/install.sh | sh -s -- + pip install ${PIP_PKGS} RUN rm /root/.config/nvim/lazy-lock.json || true # install lsp and linters using mason diff --git a/README.md b/README.md index c4a191b..cf13bf1 100644 --- a/README.md +++ b/README.md @@ -161,6 +161,24 @@ This container will not be removed on exit, you can reenter later with: podman start -ai {project/container name} ``` +## Additional packages to install as needed + +### Perl lang + +For Perl language support run this command to install required packages for +lsp server: + +```bash +dnf install -y perl-App-cpanminus; +cpanm PLS; +``` + +And then in neovim: + +```bash +:MasonInstall perlnavigator +``` + ## Inside vim ```vim @@ -240,6 +258,14 @@ All that is saved in image, so that is why image is so heavy. |Ctrl+v | Open selection as a vsplit| |Ctrl+t | Open selection in new tab | +#### Markdown Preview + +Mardkown Preview plugin commands: + +```bash +:MarkdownPreview* +``` + #### Git stuff |keys|action| diff --git a/lua/general.lua b/lua/general.lua index 2367332..c5b35c9 100644 --- a/lua/general.lua +++ b/lua/general.lua @@ -12,6 +12,12 @@ local function map(mode, lhs, rhs, opts) vim.api.nvim_set_keymap(mode, lhs, rhs, options) end +--mardown preview settings +vim.cmd [[ + let g:mkdp_echo_preview_url = 1 +]] + + ---------------------- -- general setup start ---------------------- diff --git a/lua/lazy-load.lua b/lua/lazy-load.lua index 9909878..483489c 100644 --- a/lua/lazy-load.lua +++ b/lua/lazy-load.lua @@ -1,5 +1,9 @@ require("lazy").setup({ - { 'terrastruct/d2-vim' }, + { + 'iamcco/markdown-preview.nvim', + build = function() vim.fn["mkdp#util#install"]() end + }, + { 'mracos/mermaid.vim' }, -- Nvim-tree stuff { 'nvim-tree/nvim-web-devicons' }, -- optional, for file icons {