i need to get a job wtf even are these changes
This commit is contained in:
11
init.lua
11
init.lua
@@ -50,6 +50,17 @@ vim.cmd.colorscheme("catppuccin-mocha")
|
||||
-- Scrolloff
|
||||
vim.opt.scrolloff = math.floor(vim.o.lines / 2) - 3
|
||||
|
||||
-- Indent
|
||||
vim.o.autoindent = true
|
||||
-- Rebind 'i' to indent properly on empty lines
|
||||
vim.keymap.set("n", "i", function()
|
||||
if vim.fn.getline("."):match("^%s*$") then
|
||||
return [["_cc]]
|
||||
else
|
||||
return "i"
|
||||
end
|
||||
end, { expr = true, desc = "Indent properly on empty lines" })
|
||||
|
||||
-- Force proper keybindings
|
||||
vim.keymap.set("n", "<left>", '<cmd>echo "Use h to move!!"<CR>')
|
||||
vim.keymap.set("n", "<right>", '<cmd>echo "Use l to move!!"<CR>')
|
||||
|
||||
Reference in New Issue
Block a user