tmpl
This commit is contained in:
@ -1,3 +1,3 @@
|
|||||||
set tabstop=2
|
set tabstop=10
|
||||||
set softtabstop=2
|
set softtabstop=10
|
||||||
set shiftwidth=2
|
set shiftwidth=10
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
" rainbow markdown
|
|
||||||
highlight h1 guifg=#50fa7b gui=bold
|
|
||||||
highlight _h1 guifg=#50fa7b gui=nocombine
|
|
||||||
highlight h2 guifg=#ff79c6 gui=bold
|
|
||||||
highlight _h2 guifg=#ff79c6 gui=nocombine
|
|
||||||
highlight h3 guifg=#ffb86c gui=bold
|
|
||||||
highlight _h3 guifg=#ffb86c gui=nocombine
|
|
||||||
highlight h4 guifg=#8be9fd gui=bold
|
|
||||||
highlight _h4 guifg=#8be9fd gui=nocombine
|
|
||||||
highlight h5 guifg=#f1fa8c gui=bold
|
|
||||||
highlight _h5 guifg=#f1fa8c gui=nocombine
|
|
@ -13,6 +13,7 @@ end
|
|||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim")
|
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim")
|
||||||
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim/lua")
|
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim/lua")
|
||||||
|
vim.opt.rtp:prepend(vim.env.HOME .. "/.vim/lua")
|
||||||
|
|
||||||
package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
|
package.path = package.path .. ";" .. vim.env.HOME .. "/.vim/lua/?.lua"
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
require("config.zip")
|
|
||||||
require("config.clipboard")
|
|
||||||
require("config.tmpl")
|
|
@ -5,13 +5,15 @@ vim.api.nvim_create_autocmd({ 'BufRead', 'BufNewFile' }, {
|
|||||||
local filename = vim.fn.expand('%:t')
|
local filename = vim.fn.expand('%:t')
|
||||||
local ext = filename:match('.*%.(.-)%.tmpl$')
|
local ext = filename:match('.*%.(.-)%.tmpl$')
|
||||||
|
|
||||||
-- Add more extension to syntax mappings here if you need to.
|
-- Add more extension to syntax mappings here if you need to.
|
||||||
local ext_filetypes = {
|
local ext_filetypes = {
|
||||||
go = 'go',
|
go = 'go',
|
||||||
html = 'html',
|
html = 'html',
|
||||||
md = 'markdown',
|
md = 'markdown',
|
||||||
yaml = 'yaml',
|
yaml = 'yaml',
|
||||||
yml = 'yaml',
|
yml = 'yaml',
|
||||||
|
-- cc = 'cpp',
|
||||||
|
-- h = 'cpp',
|
||||||
}
|
}
|
||||||
|
|
||||||
if ext and ext_filetypes[ext] then
|
if ext and ext_filetypes[ext] then
|
||||||
|
Reference in New Issue
Block a user