This commit is contained in:
cool-mist
2024-02-16 15:23:45 +05:30
parent 307d5c0225
commit 72ae86a361
+13 -13
View File
@@ -28,15 +28,15 @@ V.g.mapleader = " "
local fresh_install_packer = function() local fresh_install_packer = function()
local packerpath = V.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim" local packerpath = V.fn.stdpath("data") .. "/site/pack/packer/start/packer.nvim"
if not V.loop.fs_stat(packerpath) then if not V.loop.fs_stat(packerpath) then
V.fn.system({ V.fn.system({
"git", "git",
"clone", "clone",
"--depth", "--depth",
"1", "1",
"https://github.com/wbthomason/packer.nvim.git", "https://github.com/wbthomason/packer.nvim.git",
packerpath, packerpath,
}) })
V.cmd [[packadd packer.nvim]] V.cmd [[packadd packer.nvim]]
return true return true
end end
return false return false
@@ -73,7 +73,7 @@ packer.startup(function(u)
u { u {
'VonHeikemen/lsp-zero.nvim', 'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x' branch = 'v2.x'
} }
-- Markdown -- Markdown
u 'godlygeek/tabular' u 'godlygeek/tabular'
@@ -99,7 +99,7 @@ packer.startup(function(u)
u 'folke/which-key.nvim' u 'folke/which-key.nvim'
if fresh_install then if fresh_install then
packer.sync() packer.sync()
end end
end) end)
@@ -169,13 +169,13 @@ V.cmd('let g:vim_markdown_json_frontmatter = 1')
V.cmd([[ V.cmd([[
augroup pandoc_syntax augroup pandoc_syntax
au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc au! BufNewFile,BufFilePre,BufRead *.md set filetype=markdown.pandoc
augroup END augroup END
]]) ]])
V.cmd([[ V.cmd([[
augroup pandoc_syntax augroup pandoc_syntax
au! BufNewFile,BufFilePre,BufRead *.markdown set filetype=markdown.pandoc au! BufNewFile,BufFilePre,BufRead *.markdown set filetype=markdown.pandoc
augroup END augroup END
]]) ]])