Add markdown preview plugin
This commit is contained in:
parent
049ce6e360
commit
40c7875779
1 changed files with 147 additions and 143 deletions
|
@ -17,7 +17,7 @@ require('packer').startup(function()
|
|||
local use = require('packer').use
|
||||
|
||||
-- The plugin manager itself
|
||||
use {'wbthomason/packer.nvim'}
|
||||
use { 'wbthomason/packer.nvim' }
|
||||
|
||||
-- Colorscheme
|
||||
use {
|
||||
|
@ -28,7 +28,7 @@ require('packer').startup(function()
|
|||
-- Statusline
|
||||
use {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
requires = {'kyazdani42/nvim-web-devicons', opt = true},
|
||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
||||
config = require('plugins.lualine')
|
||||
}
|
||||
|
||||
|
@ -67,9 +67,9 @@ require('packer').startup(function()
|
|||
'nvim-telescope/telescope.nvim',
|
||||
config = require('plugins.telescope'),
|
||||
requires = {
|
||||
{'nvim-lua/plenary.nvim'}, -- Internal dep for telescope
|
||||
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make'}, -- Use fzf for fuzzy finder
|
||||
{'nvim-telescope/telescope-ui-select.nvim'} -- Replace vim built in select with telescope
|
||||
{ 'nvim-lua/plenary.nvim' }, -- Internal dep for telescope
|
||||
{ 'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }, -- Use fzf for fuzzy finder
|
||||
{ 'nvim-telescope/telescope-ui-select.nvim' } -- Replace vim built in select with telescope
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -77,13 +77,13 @@ require('packer').startup(function()
|
|||
use 'lambdalisue/suda.vim'
|
||||
|
||||
-- Display possible keybinds
|
||||
use {'folke/which-key.nvim', config = require('plugins.which-key')}
|
||||
use { 'folke/which-key.nvim', config = require('plugins.which-key') }
|
||||
|
||||
-- Read editorconfig settings
|
||||
use 'editorconfig/editorconfig-vim'
|
||||
|
||||
-- Package manager for LSP servers, DAP servers etc.
|
||||
use {'williamboman/mason.nvim', config = require('plugins.mason').setup}
|
||||
use { 'williamboman/mason.nvim', config = require('plugins.mason').setup }
|
||||
|
||||
-- Install LSP server executables with Mason
|
||||
use {
|
||||
|
@ -92,7 +92,7 @@ require('packer').startup(function()
|
|||
}
|
||||
|
||||
-- Configs for built-in LSP
|
||||
use {'neovim/nvim-lspconfig', config = require('plugins.lspconfig').setup}
|
||||
use { 'neovim/nvim-lspconfig', config = require('plugins.lspconfig').setup }
|
||||
|
||||
-- Additional LSP features for Java
|
||||
use 'mfussenegger/nvim-jdtls'
|
||||
|
@ -103,23 +103,23 @@ require('packer').startup(function()
|
|||
-- Snippets plugin
|
||||
use {
|
||||
'L3MON4D3/LuaSnip',
|
||||
requires = {'rafamadriz/friendly-snippets'}, -- Snippets collection
|
||||
requires = { 'rafamadriz/friendly-snippets' }, -- Snippets collection
|
||||
config = require('plugins.luasnip')
|
||||
}
|
||||
|
||||
-- vim api documentation for lua lsp
|
||||
use {'ii14/emmylua-nvim'}
|
||||
use { 'ii14/emmylua-nvim' }
|
||||
|
||||
-- Completion
|
||||
use {
|
||||
'hrsh7th/nvim-cmp',
|
||||
requires = {
|
||||
{'hrsh7th/cmp-buffer'}, -- Buffer source
|
||||
{'petertriho/cmp-git', requires = "nvim-lua/plenary.nvim"}, -- Git source
|
||||
{'hrsh7th/cmp-nvim-lsp'}, -- LSP source
|
||||
{'hrsh7th/cmp-nvim-lua'}, -- Neovim Lua API documentation source
|
||||
{'hrsh7th/cmp-path'}, -- Path source
|
||||
{'saadparwaiz1/cmp_luasnip'} -- Snippets source
|
||||
{ 'hrsh7th/cmp-buffer' }, -- Buffer source
|
||||
{ 'petertriho/cmp-git', requires = "nvim-lua/plenary.nvim" }, -- Git source
|
||||
{ 'hrsh7th/cmp-nvim-lsp' }, -- LSP source
|
||||
{ 'hrsh7th/cmp-nvim-lua' }, -- Neovim Lua API documentation source
|
||||
{ 'hrsh7th/cmp-path' }, -- Path source
|
||||
{ 'saadparwaiz1/cmp_luasnip' } -- Snippets source
|
||||
},
|
||||
config = require('plugins.cmp')
|
||||
}
|
||||
|
@ -134,7 +134,7 @@ require('packer').startup(function()
|
|||
use {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
run = function()
|
||||
require('nvim-treesitter.install').update({with_sync = true})
|
||||
require('nvim-treesitter.install').update({ with_sync = true })
|
||||
end,
|
||||
config = require('plugins.treesitter')
|
||||
}
|
||||
|
@ -170,6 +170,10 @@ require('packer').startup(function()
|
|||
-- Vim <3 Asciidoctor
|
||||
use 'habamax/vim-asciidoctor'
|
||||
|
||||
-- Markdown preview plugin
|
||||
use({ "iamcco/markdown-preview.nvim", run = "cd app && npm install",
|
||||
setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" }, })
|
||||
|
||||
-- Edit GPG encrypted files transparently
|
||||
use 'jamessan/vim-gnupg'
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue