Browse Source

options and keymaps

imac
junikimm717 2 years ago
parent
commit
84cc9b2b9e
  1. 5
      lua/junikim/options.lua
  2. 8
      lua/junikim/remap.lua

5
lua/junikim/options.lua

@ -12,6 +12,11 @@ vim.opt.textwidth = 80
vim.opt.colorcolumn = "80" vim.opt.colorcolumn = "80"
vim.opt.list = true vim.opt.list = true
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.incsearch = true
vim.g.airline_theme = "base16_chalk" vim.g.airline_theme = "base16_chalk"
vim.g.airline_powerline_fonts = 1 vim.g.airline_powerline_fonts = 1

8
lua/junikim/remap.lua

@ -24,3 +24,11 @@ map("i", "<A-u>", "ū")
map("n", "<F12>", ":w|:!texbld run compile") map("n", "<F12>", ":w|:!texbld run compile")
map("n", "<F5>", ":w|:!./test.sh") map("n", "<F5>", ":w|:!./test.sh")
vim.keymap.set("x", "<leader>p", [["_dP]])
vim.keymap.set("n", "<leader>vc", "<cmd>e ~/.config/nvim<CR>");
vim.keymap.set("n", "<leader>vz", "<cmd>e ~/.zshrc<CR>");
vim.keymap.set("n", "<leader>fmt", function()
vim.lsp.buf.formatting_sync()
end)
Loading…
Cancel
Save