replace d2lang support with markdown and mermaid stuff, remove perl
This commit is contained in:
parent
b8ecf5ffab
commit
3958be32e3
4 changed files with 39 additions and 8 deletions
|
@ -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
|
||||
|
|
26
README.md
26
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|
|
||||
|
|
|
@ -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
|
||||
----------------------
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue