From: Ruben Beltran del Rio Date: Mon, 11 Mar 2024 12:58:05 +0000 (+0100) Subject: Update config X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/commitdiff_plain/53d5c65ef679196a66005cdef1057ff642998eeb?ds=sidebyside;hp=-c Update config --- 53d5c65ef679196a66005cdef1057ff642998eeb diff --git a/config/aerc/accounts.conf.gpg b/config/aerc/accounts.conf.gpg index fc980cb..172c72f 100644 Binary files a/config/aerc/accounts.conf.gpg and b/config/aerc/accounts.conf.gpg differ diff --git a/config/aerc/aerc.conf b/config/aerc/aerc.conf index 3a53525..f02c7ee 100644 --- a/config/aerc/aerc.conf +++ b/config/aerc/aerc.conf @@ -133,7 +133,7 @@ # 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 diff --git a/config/nvim/init.lua b/config/nvim/init.lua index 674a55d..fd48ab7 100644 --- a/config/nvim/init.lua +++ b/config/nvim/init.lua @@ -89,7 +89,7 @@ pcall(require, 'init_local') -- Plugin Specific Behavior ------------------------------------------------------------------------------- -- FZF -vim.keymap.set("n", "", +vim.keymap.set('n', '', "lua require('fzf-lua').files({ fzf_opts = {} })", { silent = true }) -- Toggle Autosave @@ -108,6 +108,9 @@ vim.g.coq_settings = { } } +-- Oil +vim.keymap.set("n", "-", "Oil", { desc = "Open parent directory" }) + -- Plugins require('plugins') require('treesitter_config') diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json index 95fa205..e3e2f46 100644 --- a/config/nvim/lazy-lock.json +++ b/config/nvim/lazy-lock.json @@ -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" }, diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 15aeb95..14a9311 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -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 = { + [""] = false, + [""] = "actions.preview" + } + } }, 'https://git.sr.ht/~rbdr/nota.nvim' }) diff --git a/provisioning/brew_essential b/provisioning/brew_essential index 6eb56c0..bda961f 100644 --- a/provisioning/brew_essential +++ b/provisioning/brew_essential @@ -1,5 +1,6 @@ asdf bat +chafa curl difftastic eza diff --git a/provisioning/dnf_essential b/provisioning/dnf_essential index 8f02cef..b6c40d3 100644 --- a/provisioning/dnf_essential +++ b/provisioning/dnf_essential @@ -1,5 +1,6 @@ -y bat +chafa curl difftastic eza diff --git a/tmuxp/main.yml b/tmuxp/main.yml index b57a581..6002768 100644 --- a/tmuxp/main.yml +++ b/tmuxp/main.yml @@ -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: