diff --git a/nvim/lua/keybinds.lua b/nvim/lua/keybinds.lua index 3f804f7..d91858e 100755 --- a/nvim/lua/keybinds.lua +++ b/nvim/lua/keybinds.lua @@ -14,18 +14,20 @@ end -- Move lines up and down vim.api.nvim_set_keymap('n', '', ':m .-2==', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', ':m .+1==', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':m .-2i', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':m .+1i', { noremap = true, silent = true }) -- Move lines in insert mode vim.api.nvim_set_keymap('i', '', ':m .-2i', { noremap = true, silent = true }) vim.api.nvim_set_keymap('i', '', ':m .+1i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':m .-2i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':m .+1i', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('i', '', ':m .-2i', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('i', '', ':m .+1i', { noremap = true, silent = true }) -- Copy lines up and down in normal mode vim.api.nvim_set_keymap('n', '', ':t .-1', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', ':t .-1', { noremap = true, silent = true }) vim.api.nvim_set_keymap('n', '', ':t .-1', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':t .+1', { noremap = true, silent = true }) +vim.api.nvim_set_keymap('n', '', ':t .', { noremap = true, silent = true }) -- Copy lines up and down in insert mode vim.api.nvim_set_keymap('i', '', ':t.-1i', { noremap = true, silent = true }) @@ -66,8 +68,8 @@ keymap.set('n', 'm', ':MarkdownPreview', opts("Preview Markd -- window navigation keymap.set("n", "", "h", opts()) -keymap.set("n", "", "j", opts()) -keymap.set("n", "", "k", opts()) +keymap.set("n", "", "j", opts()) +keymap.set("n", "", "k", opts()) keymap.set("n", "", "l", opts()) -- window resize diff --git a/nvim/lua/plugins/startup.lua b/nvim/lua/plugins/startup.lua index 5fe3797..246dafc 100755 --- a/nvim/lua/plugins/startup.lua +++ b/nvim/lua/plugins/startup.lua @@ -29,7 +29,16 @@ return { quotes = { type = "text", align = "center", - content = {[["It's not as hard as it looks..."]]}, + content = function () + local handle = io.popen("pwd") + if handle then + local cwd = handle:read("*l") + handle:close() + return {"Currently in " .. cwd} + else + return {"Error running command"} + end + end, highlight = "String", default_color = "#FFFFFF" },