made cursor center on entering insert mode and commented out svelte autocommand
This commit is contained in:
@@ -27,12 +27,12 @@ vim.api.nvim_create_autocmd("VimEnter", {
|
|||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
-- vim.api.nvim_create_autocmd("FileType", {
|
||||||
pattern = { "svelte" },
|
-- pattern = { "svelte" },
|
||||||
callback = function()
|
-- callback = function()
|
||||||
vim.treesitter.start()
|
-- vim.treesitter.start()
|
||||||
end,
|
-- end,
|
||||||
})
|
-- })
|
||||||
|
|
||||||
local cursorline_group = vim.api.nvim_create_augroup("CursorLineControl", { clear = true })
|
local cursorline_group = vim.api.nvim_create_augroup("CursorLineControl", { clear = true })
|
||||||
|
|
||||||
@@ -80,3 +80,9 @@ vim.api.nvim_create_autocmd("User", {
|
|||||||
print("AutoSave disabled")
|
print("AutoSave disabled")
|
||||||
end,
|
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",
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user