forked from brainfucksec/neovim-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
30 lines (27 loc) · 829 Bytes
/
init.lua
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
-----------------------------------------------------------
-- Import Lua modules
-----------------------------------------------------------
require('settings')
require('keymaps')
require('plugins/packer')
require('plugins/nvim-tree')
require('plugins/indent-blankline')
require('plugins/nvim-autopairs')
require('plugins/lualine')
require('plugins/vista')
require('plugins/nvim-cmp')
require('plugins/nvim-lspconfig')
--require('plugins/nvim-treesitter')
require('plugins/formatter')
require('plugins/nvim-comment')
require('plugins/colorizer')
require('my-snippets/init')
require('go').setup()
local format_sync_grp = vim.api.nvim_create_augroup("GoFormat", {})
vim.api.nvim_create_autocmd("BufWritePre", {
pattern = "*.go",
callback = function()
require('go.format').goimport()
end,
group = format_sync_grp,
})