nvim: improve MD syntax highlighting
This commit is contained in:
parent
f528b1f7d9
commit
7f5ccf072d
3 changed files with 24 additions and 0 deletions
|
@ -1,3 +1,14 @@
|
|||
vim.api.nvim_exec(
|
||||
[[
|
||||
autocmd BufRead,BufNewFile *.md set filetype=markdown
|
||||
]],
|
||||
false
|
||||
)
|
||||
|
||||
vim.cmd([[
|
||||
autocmd BufRead,BufNewFile *.md set syntax=markdown
|
||||
]])
|
||||
|
||||
require("thomas.plugins-setup")
|
||||
require("thomas.core.options")
|
||||
require("thomas.core.keymaps")
|
||||
|
|
|
@ -14,3 +14,8 @@ local function update_hl(group, tbl)
|
|||
end
|
||||
|
||||
update_hl("Function", { bold = true })
|
||||
update_hl("markdownH1", { bold = true })
|
||||
update_hl("markdownH2", { bold = true })
|
||||
update_hl("markdownH3", { bold = true })
|
||||
update_hl("markdownH4", { bold = true })
|
||||
update_hl("markdownH5", { bold = true })
|
||||
|
|
|
@ -31,9 +31,17 @@ return packer.startup(function(use)
|
|||
-- packer can manage itself
|
||||
|
||||
use("wbthomason/packer.nvim")
|
||||
use({
|
||||
"aspeddro/pandoc.nvim",
|
||||
config = function()
|
||||
require("pandoc").setup()
|
||||
end,
|
||||
})
|
||||
|
||||
-- git
|
||||
use("kdheepak/lazygit.nvim")
|
||||
use("tpope/vim-fugitive")
|
||||
use("tpope/vim-markdown")
|
||||
use("f-person/git-blame.nvim")
|
||||
use("lewis6991/gitsigns.nvim") -- show line modifications on left hand side
|
||||
use("joshdick/onedark.vim")
|
||||
|
|
Loading…
Add table
Reference in a new issue