♻️ refactor(full-scope)!: major revision refactoring
Code layout has been changed and improoved. Annotations are added for documentation. Automated through utility functions and data tables BREAKING CHANGE: Tested from clean. Now properly uses LuaRocks to install dependencies.
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
--- @module "config.autocmds"
|
||||
--- This module defines the autocommands for the Neovim configuration.
|
||||
-- ╭─────────────────────────────────────────────────────────╮
|
||||
-- │ Autocommands │
|
||||
-- ╰─────────────────────────────────────────────────────────╯
|
||||
@@ -52,6 +54,18 @@ autocmd({ "BufEnter", "FocusGained" }, {
|
||||
end,
|
||||
})
|
||||
|
||||
-- TodoFzfLua command override to use Telescope
|
||||
-- when fzf-lua is not installed
|
||||
autogrp("TodoFzfLua", { clear = true })
|
||||
autocmd({ "BufEnter" }, {
|
||||
group = "TodoFzfLua",
|
||||
callback = function()
|
||||
if not pcall(require, "fzf-lua") then
|
||||
vim.cmd([[command! -nargs=* TodoFzfLua :TodoTelescope]])
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- Set up autocommands and highlight settings
|
||||
local load_highlight = require("utils.highlight")
|
||||
load_highlight.setup_autocommands()
|
||||
|
||||
Reference in New Issue
Block a user