Compare commits
3 Commits
2b5bb82374
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e0f079c53 | |||
| 63853fc7c5 | |||
| ce3c64b2b0 |
@@ -44,7 +44,7 @@
|
|||||||
tree-sitter
|
tree-sitter
|
||||||
ripgrep
|
ripgrep
|
||||||
gcc
|
gcc
|
||||||
cargo
|
cargo
|
||||||
fzf
|
fzf
|
||||||
gnumake
|
gnumake
|
||||||
imagemagick
|
imagemagick
|
||||||
|
|||||||
@@ -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,11 @@ 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", {
|
||||||
|
callback = function()
|
||||||
|
vim.cmd("normal! zz")
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|||||||
@@ -14,7 +14,6 @@ Keymap("n", "<leader>bd", function() -- delete buffer
|
|||||||
end)
|
end)
|
||||||
|
|
||||||
for _, bind in ipairs({ "i", "a", "A", "I" }) do
|
for _, bind in ipairs({ "i", "a", "A", "I" }) do
|
||||||
-- Pass { expr = true } as the fourth argument
|
|
||||||
Keymap("n", bind, function()
|
Keymap("n", bind, function()
|
||||||
if vim.fn.getline("."):match("^%s*$") then
|
if vim.fn.getline("."):match("^%s*$") then
|
||||||
return [["_cc]]
|
return [["_cc]]
|
||||||
|
|||||||
Reference in New Issue
Block a user