]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - config/nvim/lua/plugins.lua
Update config
[rbdr/dotfiles] / config / nvim / lua / plugins.lua
index 7a34348fade1a66efda44c2212764e9773f6a58a..14a9311c0600d5a44f6304652aba175aa1d1e423 100644 (file)
@@ -38,36 +38,75 @@ require('lazy').setup({
           ['marker'] = {'fg', 'Keyword'},
           ['spinner'] = {'fg', 'Label'},
           ['header'] = {'fg', 'Comment'}
           ['marker'] = {'fg', 'Keyword'},
           ['spinner'] = {'fg', 'Label'},
           ['header'] = {'fg', 'Comment'}
+        },
+        previewers = {
+          builtin = {
+            extensions = {
+              ["png"] = { "chafa", "-f", "symbols", "{file}" },
+              ["gif"] = { "chafa", "-f", "symbols", "{file}" },
+              ["svg"] = { "chafa", "-f", "symbols", "{file}" },
+              ["jpg"] = { "chafa", "-f", "symbols", "{file}" },
+              ["jpeg"] = { "chafa", "-f", "symbols", "{file}" }
+            }
+          }
         }
       })
     end
   },
 
   -- Syntaxes
         }
       })
     end
   },
 
   -- Syntaxes
-  'https://git.sr.ht/~rbdr/api-notation.vim',
-  'elzr/vim-json',
-  'othree/yajs.vim',
   'ARM9/snes-syntax-vim',
   'ARM9/snes-syntax-vim',
-  'leafgarland/typescript-vim',
-  'leafOfTree/vim-svelte-plugin',
-  'bumaociyuan/vim-swift',
-  'udalov/kotlin-vim',
-  'tikhomirov/vim-glsl',
-  'jparise/vim-graphql',
-  'digitaltoad/vim-pug',
   'https://git.sr.ht/~torresjrjr/gemini.vim',
   'https://git.sr.ht/~torresjrjr/gemini.vim',
-  'rust-lang/rust.vim',
-  'dart-lang/dart-vim-plugin',
-  'ziglang/zig.vim',
+  { "folke/neodev.nvim", opts = {} },
+
+  -- Debugging
+  'mfussenegger/nvim-dap',
+  'rcarriga/nvim-dap-ui',
+  'mxsdev/nvim-dap-vscode-js',
 
   -- Editing
 
   -- Editing
+  'ms-jpq/coq_nvim',
   'tpope/vim-endwise',
   'rstacruz/vim-closer',
   'michaeljsmith/vim-indent-object',
   'tpope/vim-endwise',
   'rstacruz/vim-closer',
   'michaeljsmith/vim-indent-object',
+  {
+    'Pocco81/auto-save.nvim',
+    opts = {
+      condition = function(buf)
+        local fn = vim.fn
+        local utils = require('auto-save.utils.data')
+
+        if fn.getbufvar(buf, '&modifiable') == 1
+          and utils.not_in(fn.getbufvar(buf, '&filetype'), {'oil'}) then
+          return true
+        end
+        return false
+      end,
+    }
+  },
+  {
+    'danymat/neogen',
+    config = true
+  },
+
+  -- Treesitter
+  'nvim-treesitter/nvim-treesitter',
+  'https://git.sr.ht/~rbdr/tree-sitter-api-notation',
+
+  -- LSP
+  'neovim/nvim-lspconfig',
+  'folke/neodev.nvim',
 
   -- Tools
 
   -- Tools
-  {'neoclide/coc.nvim', branch='release'},
   'vim-scripts/LargeFile',
   'tpope/vim-fugitive',
   'vim-scripts/LargeFile',
   'tpope/vim-fugitive',
-  'milkypostman/vim-togglelist'
+  'milkypostman/vim-togglelist',
+  { 'stevearc/oil.nvim', opts = {
+    keymaps = {
+      ["<C-p>"] = false,
+      ["<C-S-p>"] = "actions.preview"
+    }
+  } },
+
+  'https://git.sr.ht/~rbdr/nota.nvim'
 })
 })