aboutsummaryrefslogtreecommitdiff
path: root/common/config/nvim/lua/plugins/surround.lua
blob: 71023c7622785f868885f8184fc282ee267a1b37 (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
local M = {}

function M.setup()
  local ok, surround = pcall(require, 'nvim-surround')
  if not ok or not surround then
    return false
  end

  surround.setup({
  keymaps = {
    insert = false,
    insert_line = false,
    normal = false,
    normal_cur = false,
    normal_line = false,
    normal_cur_line = false,
    visual = "<S-s>",
    visual_line = false,
    delete = false,
    change = false,
  },
  aliases = {
    ["a"] = false,
    ["b"] = false,
    ["B"] = false,
    ["r"] = false,
    ["q"] = false,
    ["s"] = false,
    },
  })
  
  return true
end

return M