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\
|
python3\
|
||||||
conda"
|
conda"
|
||||||
|
|
||||||
ENV PERL_DEVEL_PKGS="perl-App-cpanminus"
|
|
||||||
|
|
||||||
ENV MASON_PKGS=" \
|
ENV MASON_PKGS=" \
|
||||||
bash-language-server \
|
bash-language-server \
|
||||||
css-lsp \
|
css-lsp \
|
||||||
|
@ -39,7 +37,6 @@ ENV MASON_PKGS=" \
|
||||||
lemminx \
|
lemminx \
|
||||||
lua-language-server \
|
lua-language-server \
|
||||||
marksman \
|
marksman \
|
||||||
perlnavigator \
|
|
||||||
phpcs \
|
phpcs \
|
||||||
phpstan \
|
phpstan \
|
||||||
pyright \
|
pyright \
|
||||||
|
@ -56,11 +53,9 @@ 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} ${PERL_DEVEL_PKGS} \
|
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} \
|
||||||
&& dnf clean all && \
|
&& dnf clean all && \
|
||||||
cpanm PLS && \
|
pip install ${PIP_PKGS}
|
||||||
pip install ${PIP_PKGS} && \
|
|
||||||
curl -fsSL https://d2lang.com/install.sh | sh -s --
|
|
||||||
|
|
||||||
RUN rm /root/.config/nvim/lazy-lock.json || true
|
RUN rm /root/.config/nvim/lazy-lock.json || true
|
||||||
# install lsp and linters using mason
|
# 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}
|
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
|
## Inside vim
|
||||||
|
|
||||||
```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+v | Open selection as a vsplit|
|
||||||
|Ctrl+t | Open selection in new tab |
|
|Ctrl+t | Open selection in new tab |
|
||||||
|
|
||||||
|
#### Markdown Preview
|
||||||
|
|
||||||
|
Mardkown Preview plugin commands:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
:MarkdownPreview*
|
||||||
|
```
|
||||||
|
|
||||||
#### Git stuff
|
#### Git stuff
|
||||||
|
|
||||||
|keys|action|
|
|keys|action|
|
||||||
|
|
|
@ -12,6 +12,12 @@ local function map(mode, lhs, rhs, opts)
|
||||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
--mardown preview settings
|
||||||
|
vim.cmd [[
|
||||||
|
let g:mkdp_echo_preview_url = 1
|
||||||
|
]]
|
||||||
|
|
||||||
|
|
||||||
----------------------
|
----------------------
|
||||||
-- general setup start
|
-- general setup start
|
||||||
----------------------
|
----------------------
|
||||||
|
|
|
@ -1,5 +1,9 @@
|
||||||
require("lazy").setup({
|
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 stuff
|
||||||
{ 'nvim-tree/nvim-web-devicons' }, -- optional, for file icons
|
{ 'nvim-tree/nvim-web-devicons' }, -- optional, for file icons
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue