mirror of
https://codeberg.org/diginaut/dotfiles.git
synced 2026-02-04 07:40:27 +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
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
|
vim.filetype.add({ extension = { todo = "todo" } })
|
||||||
|
|
||||||
-- Make sure to setup `mapleader` and `maplocalleader` before
|
-- Make sure to setup `mapleader` and `maplocalleader` before
|
||||||
-- loading lazy.nvim so that mappings are correct.
|
-- loading lazy.nvim so that mappings are correct.
|
||||||
-- This is also a good place to setup other settings (vim.opt)
|
-- 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.
|
-- Configure any other settings here. See the documentation for more details.
|
||||||
-- colorscheme that will be used when installing plugins.
|
-- colorscheme that will be used when installing plugins.
|
||||||
install = { colorscheme = { "kanagawa-dragon" } },
|
install = { colorscheme = { "bebop" } },
|
||||||
-- automatically check for plugin updates
|
-- automatically check for plugin updates
|
||||||
checker = { enabled = true },
|
checker = { enabled = true },
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -22,6 +22,7 @@ return {
|
|||||||
"html",
|
"html",
|
||||||
"toml",
|
"toml",
|
||||||
"yaml",
|
"yaml",
|
||||||
|
"todo",
|
||||||
})
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("FileType", {
|
vim.api.nvim_create_autocmd("FileType", {
|
||||||
@@ -42,6 +43,7 @@ return {
|
|||||||
"html",
|
"html",
|
||||||
"toml",
|
"toml",
|
||||||
"yaml",
|
"yaml",
|
||||||
|
"todo",
|
||||||
},
|
},
|
||||||
callback = function()
|
callback = function()
|
||||||
-- syntax highlighting, provided by Neovim
|
-- 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