]> git.r.bdr.sh - rbdr/dotfiles/blobdiff - config/nvim/lua/plugins.lua
Update karabiner
[rbdr/dotfiles] / config / nvim / lua / plugins.lua
index e17b35bd85deb04133bb4ea357714610a17d5a02..35f832743285357faba034fb54318dcbab0c37a1 100644 (file)
@@ -13,10 +13,10 @@ vim.opt.rtp:prepend(lazypath)
 
 require('lazy').setup({
   {
-    "ibhagwan/fzf-lua",
+    'ibhagwan/fzf-lua',
     config = function()
       -- calling `setup` is optional for customization
-      require("fzf-lua").setup({
+      require('fzf-lua').setup({
         winopts={
           width=1,
           height=0.4,
@@ -38,6 +38,17 @@ require('lazy').setup({
           ['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
@@ -46,17 +57,42 @@ require('lazy').setup({
   -- Syntaxes
   'ARM9/snes-syntax-vim',
   'https://git.sr.ht/~torresjrjr/gemini.vim',
+  { 'folke/neodev.nvim', opts = {} },
 
-  -- Debugging
+  --'Debugging
   'mfussenegger/nvim-dap',
   'rcarriga/nvim-dap-ui',
   'mxsdev/nvim-dap-vscode-js',
 
   -- Editing
   'ms-jpq/coq_nvim',
-  'tpope/vim-endwise',
-  'rstacruz/vim-closer',
+  'RRethy/nvim-treesitter-endwise',
+  {
+    'm4xshen/autoclose.nvim',
+    config = function()
+      require('autoclose').setup()
+    end
+  },
   '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',
@@ -67,22 +103,25 @@ require('lazy').setup({
   'folke/neodev.nvim',
 
   -- Tools
+  'mbbill/undotree',
   'vim-scripts/LargeFile',
   'tpope/vim-fugitive',
   'milkypostman/vim-togglelist',
-
-  -- Org Mode
-  { 'nvim-orgmode/orgmode',
+  {
+    'folke/which-key.nvim',
     event = 'VeryLazy',
-    config = function()
-      -- Load treesitter grammar for org
-      require('orgmode').setup_ts_grammar()
+    init = function()
+      vim.o.timeout = true
+      vim.o.timeoutlen = 300
+    end,
+    opts = {}
+  },
+  { 'stevearc/oil.nvim', opts = {
+    keymaps = {
+      ['<C-p>'] = false,
+      ['<C-S-p>'] = 'actions.preview'
+    }
+  } },
 
-      -- Setup orgmode
-      require('orgmode').setup({
-        org_agenda_files = '~/brain/**/*.org',
-        org_default_notes_file = '~/brain/inbox.org',
-      })
-  end,
-  }
+  'https://git.sr.ht/~rbdr/nota.nvim'
 })