replace perlnavigator with plugin for perlpls
This commit is contained in:
parent
1db69feef4
commit
53b745a439
3 changed files with 22 additions and 14 deletions
|
@ -25,6 +25,8 @@ 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 \
|
||||||
|
@ -51,9 +53,10 @@ ENV MASON_PKGS=" \
|
||||||
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} \
|
${GENERAL_PKGS} ${NEOVIM_PKGS} ${PYTHON_DEVEL_PKGS} ${PERL_DEVEL_PKGS} \
|
||||||
&& dnf clean all
|
&& dnf clean all && \
|
||||||
RUN pip install pynvim
|
cpanm PLS && \
|
||||||
|
pip install pynvim
|
||||||
|
|
||||||
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
|
||||||
|
|
|
@ -20,6 +20,7 @@ require("lazy").setup({
|
||||||
{ 'hrsh7th/cmp-buffer' },
|
{ 'hrsh7th/cmp-buffer' },
|
||||||
{ 'hrsh7th/cmp-cmdline' },
|
{ 'hrsh7th/cmp-cmdline' },
|
||||||
{ 'hrsh7th/cmp-path' },
|
{ 'hrsh7th/cmp-path' },
|
||||||
|
{ 'FractalBoy/perl-language-server' },
|
||||||
{
|
{
|
||||||
'hrsh7th/nvim-cmp',
|
'hrsh7th/nvim-cmp',
|
||||||
config = require('plugins.nvim-cmp').init,
|
config = require('plugins.nvim-cmp').init,
|
||||||
|
@ -40,7 +41,7 @@ require("lazy").setup({
|
||||||
{
|
{
|
||||||
'neovim/nvim-lspconfig',
|
'neovim/nvim-lspconfig',
|
||||||
init = require('plugins.nvim-lspconfig').init,
|
init = require('plugins.nvim-lspconfig').init,
|
||||||
priority = 100
|
priority = 10
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'mfussenegger/nvim-lint',
|
'mfussenegger/nvim-lint',
|
||||||
|
|
|
@ -127,19 +127,23 @@ return {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
require 'lspconfig'.perlnavigator.setup {
|
require'lspconfig'.perlpls.setup{
|
||||||
settings = {
|
|
||||||
perlnavigator = {
|
|
||||||
perlPath = 'perl',
|
|
||||||
enableWarnings = true,
|
|
||||||
perltidyProfile = '',
|
|
||||||
perlcriticProfile = '',
|
|
||||||
perlcriticEnabled = true,
|
|
||||||
}
|
|
||||||
},
|
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
capabilities = capabilities,
|
capabilities = capabilities,
|
||||||
}
|
}
|
||||||
|
--require 'lspconfig'.perlnavigator.setup {
|
||||||
|
--settings = {
|
||||||
|
--perlnavigator = {
|
||||||
|
--perlPath = 'perl',
|
||||||
|
--enableWarnings = true,
|
||||||
|
--perltidyProfile = '',
|
||||||
|
--perlcriticProfile = '',
|
||||||
|
--perlcriticEnabled = true,
|
||||||
|
--}
|
||||||
|
--},
|
||||||
|
--on_attach = on_attach,
|
||||||
|
--capabilities = capabilities,
|
||||||
|
--}
|
||||||
|
|
||||||
require 'lspconfig'.cssls.setup {
|
require 'lspconfig'.cssls.setup {
|
||||||
on_attach = on_attach,
|
on_attach = on_attach,
|
||||||
|
|
Loading…
Reference in a new issue