mirror of
https://github.com/pratiktri/dotfiles.git
synced 2026-02-04 08:41:43 +05:30
feat(neovim): AI and other quality of life improvements
- fix: session, conform, vim-illuminate, todo-comments, nvim-navbuddy, lspconfig plugins NOT on vscode - new: codeium, obsidian.nvim - Add codeium autocomplete - fix: todo-comments: Search in hidden files (dotfiles) - fix: trouble: wasn't working earlier - new: Switch buffer with <alt-1>..<alt-9> - chore: Better keybindings
This commit is contained in:
@@ -1,13 +1,17 @@
|
||||
-- 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,
|
||||
})
|
||||
if not vim.g.vscode then
|
||||
-- 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,
|
||||
})
|
||||
end
|
||||
|
||||
-- Enable spell check on markdown and text files
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
|
||||
Reference in New Issue
Block a user