diff options
author | max397574 <[email protected]> | 2021-10-24 13:59:05 +0200 |
---|---|---|
committer | max397574 <[email protected]> | 2021-10-24 13:59:05 +0200 |
commit | 41b767ecf8f533baf277857503e2fd8bdccc757f (patch) | |
tree | 484485da05d9e47ee6260a2eb4f6bef15e86858a | |
parent | 3df5b7007fb7611dea5a460929e2b156d955fbb4 (diff) |
feat(plugin): ✨expose mappings
-rw-r--r-- | lua/startup.lua | 8 | ||||
-rw-r--r-- | lua/startup/themes/default.lua | 6 |
2 files changed, 10 insertions, 4 deletions
diff --git a/lua/startup.lua b/lua/startup.lua index 4aea5e0..87bf597 100644 --- a/lua/startup.lua +++ b/lua/startup.lua @@ -59,28 +59,28 @@ local function create_mappings(mappings) vim.api.nvim_buf_set_keymap( 0, "n", - "<CR>", + settings.mappings.execute_command, ":lua require'startup'.check_line()<CR>", opts ) vim.api.nvim_buf_set_keymap( 0, "n", - "o", + settings.mappings.open_file, "<cmd>lua require('startup').open_file()<CR>", opts ) vim.api.nvim_buf_set_keymap( 0, "n", - "<tab>", + settings.mappings.open_section, "<cmd>lua require'startup'.open_section()<CR>", opts ) vim.api.nvim_buf_set_keymap( 0, "n", - "<c-o>", + settings.mappings.open_file_split, "<cmd>lua require('startup').open_file_vsplit()<CR>", opts ) diff --git a/lua/startup/themes/default.lua b/lua/startup/themes/default.lua index e319a7a..407cdba 100644 --- a/lua/startup/themes/default.lua +++ b/lua/startup/themes/default.lua @@ -50,6 +50,12 @@ local settings = { empty_lines_between_mappings = true, paddings = { 1, 3, 3, 0 }, }, + mappings = { + execute_command = "<CR>", + open_file = "o", + open_file_split = "<c-o>", + open_section = "<TAB>", + }, colors = { background = "#1f2227", }, |