make config more lightweight
This commit is contained in:
parent
c0ea7b465b
commit
9d922f8de5
16 changed files with 79 additions and 515 deletions
|
@ -21,8 +21,6 @@ vim.api.nvim_create_user_command("OP", function ()
|
|||
local selection = action_state.get_selected_entry()
|
||||
selection = selection[1]
|
||||
vim.cmd("cd $HOME/projects/" .. selection)
|
||||
vim.cmd("Alpha")
|
||||
vim.cmd("BWipeout other")
|
||||
end)
|
||||
return true
|
||||
end
|
||||
|
@ -46,8 +44,6 @@ vim.api.nvim_create_user_command("OCC", function ()
|
|||
local selection = action_state.get_selected_entry()
|
||||
selection = selection[1]
|
||||
vim.cmd("cd $HOME/projects/cc/" .. selection)
|
||||
vim.cmd("Alpha")
|
||||
vim.cmd("BWipeout other")
|
||||
end)
|
||||
return true
|
||||
end
|
||||
|
@ -71,8 +67,6 @@ vim.api.nvim_create_user_command("OD", function ()
|
|||
local selection = action_state.get_selected_entry()
|
||||
selection = selection[1]
|
||||
vim.cmd("cd " .. selection)
|
||||
vim.cmd("Alpha")
|
||||
vim.cmd("BWipeout other")
|
||||
end)
|
||||
return true
|
||||
end
|
||||
|
@ -81,12 +75,6 @@ end, {})
|
|||
|
||||
vim.api.nvim_create_user_command("Config", function ()
|
||||
vim.cmd("cd $HOME/.config/nvim")
|
||||
vim.cmd("Alpha")
|
||||
vim.cmd("BWipeout other")
|
||||
end, {})
|
||||
|
||||
vim.api.nvim_create_user_command("O", function ()
|
||||
require("oil").open_float(vim.fn.getcwd())
|
||||
end, {})
|
||||
|
||||
vim.api.nvim_create_user_command("RetabFile", function ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue