]> src.twobees.de Git - dotfiles.git/commitdiff
up main
authorTobias Sachs <rpi6-git-2314-ts@ctsachs.de>
Tue, 7 May 2024 09:04:18 +0000 (11:04 +0200)
committerTobias Sachs <rpi6-git-2314-ts@ctsachs.de>
Tue, 7 May 2024 09:04:18 +0000 (11:04 +0200)
stow/nvim/.config/nvim/init.lua

index b9bc18b9bb9d079191ea3596689d2c442fea6c24..c4922ec27b5c8b157293f8e407ec2cf205f189ff 100644 (file)
@@ -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' },
 
   -- {  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',
 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 },
 
   -- 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 = {
   incremental_selection = {
     enable = true,
     keymaps = {
@@ -373,8 +366,6 @@ local on_attach = function(client, bufnr)
   nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
   nmap('<leader>ws', require('telescope.builtin').lsp_dynamic_workspace_symbols, '[W]orkspace [S]ymbols')
 
   nmap('<leader>ds', require('telescope.builtin').lsp_document_symbols, '[D]ocument [S]ymbols')
   nmap('<leader>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('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
   -- See `:help K` for why this keymap
   nmap('K', vim.lsp.buf.hover, 'Hover Documentation')
   nmap('<C-k>', vim.lsp.buf.signature_help, 'Signature Documentation')
@@ -438,6 +429,38 @@ mason_lspconfig.setup_handlers {
   end,
 }
 
   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'
 -- nvim-cmp setup
 local cmp = require 'cmp'
 local luasnip = require 'luasnip'
@@ -510,6 +533,7 @@ prettier.setup({
     "javascriptreact",
     "json",
     "less",
     "javascriptreact",
     "json",
     "less",
+    "perl",
     "markdown",
     "scss",
     "typescript",
     "markdown",
     "scss",
     "typescript",