X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/9f9934bad16668fcf0a768cdaa03383d73780e15..53d5c65ef679196a66005cdef1057ff642998eeb:/config/nvim/lua/plugins.lua?ds=sidebyside diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 17f2fb4..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 @@ -46,16 +57,37 @@ require('lazy').setup({ -- Syntaxes 'ARM9/snes-syntax-vim', 'https://git.sr.ht/~torresjrjr/gemini.vim', + { "folke/neodev.nvim", opts = {} }, -- Debugging 'mfussenegger/nvim-dap', 'rcarriga/nvim-dap-ui', + 'mxsdev/nvim-dap-vscode-js', -- Editing 'ms-jpq/coq_nvim', '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', @@ -68,5 +100,13 @@ require('lazy').setup({ -- Tools 'vim-scripts/LargeFile', 'tpope/vim-fugitive', - 'milkypostman/vim-togglelist' + 'milkypostman/vim-togglelist', + { 'stevearc/oil.nvim', opts = { + keymaps = { + [""] = false, + [""] = "actions.preview" + } + } }, + + 'https://git.sr.ht/~rbdr/nota.nvim' })