mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 06:40:25 +01:00
Ported todo file syntax highlighting from vim
This commit is contained in:
@@ -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 },
|
||||
})
|
||||
|
||||
@@ -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
|
||||
|
||||
1
.config/nvim/syntax/todo.vim
Symbolic link
1
.config/nvim/syntax/todo.vim
Symbolic link
@@ -0,0 +1 @@
|
||||
../../../.vim/syntax/todo.vim
|
||||
Reference in New Issue
Block a user