Install neoformat and run it on config

This commit is contained in:
2021-11-25 19:35:03 +03:00
parent 12305d3180
commit bf430c2ff6
3 changed files with 204 additions and 232 deletions

View File

@@ -1,14 +1,11 @@
local function map(mode, shortcut, command)
vim.api.nvim_set_keymap(mode, shortcut, command, { noremap = true, silent = true })
vim.api.nvim_set_keymap(mode, shortcut, command,
{noremap = true, silent = true})
end
local function nmap(shortcut, command)
map("n", shortcut, command)
end
local function nmap(shortcut, command) map("n", shortcut, command) end
local function vmap(shortcut, command)
map("v", shortcut, command)
end
local function vmap(shortcut, command) map("v", shortcut, command) end
-- Quickly save/quit vim
nmap("<leader>w", ":w<CR>")