mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-05 00:41:44 +05:30
- Testing setup through neotest plugin - Spellcheck enabled on markdown and text files - Diagnosis summary through trouble plugin - Code completion keybindings improved - Auto-formatting through conform plugin - Reactjs context aware commenting through nvim-ts-context-commentstring - Auto HTML tag completion through nvim-ts-autotag - CSS color highlight through nvim-highlight-colors - Lualine: breadcrumbs, git status, single line - Auto restore neovim sessions - Better keyboard maps Shell - Aliases now load from .bashrc or .zshrc - Bash & zsh shortcuts to easy open and create projects - zoxide instead of cd when installed - bootstrap.sh shellhardened
21 lines
665 B
Lua
21 lines
665 B
Lua
-- Auto reload existing session
|
|
vim.api.nvim_create_autocmd("VimEnter", {
|
|
group = vim.api.nvim_create_augroup("restore_session", { clear = true }),
|
|
callback = function()
|
|
-- If nvim started with arguments, do NOT restore
|
|
if vim.fn.argc() ~= 0 then return end
|
|
require("persistence").load()
|
|
end,
|
|
nested = true,
|
|
})
|
|
|
|
-- Enable spell check on markdown and text files
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
group = vim.api.nvim_create_augroup("spell_check_text_files", { clear = true }),
|
|
pattern = { "markdown", "gitcommit", "text" },
|
|
callback = function()
|
|
vim.opt.spell = true
|
|
end,
|
|
nested = true,
|
|
})
|