1
0
mirror of https://codeberg.org/diginaut/dotfiles.git synced 2026-02-04 13:30:26 +01:00

Ported todo file syntax highlighting from vim

This commit is contained in:
2026-01-21 14:12:08 +01:00
parent e5b2f83f7b
commit 59f1dbec66
3 changed files with 6 additions and 1 deletions

View File

@@ -15,6 +15,8 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
end
vim.opt.rtp:prepend(lazypath)
vim.filetype.add({ extension = { todo = "todo" } })
-- Make sure to setup `mapleader` and `maplocalleader` before
-- loading lazy.nvim so that mappings are correct.
-- This is also a good place to setup other settings (vim.opt)
@@ -29,7 +31,7 @@ require("lazy").setup({
},
-- Configure any other settings here. See the documentation for more details.
-- colorscheme that will be used when installing plugins.
install = { colorscheme = { "kanagawa-dragon" } },
install = { colorscheme = { "bebop" } },
-- automatically check for plugin updates
checker = { enabled = true },
})

View File

@@ -22,6 +22,7 @@ return {
"html",
"toml",
"yaml",
"todo",
})
vim.api.nvim_create_autocmd("FileType", {
@@ -42,6 +43,7 @@ return {
"html",
"toml",
"yaml",
"todo",
},
callback = function()
-- syntax highlighting, provided by Neovim