diff options
| -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",    }, | 
