]> git.r.bdr.sh - rbdr/dotfiles/blame_incremental - config/nvim/lua/plugins.lua
New color scheme
[rbdr/dotfiles] / config / nvim / lua / plugins.lua
... / ...
CommitLineData
1local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
2if not vim.loop.fs_stat(lazypath) then
3 vim.fn.system({
4 'git',
5 'clone',
6 '--filter=blob:none',
7 'https://github.com/folke/lazy.nvim.git',
8 '--branch=stable', -- latest stable release
9 lazypath,
10 })
11end
12vim.opt.rtp:prepend(lazypath)
13
14require('lazy').setup({
15 {
16 "ibhagwan/fzf-lua",
17 config = function()
18 -- calling `setup` is optional for customization
19 require("fzf-lua").setup({
20 winopts={
21 width=1,
22 height=0.4,
23 row=1
24 },
25 fzf_opts={
26 ['--layout']='default'
27 },
28 fzf_colors = {
29 ['fg'] = {'fg', 'Normal'},
30 ['bg'] = {'bg', 'Normal'},
31 ['hl'] = {'fg', 'Comment'},
32 ['fg+'] = {'fg', 'CursorLine'},
33 ['bg+'] = {'bg', 'CursorLine'},
34 ['hl+'] = {'fg', 'Statement'},
35 ['info'] = {'fg', 'PreProc'},
36 ['prompt'] = {'fg', 'Conditional'},
37 ['pointer'] = {'fg', 'Exception'},
38 ['marker'] = {'fg', 'Keyword'},
39 ['spinner'] = {'fg', 'Label'},
40 ['header'] = {'fg', 'Comment'}
41 },
42 previewers = {
43 builtin = {
44 extensions = {
45 ["png"] = { "chafa", "-f", "symbols", "{file}" },
46 ["gif"] = { "chafa", "-f", "symbols", "{file}" },
47 ["svg"] = { "chafa", "-f", "symbols", "{file}" },
48 ["jpg"] = { "chafa", "-f", "symbols", "{file}" },
49 ["jpeg"] = { "chafa", "-f", "symbols", "{file}" }
50 }
51 }
52 }
53 })
54 end
55 },
56
57 -- Syntaxes
58 'ARM9/snes-syntax-vim',
59 'https://git.sr.ht/~torresjrjr/gemini.vim',
60 { "folke/neodev.nvim", opts = {} },
61
62 -- Debugging
63 'mfussenegger/nvim-dap',
64 'rcarriga/nvim-dap-ui',
65 'mxsdev/nvim-dap-vscode-js',
66
67 -- Editing
68 'ms-jpq/coq_nvim',
69 'tpope/vim-endwise',
70 'rstacruz/vim-closer',
71 'michaeljsmith/vim-indent-object',
72 {
73 'Pocco81/auto-save.nvim',
74 opts = {
75 condition = function(buf)
76 local fn = vim.fn
77 local utils = require('auto-save.utils.data')
78
79 if fn.getbufvar(buf, '&modifiable') == 1
80 and utils.not_in(fn.getbufvar(buf, '&filetype'), {'oil'}) then
81 return true
82 end
83 return false
84 end,
85 }
86 },
87 {
88 'danymat/neogen',
89 config = true
90 },
91
92 -- Treesitter
93 'nvim-treesitter/nvim-treesitter',
94 'https://git.sr.ht/~rbdr/tree-sitter-api-notation',
95
96 -- LSP
97 'neovim/nvim-lspconfig',
98 'folke/neodev.nvim',
99
100 -- Tools
101 'vim-scripts/LargeFile',
102 'tpope/vim-fugitive',
103 'milkypostman/vim-togglelist',
104 { 'stevearc/oil.nvim', opts = {
105 keymaps = {
106 ["<C-p>"] = false,
107 ["<C-S-p>"] = "actions.preview"
108 }
109 } },
110
111 'https://git.sr.ht/~rbdr/nota.nvim'
112})