summaryrefslogtreecommitdiff
path: root/lua/config/plugins.lua
blob: 539933391a7c3956c47636ef04615d3660b3b436 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
table.insert(lvim.plugins, {
  "ChristianChiarulli/swenv.nvim",
  "stevearc/dressing.nvim",

  {"akinsho/toggleterm.nvim", config = true},

  "mfussenegger/nvim-dap-python",
  "nvim-neotest/neotest",
  "nvim-neotest/neotest-python",
  "tpope/vim-fugitive",
  "tpope/vim-rhubarb",
  {
   'stevearc/oil.nvim',
    opts = {},
    dependencies = { "nvim-tree/nvim-web-devicons" },

    config = function ()
      require("oil").setup({
        default_file_explorer = true,
      })
    end
  },
  {
    "chrishrb/gx.nvim",
    keys = { { "gx", "<cmd>Browse<cr>", mode = { "n", "x" } } },
    cmd = { "Browse" },
    init = function ()
      vim.g.netrw_nogx = 1 -- disable netrw gx
    end,
    dependencies = { "nvim-lua/plenary.nvim" },
    submodules = false, -- not needed, submodules are required only for tests

    -- you can specify also another config if you want
    config = function() require("gx").setup {
      open_browser_app = "xdg-open", -- specify your browser app; default for macOS is "open", Linux "xdg-open" and Windows "powershell.exe"
      -- open_browser_args = { "--background" }, -- specify any arguments, such as --background for macOS' "open".
      handlers = {
        plugin = true, -- open plugin links in lua (e.g. packer, lazy, ..)
        github = true, -- open github issues
        package_json = true, -- open dependencies from package.json
        search = true, -- search the web/selection on the web if nothing else is found
        go = true, -- open pkg.go.dev from an import statement (uses treesitter)
      },
      handler_options = {
        search_engine = "https://search.brave.com/search?q=", -- or you can pass in a custom search engine
        select_for_search = false, -- if your cursor is e.g. on a link, the pattern for the link AND for the word will always match. This disables this behaviour for default so that the link is opened without the select option for the word AND link
      },
    } end,
  },
  {"vimwiki/vimwiki",
    init = function()
        vim.g.vimwiki_list = {
            {
            path = '~/vimwiki.md/',
            syntax = 'markdown',
            ext = '.md',
            },
        }
    end
  },
  {"dccsillag/magma-nvim",
    -- run = ":UpdateRemotePlugins",
    config = function()
      vim.cmd([[nnoremap <silent> <leader>mk :MagmaInit Python3<CR>
      nnoremap <silent> <leader>m  :MagmaEvaluateOperator<CR>
      nnoremap <silent> <leader>mm :MagmaEvaluateLine<CR>
      xnoremap <silent> <leader>m  :<C-u>MagmaEvaluateVisual<CR>
      nnoremap <silent> <leader>mc :MagmaReevaluateCell<CR>
      nnoremap <silent> <leader>md :MagmaDelete<CR>
      nnoremap <silent> <leader>mo :MagmaShowOutput<CR>
      nnoremap <silent> <leader>ms :MagmaSave<CR>

      let g:magma_automatically_open_output = v:false
      let g:magma_image_provider = "ueberzug"
      let g:magma_save_path = "~/tmp/magma"
		  ]])
	  end,
  },

  "goerz/jupytext.vim",
  "untitled-ai/jupyter_ascending.vim",

  {
  'nvim-orgmode/orgmode',
    -- dependencies = {
    --     { 'nvim-treesitter/nvim-treesitter', lazy = true },
    --   },
      event = 'VeryLazy',
      config = function()
        -- -- Load treesitter grammar for org
        -- require('orgmode').setup_ts_grammar()

        -- -- Setup treesitter
        -- require('nvim-treesitter.configs').setup({
        --   highlight = {
        --     enable = true,
        --   },
        --   ensure_installed = { 'org' },
        -- })

        -- Setup Orgmode
        require('orgmode').setup({
          org_agenda_files = '~/Orgmode/**/*',
          org_default_notes_file = '~/Orgmode/refile.org',
        mappings = {
          org_return_uses_meta_return = true,

        },
        })
      end
  },
  "kdheepak/cmp-latex-symbols",
  "KeitaNakamura/tex-conceal.vim",
  {"f3fora/nvim-texlabconfig",
    config = function()
        require("texlabconfig").setup()
    end,
    ft = { 'tex', 'bib' }, -- Lazy-load on filetype
    build = 'go build'
  },
  {"lervag/vimtex",
    init = function()

      vim.cmd([[
      let g:tex_flavor = 'latex'
      let g:vimtex_view_method = 'zathura'
      let g:vimtex_quickfix_mode = 0
      let g:vimtex_cache_persistent = 0
      set conceallevel=1
      let g:tex_conceal = 'abdmg'

		  ]])
      vim.keymap.set('i', '<C-f>', [[<Esc>: silent exec '.!inkscape-figures create "'.getline('.').'" "'.b:vimtex.root.'/figures/"'<CR><CR>:w<CR> ]])
      vim.keymap.set('n', '<C-f>', [[: silent exec '!inkscape-figures edit "'.b:vimtex.root.'/figures/" > /dev/null 2>&1 &'<CR><CR>:redraw!<CR>]])
      -- vim.api.nvim_create_autocmd("BufEnter",{
      --   callback = function()
      --     vim.fn.system({
      --       "inkscape-figures",
      --       "watch"
      --     })
      --   end,
      -- })
    end
  },
  -- {
  --   "xiyaowong/link-visitor.nvim",
  --   config = function ()
  --   require("link-visitor").setup({
  --     open_cmd = nil,
  --     silent = true, -- disable all prints, `false` by defaults skip_confirmation
  --     skip_confirmation = false, -- Skip the confirmation step, default: false
  --     border = "rounded" -- none, single, double, rounded, solid, shadow see `:h nvim_open_win()`
  --   })
  --   end
  -- },
  {
    "vhyrro/luarocks.nvim",
    priority = 1000,
    opts = {
      rocks = { "fzy", "pathlib.nvim", },
    },
    config = true,

  },
  "nvim-neorg/neorg-telescope",
  { "nvim-neorg/neorg",
    ft = "norg",

    lazy = false, -- specify lazy = false because some lazy.nvim distributions set lazy = true by default
    -- dependencies = { "luarocks.nvim" },
    -- tag = "*",
    dependencies = {
      { "luarocks.nvim" },
      -- { 'nvim-lua/plenary.nvim' },
      { 'nvim-treesitter/nvim-treesitter' },
      { 'nvim-neorg/tree-sitter-norg' },
      { 'nvim-treesitter/nvim-treesitter-textobjects' },
      { 'hrsh7th/nvim-cmp' },
      { 'nvim-neorg/neorg-telescope' },
      { 'tamton-aquib/neorg-jupyter' },
      { "pysan3/neorg-templates", dependencies = { "L3MON4D3/LuaSnip" } },
      { 'pritchett/neorg-capture' },
      { 'nvim-neorg/neorg-gtd' },
    },
    -- build = ":Neorg sync-parsers",
    cmd = "Neorg",
    config = function()
        -- -- Setup treesitter
        require('nvim-treesitter.configs').setup({
          highlight = {
            enable = true,
          }
        })
      require("neorg").setup {
        load = {
          ["core.defaults"] = {},
          ["core.completion"] = { config = { engine = "nvim-cmp", name = "[Norg]" }, },
          ["core.integrations.nvim-cmp"] = {},
          ["core.integrations.telescope"] = {},
          ["core.concealer"] = { config = { icon_preset = "diamond" } },
          ["core.keybinds"] = {
            config = {
              default_keybinds = true,
              neorg_leader = "<Leader>",
              LocalLeader = "<Leader>",
            },
          },
          ["core.dirman"] = { -- Manages Neorg workspaces
            config = {
              workspaces = {
                notes = "~/Notes",
                tutorial = "~/Notes/Norg-Tutorial",
                uh = "~/Notes/UH",
              },
              default_workspace = "notes",
              use_popup = true,
            },
          },
          ["core.ui.calendar"] = {},
          ["external.jupyter"] = {}
        },
      }
    end
  },
})