]>
Commit | Line | Data |
---|---|---|
ce349909 RBR |
1 | local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' |
2 | if 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 | }) | |
11 | end | |
12 | vim.opt.rtp:prepend(lazypath) | |
13 | ||
14 | require('lazy').setup({ | |
af913f93 | 15 | { |
f2b3146a | 16 | 'ibhagwan/fzf-lua', |
af913f93 RBR |
17 | config = function() |
18 | -- calling `setup` is optional for customization | |
f2b3146a | 19 | require('fzf-lua').setup({ |
af913f93 RBR |
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'} | |
53d5c65e RBR |
41 | }, |
42 | previewers = { | |
43 | builtin = { | |
44 | extensions = { | |
f2b3146a RBR |
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}' } | |
53d5c65e RBR |
50 | } |
51 | } | |
af913f93 RBR |
52 | } |
53 | }) | |
54 | end | |
55 | }, | |
ce349909 RBR |
56 | |
57 | -- Syntaxes | |
ce349909 | 58 | 'ARM9/snes-syntax-vim', |
ce349909 | 59 | 'https://git.sr.ht/~torresjrjr/gemini.vim', |
f2b3146a | 60 | { 'folke/neodev.nvim', opts = {} }, |
ce349909 | 61 | |
f2b3146a | 62 | --'Debugging |
cf43e2c2 RBR |
63 | 'mfussenegger/nvim-dap', |
64 | 'rcarriga/nvim-dap-ui', | |
a51791d1 | 65 | 'mxsdev/nvim-dap-vscode-js', |
cf43e2c2 | 66 | |
ce349909 | 67 | -- Editing |
fd61b7b4 | 68 | 'ms-jpq/coq_nvim', |
f2b3146a RBR |
69 | 'RRethy/nvim-treesitter-endwise', |
70 | { | |
71 | 'm4xshen/autoclose.nvim', | |
72 | config = function() | |
73 | require('autoclose').setup() | |
74 | end | |
75 | }, | |
ce349909 | 76 | 'michaeljsmith/vim-indent-object', |
6cb3a2cb | 77 | { |
53d5c65e RBR |
78 | 'Pocco81/auto-save.nvim', |
79 | opts = { | |
80 | condition = function(buf) | |
81 | local fn = vim.fn | |
82 | local utils = require('auto-save.utils.data') | |
83 | ||
84 | if fn.getbufvar(buf, '&modifiable') == 1 | |
85 | and utils.not_in(fn.getbufvar(buf, '&filetype'), {'oil'}) then | |
86 | return true | |
87 | end | |
88 | return false | |
89 | end, | |
90 | } | |
91 | }, | |
92 | { | |
93 | 'danymat/neogen', | |
6cb3a2cb RBR |
94 | config = true |
95 | }, | |
ce349909 | 96 | |
3c6ddc92 RBR |
97 | -- Treesitter |
98 | 'nvim-treesitter/nvim-treesitter', | |
442118e6 | 99 | 'https://git.sr.ht/~rbdr/tree-sitter-api-notation', |
3c6ddc92 | 100 | |
73a2d994 RBR |
101 | -- LSP |
102 | 'neovim/nvim-lspconfig', | |
103 | 'folke/neodev.nvim', | |
104 | ||
ce349909 | 105 | -- Tools |
f2b3146a | 106 | 'mbbill/undotree', |
ce349909 RBR |
107 | 'vim-scripts/LargeFile', |
108 | 'tpope/vim-fugitive', | |
6cb3a2cb | 109 | 'milkypostman/vim-togglelist', |
f2b3146a RBR |
110 | { |
111 | 'folke/which-key.nvim', | |
112 | event = 'VeryLazy', | |
113 | init = function() | |
114 | vim.o.timeout = true | |
115 | vim.o.timeoutlen = 300 | |
116 | end, | |
117 | opts = {} | |
118 | }, | |
53d5c65e RBR |
119 | { 'stevearc/oil.nvim', opts = { |
120 | keymaps = { | |
f2b3146a RBR |
121 | ['<C-p>'] = false, |
122 | ['<C-S-p>'] = 'actions.preview' | |
53d5c65e RBR |
123 | } |
124 | } }, | |
6cb3a2cb | 125 | |
cd4c8b13 | 126 | 'https://git.sr.ht/~rbdr/nota.nvim' |
ce349909 | 127 | }) |