From e17cec8531f6711a8a31eb837d41718835d82793 Mon Sep 17 00:00:00 2001 From: Tobias Sachs Date: Tue, 7 May 2024 11:04:18 +0200 Subject: [PATCH] up --- stow/nvim/.config/nvim/init.lua | 46 +++++++++++++++++++++++++-------- 1 file changed, 35 insertions(+), 11 deletions(-) diff --git a/stow/nvim/.config/nvim/init.lua b/stow/nvim/.config/nvim/init.lua index b9bc18b..c4922ec 100644 --- a/stow/nvim/.config/nvim/init.lua +++ b/stow/nvim/.config/nvim/init.lua @@ -100,13 +100,6 @@ require('lazy').setup({ }, }, - { - -- Add indentation guides even on blank lines - 'lukas-reineke/indent-blankline.nvim', - main = "ibl", - opts = { }, - }, - -- { dir = '~/github/mynvimplugins/btoggle.nvim/' }, { 'tobser/btoggle.nvim' }, @@ -275,13 +268,13 @@ augroup END require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'tsx', 'typescript', 'vimdoc', 'vim', 'html', - 'c_sharp', 'perl', 'python' ,'markdown' }, + 'c_sharp', 'perl', 'bash', 'python' ,'markdown' }, -- Autoinstall languages that are not installed. Defaults to false (but you can change for yourself!) auto_install = false, highlight = { enable = true }, - indent = { enable = true, disable = { 'python' } }, + indent = { enable = false, disable = { 'python' } }, incremental_selection = { enable = true, keymaps = { @@ -373,8 +366,6 @@ local on_attach = function(client, bufnr) nmap('ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols') nmap('ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols') - - -- See `:help K` for why this keymap nmap('K', vim.lsp.buf.hover, 'Hover Documentation') nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') @@ -438,6 +429,38 @@ mason_lspconfig.setup_handlers { end, } +-- require('lspconfig').perlls.setup { +-- settings = { +-- perl = { +-- perlInc = { +-- '/home/pi/git/misterhouse/lib', +-- '/home/pi/git/misterhouse/bin', +-- }, +-- }, +-- }, +-- capabilities = capabilities, +-- on_attach = on_attach, +-- } +-- +require('lspconfig').perlpls.setup { + on_attach = on_attach, + settings = { + perl = { + perlcritic = { + enabled = false + }, + syntax = { + enabled = true + }, + inc = { + '/home/pi/git/misterhouse/lib', + '/home/pi/git/misterhouse/bin', + }, + }, + }, + capabilities = capabilities, +} + -- nvim-cmp setup local cmp = require 'cmp' local luasnip = require 'luasnip' @@ -510,6 +533,7 @@ prettier.setup({ "javascriptreact", "json", "less", + "perl", "markdown", "scss", "typescript", -- 2.39.2