diff options
Diffstat (limited to 'config/nvim/lua/plugins.lua')
| -rw-r--r-- | config/nvim/lua/plugins.lua | 98 |
1 files changed, 86 insertions, 12 deletions
diff --git a/config/nvim/lua/plugins.lua b/config/nvim/lua/plugins.lua index 61d329d..ef68eee 100644 --- a/config/nvim/lua/plugins.lua +++ b/config/nvim/lua/plugins.lua @@ -1,12 +1,14 @@ +vim.g.mapleader = ' ' +vim.g.maplocalleader = ';' local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim' if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - 'git', - 'clone', - '--filter=blob:none', - 'https://github.com/folke/lazy.nvim.git', - '--branch=stable', -- latest stable release - lazypath, - }) +vim.fn.system({ + 'git', + 'clone', + '--filter=blob:none', + 'https://github.com/folke/lazy.nvim.git', + '--branch=stable', -- latest stable release + lazypath, +}) end vim.opt.rtp:prepend(lazypath) @@ -80,7 +82,12 @@ require('lazy').setup({ }, -- Treesitter - 'nvim-treesitter/nvim-treesitter', + { + 'nvim-treesitter/nvim-treesitter', + lazy = false, + build = ':TSUpdate', + branch = 'main' + }, 'https://git.sr.ht/~rbdr/tree-sitter-api-notation', 'https://git.sr.ht/~rbdr/tree-sitter-wmap', @@ -103,7 +110,11 @@ require('lazy').setup({ ['<S-Tab>'] = { 'snippet_backward', 'select_prev', 'fallback' }, }, sources = { - default = { 'lsp', 'path', 'snippets', 'buffer' }, + default = { 'lsp', 'path', 'buffer', 'snippets' }, + per_filetype = { + markdown = { 'lsp'}, + norg = { 'lsp'} + } }, fuzzy = { implementation = "prefer_rust_with_warning" }, }, @@ -119,6 +130,13 @@ require('lazy').setup({ 'mbbill/undotree', 'milkypostman/vim-togglelist', { + "3rd/image.nvim", + build = false, + opts = { + processor = "magick_cli", + } + }, + { 'folke/which-key.nvim', event = 'VeryLazy', init = function() @@ -136,9 +154,65 @@ require('lazy').setup({ } } }, + { + 'nvim-neorg/neorg', + lazy = false, + version = "*", + config = true, + dependencies = { + 'nvim-neorg/tree-sitter-norg', + 'nvim-neorg/tree-sitter-norg-meta', + }, + opts = { + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.pivot"] = {}, + ["core.latex.renderer"] = {}, + ["core.journal"] = { + config = { + journal_folder = "periodic/daily", + strategy = "flat", + template_name = "../../templates/daily.norg", + workspace = "brain", + }, + }, + ["core.dirman"] = { + config = { + workspaces = { + brain = "~/brain", + }, + default_workspace = "brain", + } + }, + ["external.interim-ls"] = {}, + ["core.completion"] = { + config = { engine = { module_name = "external.lsp-completion" } }, + }, + } +} + }, + { + "michaelb/sniprun", + branch = "master", - 'https://git.sr.ht/~rbdr/nota.nvim', - 'https://git.sr.ht/~rbdr/oleoboard.nvim', + build = "sh install.sh", + -- do 'sh install.sh 1' if you want to force compile locally + -- (instead of fetching a binary from the github release). Requires Rust >= 1.65 + + config = function() + require("sniprun").setup({ + -- your options + }) + end, + }, + 'benlubas/neorg-interim-ls', + { + 'https://git.sr.ht/~rbdr/nota.nvim', + opts = { + norg = true, + } + }, 'https://git.sr.ht/~rbdr/jannotate.nvim', 'https://git.sr.ht/~rbdr/marginalie.nvim' }) |