all repos

init.lua @ 3a11abd

my nvim config

init.lua/lua/plugin.lua(view raw)

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
local get_config = require("utils").get_config

return require("packer").startup(function(use)
  use "wbthomason/packer.nvim"
  use "nvim-lua/plenary.nvim"
  use "kyazdani42/nvim-web-devicons"
  use "rmehri01/onenord.nvim" -- theme
  use "antoinemadec/FixCursorHold.nvim"
  use "gpanders/editorconfig.nvim"

  use { "lewis6991/impatient.nvim", config = "require'impatient'" }
  use { "tpope/vim-surround", keys = { "c", "d", "y" } }
  use { "numToStr/Comment.nvim", keys = { "gc" }, config = get_config "Comment" }
  use { "windwp/nvim-autopairs", config = get_config "plugin.autopairs" }
  use { "ahmedkhalf/project.nvim", config = get_config "plugin.project" }

  -- languages
  use { "~/code/gopher.nvim", ft = "go" }
  use { "folke/lua-dev.nvim", ft = "lua", config = get_config "plugin.lua-dev" }
  use { "zah/nim.vim", ft = "nim" }

  -- git
  use { "TimUntersberger/neogit", cmd = "Neogit", config = get_config "neogit" }
  use { "lewis6991/gitsigns.nvim", config = get_config "plugin.gitsigns" }

  -- appearance
  use { "folke/which-key.nvim", config = get_config "plugin.whichkey" }
  use { "nvim-lualine/lualine.nvim", config = get_config "plugin.statusline" }
  use { "folke/todo-comments.nvim", config = get_config "todo-comments" }
  use { "goolord/alpha-nvim", config = get_config "plugin.alpha" }

  -- another menus :D
  use { "kyazdani42/nvim-tree.lua", cmd = "NvimTreeToggle", config = get_config "plugin.nvimtree" }
  use { "folke/trouble.nvim", cmd = { "Trouble", "TroubleToggle" }, config = get_config "trouble" }

  use {
    "akinsho/toggleterm.nvim",
    config = get_config "plugin.terminal",
    module = "toggleterm",
    keys = "<C-t>",
  }

  use {
    "nvim-telescope/telescope.nvim",
    cmd = "Telescope",
    module = "telescope",
    config = get_config "plugin.telescope",
  }

  use {
    "neovim/nvim-lspconfig",
    config = get_config "lsp",
    requires = {
      "williamboman/nvim-lsp-installer",
      "jose-elias-alvarez/null-ls.nvim",
    },
  }

  use {
    "hrsh7th/nvim-cmp",
    config = get_config "plugin.cmp",
    event = "InsertEnter",
    module = "cmp",
    requires = {
      { "hrsh7th/cmp-nvim-lua", after = "nvim-cmp" },
      { "hrsh7th/cmp-nvim-lsp", module = "cmp_nvim_lsp" },
      { "hrsh7th/cmp-buffer", after = "nvim-cmp" },
      { "hrsh7th/cmp-path", after = "nvim-cmp" },
      { "hrsh7th/cmp-cmdline", after = "nvim-cmp" },
      { "saadparwaiz1/cmp_luasnip", after = "nvim-cmp" },
      { "L3MON4D3/LuaSnip", module = "luasnip", after = "nvim-cmp" },
      "rafamadriz/friendly-snippets",
    },
  }

  use {
    "nvim-treesitter/nvim-treesitter",
    branch = "0.5-compat",
    config = get_config "plugin.treesitter",
  }
end)