X-Git-Url: https://git.r.bdr.sh/rbdr/dotfiles/blobdiff_plain/0da4665cd3776235be2524ce08aa8a37875f820e..04f376bb720976147aaef28e33920bb2a7a35a9a:/config/nvim/lua/plugins.lua diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 14a9311..8ac2766 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -1,5 +1,4 @@ -local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' -if not vim.loop.fs_stat(lazypath) then +local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then vim.fn.system({ 'git', 'clone', @@ -13,10 +12,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, @@ -42,11 +41,11 @@ require('lazy').setup({ 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}" } + ['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}' } } } } @@ -57,17 +56,27 @@ require('lazy').setup({ -- Syntaxes 'ARM9/snes-syntax-vim', 'https://git.sr.ht/~torresjrjr/gemini.vim', - { "folke/neodev.nvim", opts = {} }, + { 'folke/neodev.nvim', opts = {} }, - -- Debugging - 'mfussenegger/nvim-dap', + --'Debugging + { + 'mfussenegger/nvim-dap', + dependencies = { + 'nvim-neotest/nvim-nio' + } + }, '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', @@ -98,15 +107,26 @@ require('lazy').setup({ 'folke/neodev.nvim', -- Tools + 'mbbill/undotree', 'vim-scripts/LargeFile', 'tpope/vim-fugitive', 'milkypostman/vim-togglelist', + { + 'folke/which-key.nvim', + event = 'VeryLazy', + init = function() + vim.o.timeout = true + vim.o.timeoutlen = 300 + end, + opts = {} + }, { 'stevearc/oil.nvim', opts = { keymaps = { - [""] = false, - [""] = "actions.preview" + [''] = false, + [''] = 'actions.preview' } } }, - 'https://git.sr.ht/~rbdr/nota.nvim' + 'https://git.sr.ht/~rbdr/nota.nvim', + 'https://git.sr.ht/~rbdr/oleoboard.nvim', })