Nvim: Add ASCIIDoc preview plugin
This commit is contained in:
parent
bb0330912e
commit
97267f948c
1 changed files with 161 additions and 158 deletions
|
@ -1,200 +1,203 @@
|
||||||
-- Install lazy if it's not yet installed
|
-- Install lazy if it's not yet installed
|
||||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||||
if not vim.loop.fs_stat(lazypath) then
|
if not vim.loop.fs_stat(lazypath) then
|
||||||
vim.fn.system({
|
vim.fn.system({
|
||||||
"git",
|
"git",
|
||||||
"clone",
|
"clone",
|
||||||
"--filter=blob:none",
|
"--filter=blob:none",
|
||||||
"https://github.com/folke/lazy.nvim.git",
|
"https://github.com/folke/lazy.nvim.git",
|
||||||
"--branch=stable", -- latest stable release
|
"--branch=stable", -- latest stable release
|
||||||
lazypath,
|
lazypath,
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
vim.opt.rtp:prepend(lazypath)
|
vim.opt.rtp:prepend(lazypath)
|
||||||
|
|
||||||
-- Configure lazy
|
-- Configure lazy
|
||||||
local plugins = {
|
local plugins = {
|
||||||
-- Colorscheme
|
-- Colorscheme
|
||||||
{
|
{
|
||||||
"rebelot/kanagawa.nvim",
|
"rebelot/kanagawa.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
vim.cmd("colorscheme kanagawa")
|
vim.cmd("colorscheme kanagawa")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Statusline
|
-- Statusline
|
||||||
{
|
{
|
||||||
"nvim-lualine/lualine.nvim",
|
"nvim-lualine/lualine.nvim",
|
||||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Git status in signcolumn
|
-- Git status in signcolumn
|
||||||
{
|
{
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Tabline/bufferline
|
-- Tabline/bufferline
|
||||||
{
|
{
|
||||||
"akinsho/bufferline.nvim",
|
"akinsho/bufferline.nvim",
|
||||||
version = "v3.*",
|
version = "v3.*",
|
||||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Git commands
|
-- Git commands
|
||||||
"tpope/vim-fugitive",
|
"tpope/vim-fugitive",
|
||||||
|
|
||||||
-- Indent characters
|
-- Indent characters
|
||||||
{
|
{
|
||||||
"lukas-reineke/indent-blankline.nvim",
|
"lukas-reineke/indent-blankline.nvim",
|
||||||
config = require("plugins.indent-blankline"),
|
config = require("plugins.indent-blankline"),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Tree explorer
|
-- Tree explorer
|
||||||
{
|
{
|
||||||
"kyazdani42/nvim-tree.lua",
|
"kyazdani42/nvim-tree.lua",
|
||||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||||
config = require("plugins.nvim-tree"),
|
config = require("plugins.nvim-tree"),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
config = require("plugins.telescope"),
|
config = require("plugins.telescope"),
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/plenary.nvim", -- Internal dep for telescope
|
"nvim-lua/plenary.nvim", -- Internal dep for telescope
|
||||||
-- Use fzf for fuzzy finder
|
-- Use fzf for fuzzy finder
|
||||||
{
|
{
|
||||||
"nvim-telescope/telescope-fzf-native.nvim",
|
"nvim-telescope/telescope-fzf-native.nvim",
|
||||||
build = "make",
|
build = "make",
|
||||||
},
|
},
|
||||||
"nvim-telescope/telescope-ui-select.nvim", -- Replace vim built in select with telescope
|
"nvim-telescope/telescope-ui-select.nvim", -- Replace vim built in select with telescope
|
||||||
"zane-/cder.nvim", -- cd plugin for telescope
|
"zane-/cder.nvim", -- cd plugin for telescope
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Do stuff as sudo
|
-- Do stuff as sudo
|
||||||
"lambdalisue/suda.vim",
|
"lambdalisue/suda.vim",
|
||||||
|
|
||||||
-- Display possible keybinds
|
-- Display possible keybinds
|
||||||
{ "folke/which-key.nvim", config = true },
|
{ "folke/which-key.nvim", config = true },
|
||||||
|
|
||||||
-- Read editorconfig settings
|
-- Read editorconfig settings
|
||||||
"editorconfig/editorconfig-vim",
|
"editorconfig/editorconfig-vim",
|
||||||
|
|
||||||
-- Package manager for LSP servers, DAP adapters etc.
|
-- Package manager for LSP servers, DAP adapters etc.
|
||||||
{ "williamboman/mason.nvim", config = true },
|
{ "williamboman/mason.nvim", config = true },
|
||||||
|
|
||||||
-- Install LSP server executables with Mason
|
-- Install LSP server executables with Mason
|
||||||
{
|
{
|
||||||
"williamboman/mason-lspconfig.nvim",
|
"williamboman/mason-lspconfig.nvim",
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Configs for built-in LSP
|
-- Configs for built-in LSP
|
||||||
{ "neovim/nvim-lspconfig", config = require("plugins.lspconfig").setup },
|
{ "neovim/nvim-lspconfig", config = require("plugins.lspconfig").setup },
|
||||||
|
|
||||||
-- Additional LSP features for Java
|
-- Additional LSP features for Java
|
||||||
"mfussenegger/nvim-jdtls",
|
"mfussenegger/nvim-jdtls",
|
||||||
|
|
||||||
-- DAP plugin
|
-- DAP plugin
|
||||||
{ "mfussenegger/nvim-dap", config = require("plugins.dap") },
|
{ "mfussenegger/nvim-dap", config = require("plugins.dap") },
|
||||||
|
|
||||||
-- Display function signature
|
-- Display function signature
|
||||||
"ray-x/lsp_signature.nvim",
|
"ray-x/lsp_signature.nvim",
|
||||||
|
|
||||||
-- Snippets plugin
|
-- Snippets plugin
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
dependencies = { "rafamadriz/friendly-snippets" }, -- Snippets collection
|
dependencies = { "rafamadriz/friendly-snippets" }, -- Snippets collection
|
||||||
config = require("plugins.luasnip"),
|
config = require("plugins.luasnip"),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- vim api documentation for lua lsp
|
-- vim api documentation for lua lsp
|
||||||
"ii14/emmylua-nvim",
|
"ii14/emmylua-nvim",
|
||||||
|
|
||||||
-- Completion
|
-- Completion
|
||||||
{
|
{
|
||||||
"hrsh7th/nvim-cmp",
|
"hrsh7th/nvim-cmp",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"hrsh7th/cmp-buffer", -- Buffer source
|
"hrsh7th/cmp-buffer", -- Buffer source
|
||||||
{ "petertriho/cmp-git", dependencies = { "nvim-lua/plenary.nvim" } }, -- Git source
|
{ "petertriho/cmp-git", dependencies = { "nvim-lua/plenary.nvim" } }, -- Git source
|
||||||
"hrsh7th/cmp-nvim-lsp", -- LSP source
|
"hrsh7th/cmp-nvim-lsp", -- LSP source
|
||||||
"hrsh7th/cmp-nvim-lua", -- Neovim Lua API documentation source
|
"hrsh7th/cmp-nvim-lua", -- Neovim Lua API documentation source
|
||||||
"hrsh7th/cmp-path", -- Path source
|
"hrsh7th/cmp-path", -- Path source
|
||||||
"hrsh7th/cmp-cmdline", -- cmdline source
|
"hrsh7th/cmp-cmdline", -- cmdline source
|
||||||
"saadparwaiz1/cmp_luasnip", -- Snippets source
|
"saadparwaiz1/cmp_luasnip", -- Snippets source
|
||||||
"f3fora/cmp-spell", -- Spell check source
|
"f3fora/cmp-spell", -- Spell check source
|
||||||
},
|
},
|
||||||
config = require("plugins.cmp"),
|
config = require("plugins.cmp"),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Automatic brackets
|
-- Automatic brackets
|
||||||
{
|
{
|
||||||
"windwp/nvim-autopairs",
|
"windwp/nvim-autopairs",
|
||||||
config = true,
|
config = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- treesitter
|
-- treesitter
|
||||||
{
|
{
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
build = function()
|
build = function()
|
||||||
require("nvim-treesitter.install").update({ with_sync = true })
|
require("nvim-treesitter.install").update({ with_sync = true })
|
||||||
end,
|
end,
|
||||||
config = require("plugins.treesitter"),
|
config = require("plugins.treesitter"),
|
||||||
},
|
},
|
||||||
|
|
||||||
-- treesitter plugin for commentstring
|
-- treesitter plugin for commentstring
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
|
|
||||||
-- mappings for commenting in code
|
-- mappings for commenting in code
|
||||||
"tpope/vim-commentary",
|
"tpope/vim-commentary",
|
||||||
|
|
||||||
-- we all know this one
|
-- we all know this one
|
||||||
"tpope/vim-surround",
|
"tpope/vim-surround",
|
||||||
|
|
||||||
-- Formatter plugin
|
-- Formatter plugin
|
||||||
"sbdchd/neoformat",
|
"sbdchd/neoformat",
|
||||||
|
|
||||||
-- Make editing passwords safer
|
-- Make editing passwords safer
|
||||||
{
|
{
|
||||||
"https://git.zx2c4.com/password-store",
|
"https://git.zx2c4.com/password-store",
|
||||||
config = function(plugin)
|
config = function(plugin)
|
||||||
vim.opt.rtp:append(plugin.dir .. "contrib/vim/redact_pass.vim")
|
vim.opt.rtp:append(plugin.dir .. "contrib/vim/redact_pass.vim")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Neovim inside Firefox
|
-- Neovim inside Firefox
|
||||||
{
|
{
|
||||||
"glacambre/firenvim",
|
"glacambre/firenvim",
|
||||||
build = function()
|
build = function()
|
||||||
vim.fn["firenvim#install"](0)
|
vim.fn["firenvim#install"](0)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
-- Vim <3 Asciidoctor
|
-- Vim <3 Asciidoctor
|
||||||
"habamax/vim-asciidoctor",
|
"habamax/vim-asciidoctor",
|
||||||
|
|
||||||
-- Markdown preview
|
-- Asciidoc preview
|
||||||
{
|
{ "tigion/nvim-asciidoc-preview", ft = { "asciidoctor" } },
|
||||||
"iamcco/markdown-preview.nvim",
|
|
||||||
build = "cd app && npm install",
|
|
||||||
config = function()
|
|
||||||
vim.g.mkdp_filetypes = { "markdown" }
|
|
||||||
end,
|
|
||||||
ft = { "markdown" },
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Edit GPG encrypted files transparently
|
-- Markdown preview
|
||||||
"jamessan/vim-gnupg",
|
{
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
build = "cd app && npm install",
|
||||||
|
config = function()
|
||||||
|
vim.g.mkdp_filetypes = { "markdown" }
|
||||||
|
end,
|
||||||
|
ft = { "markdown" },
|
||||||
|
},
|
||||||
|
|
||||||
-- High performance color highlighter
|
-- Edit GPG encrypted files transparently
|
||||||
{
|
"jamessan/vim-gnupg",
|
||||||
"norcalli/nvim-colorizer.lua",
|
|
||||||
config = true,
|
-- High performance color highlighter
|
||||||
},
|
{
|
||||||
|
"norcalli/nvim-colorizer.lua",
|
||||||
|
config = true,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
local lazy_opts = {}
|
local lazy_opts = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue