refactor: automatically load keymaps, autocmds and options

This commit is contained in:
Folke Lemaitre 2023-01-03 23:51:57 +01:00
parent d224aea4a4
commit a15f44eb89
No known key found for this signature in database
GPG key ID: 41F8B1FBACAE2040
6 changed files with 40 additions and 16 deletions

View file

@ -1,3 +1,5 @@
-- This file is automatically loaded by plugins.config
-- Check if we need to reload the file when it changed
vim.api.nvim_create_autocmd({ "FocusGained", "TermClose", "TermLeave" }, { command = "checktime" })

View file

@ -1,3 +1,5 @@
-- This file is automatically loaded by plugins.config
-- Move to window using the <meta> movement keys
vim.keymap.set("n", "<A-left>", "<C-w>h")
vim.keymap.set("n", "<A-down>", "<C-w>j")

View file

@ -1,3 +1,5 @@
-- This file is automatically loaded by plugins.config
vim.opt.autowrite = true -- enable auto write
vim.opt.clipboard = "unnamedplus" -- sync with system clipboard
vim.opt.cmdheight = 1