summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugins/editor.lua
blob: 7cc48eac2e726c012cbe03e77c43745d12314f00 (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
return {
  {
    "Olical/conjure",
    ft = {
      "clojure",
      "fennel",
      "janet",
      "racket",
      "hy",
      "scheme",
      "guile",
      "commonlisp",
      "julia",
      "rust",
      "lua",
      "python",
    },
  },
  { "nvimdev/hlsearch.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {} },
  { "folke/todo-comments.nvim", event = { "BufReadPre", "BufNewFile" }, opts = {} },
  { "stevearc/dressing.nvim", event = "VeryLazy", opts = {} },
  { "kylechui/nvim-surround", event = "VeryLazy", opts = {} },
  { "numtostr/comment.nvim", event = "VeryLazy", opts = {} },
  { "folke/neodev.nvim", ft = "lua", opts = {} },
  {
    "iamcco/markdown-preview.nvim",
    build = "cd app && npm install",
    cmd = { "MarkdownPreview", "MarkdownPreviewStop", "MarkdownPreviewToggle" },
  },
  {
    "RRethy/vim-illuminate",
    event = { "BufReadPre", "BufNewFile" },
    config = function()
      require("illuminate").configure({
        providers = { "lsp", "treesitter" },
      })
      vim.api.nvim_set_hl(0, "IlluminatedWordText", { link = "illuminatedWord" })
      vim.api.nvim_set_hl(0, "IlluminatedWordRead", { link = "illuminatedWord" })
      vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { link = "illuminatedWord" })
    end,
  },
  {
    "echasnovski/mini.ai",
    event = "VeryLazy",
    config = function()
      local ai = require("mini.ai")
      ai.setup({
        n_lines = 200,
        custom_textobjects = {
          F = ai.gen_spec.treesitter({ a = "@function.outer", i = "@function.inner" }),
          c = ai.gen_spec.treesitter({ a = "@class.outer", i = "@class.inner" }),
        },
      })
    end
  },
}