Compare commits

...

2 Commits

2 changed files with 13 additions and 7 deletions

View File

@@ -27,12 +27,12 @@ vim.api.nvim_create_autocmd("VimEnter", {
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = { "svelte" },
callback = function()
vim.treesitter.start()
end,
})
-- vim.api.nvim_create_autocmd("FileType", {
-- pattern = { "svelte" },
-- callback = function()
-- vim.treesitter.start()
-- end,
-- })
local cursorline_group = vim.api.nvim_create_augroup("CursorLineControl", { clear = true })
@@ -80,3 +80,9 @@ vim.api.nvim_create_autocmd("User", {
print("AutoSave disabled")
end,
})
-- Center cursor on screen whenver insert mode is activated
-- (Stops fucky wucky shit with scrollEOF)
vim.api.nvim_create_autocmd("InsertEnter", {
command = "normal! zz",
})

View File

@@ -13,7 +13,7 @@ Keymap("n", "<leader>bd", function() -- delete buffer
vim.cmd("echo 'Buffer deleted'")
end)
for _, bind in ipairs({ "i", "a", "A" }) do
for _, bind in ipairs({ "i", "a", "A", "I" }) do
-- Pass { expr = true } as the fourth argument
Keymap("n", bind, function()
if vim.fn.getline("."):match("^%s*$") then