local map = vim.api.nvim_set_keymap local o = vim.o local cmd = vim.cmd cmd("syntax off"); cmd("set nolist"); cmd("set ruler"); cmd("set mouse-=a"); require("compe").setup { enabled = true; autocomplete = true; source = { path = true; buffer = true; calc = true; nvim_lsp = true; nvim_lua = true; vsnip = true; ultisnips = true; luasnip = true; }; } local lspc = require("lspconfig") lspc.gopls.setup {}; o.hlsearch = true; map('n', '', ':NvimTreeToggle', {noremap = true}) map('n', 'r', ':NvimTreeRefresh', {noremap = true}) map('n', 'n', ':NvimTreeFindFile', {noremap = true}) map('n', 's', ':%s/\\s\\+$//e', {noremap = true}) map('n', '1', ':GitGutterToggle', {noremap = true}) map('n', '2', ':set list!', {noremap = true}) map('n', '3', ':set nu!', {noremap = true}) map('n', '4', ':set paste!', {noremap = true})