2022-08-25 12:21:35 -06:00
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
local o = vim.o
|
|
|
|
local cmd = vim.cmd
|
|
|
|
|
2022-10-26 10:19:10 -06:00
|
|
|
--cmd("syntax off");
|
|
|
|
--cmd("set t_Co=0");
|
2022-08-25 12:21:35 -06:00
|
|
|
cmd("set nolist");
|
|
|
|
cmd("set ruler");
|
2022-10-03 09:29:29 -06:00
|
|
|
cmd("set mouse-=n");
|
2022-10-26 10:19:10 -06:00
|
|
|
cmd("set t_Co=256");
|
|
|
|
cmd("colorscheme vacme");
|
|
|
|
cmd("hi! Normal ctermbg=NONE ctermfg=NONE");
|
|
|
|
cmd("hi! Normal ctermbg=NONE ctermfg=NONE");
|
|
|
|
cmd("hi! Normal ctermbg=NONE ctermfg=NONE");
|
|
|
|
cmd("hi! SignColumn NONE");
|
|
|
|
cmd("hi! LineNr NONE");
|
2022-10-26 10:26:19 -06:00
|
|
|
cmd("hi! Search cterm=NONE ctermbg=yellow");
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2022-10-19 08:13:26 -06:00
|
|
|
require("nvim-tree").setup({
|
|
|
|
renderer = {
|
|
|
|
icons = {
|
|
|
|
show = false,
|
|
|
|
webdev_colors = false,
|
|
|
|
show = {
|
|
|
|
file = false,
|
|
|
|
folder = false,
|
|
|
|
folder_arrow = false,
|
|
|
|
git = true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
|
|
|
|
cmd[[highlight NvimTreeOpenedFolderName guifg=default]]
|
|
|
|
cmd[[highlight NvimTreeFolderName guifg=default]]
|
2022-10-07 20:07:26 -06:00
|
|
|
|
2022-08-25 12:21:35 -06:00
|
|
|
local lspc = require("lspconfig")
|
|
|
|
lspc.gopls.setup {};
|
2022-10-26 10:19:10 -06:00
|
|
|
lspc.nil_ls.setup {};
|
2022-08-25 12:21:35 -06:00
|
|
|
|
|
|
|
o.hlsearch = true;
|
|
|
|
|
2022-10-07 20:07:26 -06:00
|
|
|
map('n', '<C-n>', ':NvimTreeToggle<CR>', {noremap = true})
|
2022-08-25 12:21:35 -06:00
|
|
|
map('n', '<leader>r', ':NvimTreeRefresh<CR>', {noremap = true})
|
2022-10-07 20:07:26 -06:00
|
|
|
map('n', '<leader>s', ':%s/\\s\\+$//e', {noremap = true})
|
|
|
|
|
|
|
|
map('n', '<leader>1', ':GitGutterToggle<CR>', {noremap = true})
|
|
|
|
map('n', '<leader>2', ':set list!<CR>', {noremap = true})
|
|
|
|
map('n', '<leader>3', ':set nu!<CR>', {noremap = true})
|
|
|
|
map('n', '<leader>4', ':set paste!<CR>', {noremap = true})
|
2022-08-25 12:21:35 -06:00
|
|
|
|