]> git.r.bdr.sh - rbdr/dotfiles/commitdiff
Update config
authorRuben Beltran del Rio <redacted>
Mon, 11 Mar 2024 12:58:05 +0000 (13:58 +0100)
committerRuben Beltran del Rio <redacted>
Mon, 11 Mar 2024 12:58:05 +0000 (13:58 +0100)
config/aerc/accounts.conf.gpg
config/aerc/aerc.conf
config/nvim/init.lua
config/nvim/lazy-lock.json
config/nvim/lua/plugins.lua
provisioning/brew_essential
provisioning/dnf_essential
tmuxp/main.yml

index fc980cbd0d1822288c29bfed339d7914ba5058f9..172c72f0cfcd0a30d2671cb9e18e641d7b426aa6 100644 (file)
Binary files a/config/aerc/accounts.conf.gpg and b/config/aerc/accounts.conf.gpg differ
index 3a535254dbf38556ac16cc1e391a704bd263878d..f02c7ee66380b07070a224defc2ccbb8f50487af 100644 (file)
 # Ring the bell when new messages are received
 #
 # Default: true
-#new-message-bell=true
+new-message-bell=false
 
 #
 # Template to use for Account tab titles
index 674a55d6af239b1b3ad0a5ad3d37b40c659f3150..fd48ab73000d2da9caa6f3472d724fe3c72c2148 100644 (file)
@@ -89,7 +89,7 @@ pcall(require, 'init_local')
 -- Plugin Specific Behavior
 -------------------------------------------------------------------------------
 -- FZF
-vim.keymap.set("n", "<c-P>",
+vim.keymap.set('n', '<c-P>',
   "<cmd>lua require('fzf-lua').files({ fzf_opts = {} })<CR>", { silent = true })
 
 -- Toggle Autosave
@@ -108,6 +108,9 @@ vim.g.coq_settings = {
   }
 }
 
+-- Oil
+vim.keymap.set("n", "-", "<CMD>Oil<CR>", { desc = "Open parent directory" })
+
 -- Plugins
 require('plugins')
 require('treesitter_config')
index 95fa2057b862340ccc10858ac4347f4b8d9eb948..e3e2f4603c0cf2158ddc976006db438c3d61d1fc 100644 (file)
@@ -2,17 +2,18 @@
   "LargeFile": { "branch": "master", "commit": "3941a37b2b0288524300348a39521a46539bf9f6" },
   "auto-save.nvim": { "branch": "main", "commit": "979b6c82f60cfa80f4cf437d77446d0ded0addf0" },
   "coq_nvim": { "branch": "coq", "commit": "806a0a71a20795a6b3cd11e0bc9deaa68ae81d7f" },
-  "fzf-lua": { "branch": "main", "commit": "62601b89aa24303f3117115f42e315dd1c54b97f" },
+  "fzf-lua": { "branch": "main", "commit": "fea7e7b98af19fe4bc988828073da21b9ad1c3a6" },
   "gemini.vim": { "branch": "master", "commit": "c9efb59c97b71c28d4678c79fd21fbdd3a69d196" },
   "lazy.nvim": { "branch": "main", "commit": "aedcd79811d491b60d0a6577a9c1701063c2a609" },
   "neodev.nvim": { "branch": "main", "commit": "84e0290f5600e8b89c0dfcafc864f45496a53400" },
   "neogen": { "branch": "main", "commit": "b95347a588401a755eadd17482edc1662876bd58" },
-  "nota.nvim": { "branch": "main", "commit": "9e9e89d8556ecafa6b11ab21aa9ffab550f7f3ad" },
+  "nota.nvim": { "branch": "main", "commit": "ca10d2a36e3e7d8d28f15f36f0812384606c238d" },
   "nvim-dap": { "branch": "master", "commit": "fc880e82059eb21c0fa896be60146e5f17680648" },
   "nvim-dap-ui": { "branch": "master", "commit": "9720eb5fa2f41988e8770f973cd11b76dd568a5d" },
   "nvim-dap-vscode-js": { "branch": "main", "commit": "03bd29672d7fab5e515fc8469b7d07cc5994bbf6" },
-  "nvim-lspconfig": { "branch": "master", "commit": "7f5cf1121f772850a30bdaf83fb448e88846aa58" },
-  "nvim-treesitter": { "branch": "master", "commit": "212b7a504cf56f85d1acc5be237261b42d7560c5" },
+  "nvim-lspconfig": { "branch": "master", "commit": "e5e600232188ed9fb960f5df6bb06084ae8bf3ec" },
+  "nvim-treesitter": { "branch": "master", "commit": "c09932bd2de01dc9c01e870fe83060693c67de13" },
+  "oil.nvim": { "branch": "master", "commit": "18dfd2458dc741fea683357a17aaa95870b25a3c" },
   "snes-syntax-vim": { "branch": "master", "commit": "a6a699c8905f7b6119bf91e44f960667d9f03d59" },
   "tree-sitter-api-notation": { "branch": "main", "commit": "3113c6077d9ed1e662a891714ac00e1ee3bb7657" },
   "vim-closer": { "branch": "master", "commit": "6007d9db0a35e983af246b667282606612076b07" },
index 15aeb955ee0b46b7260319dc6acc88c816828375..14a9311c0600d5a44f6304652aba175aa1d1e423 100644 (file)
@@ -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
@@ -58,9 +69,23 @@ require('lazy').setup({
   'tpope/vim-endwise',
   'rstacruz/vim-closer',
   'michaeljsmith/vim-indent-object',
-  'Pocco81/auto-save.nvim',
   {
-    "danymat/neogen",
+    '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
   },
 
@@ -76,6 +101,12 @@ require('lazy').setup({
   'vim-scripts/LargeFile',
   'tpope/vim-fugitive',
   'milkypostman/vim-togglelist',
+  { 'stevearc/oil.nvim', opts = {
+    keymaps = {
+      ["<C-p>"] = false,
+      ["<C-S-p>"] = "actions.preview"
+    }
+  } },
 
   'https://git.sr.ht/~rbdr/nota.nvim'
 })
index 6eb56c07248449f5a8f3e32fb20e4e3a40b9bcfe..bda961f6119f451171a967cb0e9f68b643f68674 100644 (file)
@@ -1,5 +1,6 @@
 asdf
 bat
+chafa
 curl
 difftastic
 eza
index 8f02cef0aa4d36b13563701977029e71a91df9b0..b6c40d318b3919874548b394ed5b4d7bea395ba5 100644 (file)
@@ -1,5 +1,6 @@
 -y
 bat
+chafa
 curl
 difftastic
 eza
index b57a581e8345a078ec0578da6d1fc2378050856c..6002768da6e25d7b57be757b413d6f7723c55cef 100644 (file)
@@ -1,14 +1,22 @@
 session_name: main
 
 windows:
-  - window_name: main
+  - window_name: mail
+    start_directory: '~/projects'
+    panes:
+      - aerc
+  - window_name: notes
+    start_directory: '~/.local/share/nota'
+    panes:
+      - nvim
+  - window_name: util
     start_directory: '~'
     focus: true
     layout: '9c05,158x41,0,0{79x41,0,0,21,78x41,80,0[78x20,80,0,22,78x20,80,21,23]}'
     panes:
-      - cowsay main
-      - ranger
-      - htop
+      - cowsay welcome
+      - cowsay to
+      - cowsay computer
   - window_name: proj
     start_directory: '~/Projects'
     panes: