aboutsummaryrefslogtreecommitdiff
path: root/.config/nvim/lua/plugin/setup.lua
blob: ca2be6634d6c27f44484235abcdecebc7dde8829 (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
---@diagnostic disable: undefined-global

require("gitsigns").setup {}
require("Comment").setup {}
require("mason").setup {}

require("nvim-autopairs").setup {
  fast_wrap = {
    map = "<M-e>",
    chars = { "<", "{", "[", "(", "\"", "'" },
    pattern = [=[[%"%"%>%]%)%}%,]]=],
    end_key = "$",
    keys = "qwertyuiopzxcvbnmasdfghjkl",
    check_comma = true,
    highlight = "Search",
    highlight_grey="Comment"
  }
}

require("nvim-treesitter.configs").setup {
  ensure_installed = { "c", "lua", "vimdoc" },
  sync_install = true,
  highlight = {
    enable = true,
    additional_vim_regex_highlighting = true,
  },
  indent = {enable = true},
}

local builtin = require("telescope.builtin")
require("telescope").setup {
  pickers = {
    find_files = {
      theme = "dropdown",
    }
  }
}

vim.keymap.set("n", "<C-o>", builtin.find_files, {})
vim.keymap.set("n", "<C-g>", builtin.git_files, {})
vim.keymap.set("n", "<C-f>", function()
  builtin.grep_string({ search = vim.fn.input("grep>") })
end)