Install neoformat and run it on config
This commit is contained in:
@@ -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>")
|
||||
|
||||
Reference in New Issue
Block a user