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,
|
||||
})
|
||||
|
||||
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",
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user