mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-26 05:04:34 +00:00
Use proper syntax highlighting in fenced codeblocks
This commit is contained in:
parent
03431e5bc4
commit
9625f2b951
|
@ -1,5 +1,6 @@
|
||||||
local vim = require("vim")
|
local vim = require("vim")
|
||||||
local cmd = vim.cmd
|
local cmd = vim.cmd
|
||||||
|
local g = vim.g
|
||||||
local o = vim.opt
|
local o = vim.opt
|
||||||
|
|
||||||
cmd[[syntax on]] -- Turn on syntax highlighting
|
cmd[[syntax on]] -- Turn on syntax highlighting
|
||||||
|
@ -33,3 +34,6 @@ augroup END
|
||||||
|
|
||||||
-- Don't use true colors in TTY
|
-- Don't use true colors in TTY
|
||||||
o.termguicolors = os.getenv("DISPLAY") and true or false
|
o.termguicolors = os.getenv("DISPLAY") and true or false
|
||||||
|
|
||||||
|
-- Use proper syntax highlighting in fenced codeblocks
|
||||||
|
g.markdown_fenced_languages = {"html", "javascript", "typescript", "css", "scss", "lua", "vim", "python"}
|
||||||
|
|
Loading…
Reference in a new issue