nvim-dots/lua/plugins/init.lua
2025-08-17 20:18:45 +06:00

179 lines
5.4 KiB
Lua

return {
-- "neovim/nvim-lspconfig",
-- "hrsh7th/nvim-cmp",
-- "hrsh7th/cmp-nvim-lsp",
-- "saadparwaiz1/cmp_luasnip",
"L3MON4D3/LuaSnip",
-- "neoclide/coc.nvim",
-- {
-- "neoclide/coc.nvim",
-- branch = "release",
-- config = function()
-- vim.keymap.set('n', "J", "<cmd>call CocAction('doHover')<cr>", { silent = true })
-- end
-- },
-- "mfussenegger/nvim-jdtls",
-- "vim-airline/vim-airline",
"preservim/nerdtree",
-- "tpope/vim-commentary",
"preservim/tagbar",
"yuttie/comfortable-motion.vim",
"ryanoasis/vim-devicons",
"ap/vim-css-color",
-- {
-- -- Install markdown preview, use npx if available.
-- "iamcco/markdown-preview.nvim",
-- cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" },
-- ft = { "markdown" },
-- build = function(plugin)
-- if vim.fn.executable "npx" then
-- vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install")
-- else
-- vim.cmd [[Lazy load markdown-preview.nvim]]
-- vim.fn["mkdp#util#install"]()
-- end
-- end,
-- init = function()
-- if vim.fn.executable "npx" then vim.g.mkdp_filetypes = { "markdown" } end
-- end,
-- },
-- {
-- 'iamcco/markdown-preview.nvim',
-- cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
-- ft = { 'markdown' },
-- build = function()
-- vim.fn['mkdp#util#install']()
-- end,
-- },
{
"iamcco/markdown-preview.nvim",
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
ft = { 'markdown' },
build = function()
vim.cmd [[Lazy load markdown-preview.nvim]]
vim.fn['mkdp#util#install']()
end,
},
{
"toppair/peek.nvim",
event = { "VeryLazy" },
build = "deno task build:fast",
config = function()
require("peek").setup({app="firefox"})
vim.api.nvim_create_user_command("PeekOpen", require("peek").open, {})
vim.api.nvim_create_user_command("PeekClose", require("peek").close, {})
end,
opts = {
app = 'firefox',
filetype = { 'markdown' },
},
},
"bfredl/nvim-luadev",
{
"vimwiki/vimwiki",
init = function ()
vim.cmd[[
let g:vimwiki_list = [{'path': '~/vimwiki/',
\ 'syntax': 'markdown', 'ext': 'md'}]
]]
end
},
-- {
-- 'MeanderingProgrammer/render-markdown.nvim',
-- dependencies = { 'nvim-treesitter/nvim-treesitter', 'nvim-tree/nvim-web-devicons' }, -- if you prefer nvim-web-devicons
-- ---@module 'render-markdown'
-- ---@type render.md.UserConfig
-- opts = {
-- link = {
-- enabled = true,
-- render_modes = false,
-- footnote = {
-- enabled = true,
-- superscript = true,
-- prefix = '',
-- suffix = '',
-- },
-- image = '󰥶 ',
-- email = '󰀓 ',
-- hyperlink = '󰌹 ',
-- highlight = 'RenderMarkdownLink',
-- },
-- pipe_table = { cell = 'trimmed' },
-- },
-- },
"mattn/calendar-vim",
"Shougo/unite.vim",
"powerman/vim-plugin-AnsiEsc",
"preservim/tagbar",
{
"folke/which-key.nvim",
event = "VeryLazy",
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
},
keys = {
{
"<leader>?",
function()
require("which-key").show({ global = false })
end,
desc = "Buffer Local Keymaps (which-key)",
},
},
},
{
'windwp/nvim-autopairs',
event = "InsertEnter",
config = true
},
"HerringtonDarkholme/yats.vim",
"posva/vim-vue",
"tpope/vim-fugitive",
"dylanaraps/wal.vim",
"xuhdev/vim-latex-live-preview",
"lervag/vimtex",
"mattn/emmet-vim",
"nvie/vim-flake8",
"https://gitlab.com/HiPhish/pycodestyle.nvim",
"nvim-lua/plenary.nvim",
{
"nvim-treesitter/nvim-treesitter",
init = function ()
require'nvim-treesitter.configs'.setup {
-- A list of parser names, or "all" (the listed parsers MUST always be installed)
ensure_installed = {"rust"},
}
end
},
"antoinemadec/FixCursorHold.nvim",
"nvim-neotest/neotest",
-- "nvim-lua/completion-nvim",
-- "neoclide/coc-snippets",
"morhetz/gruvbox",
"mhartington/oceanic-next",
"kaicataldo/material.vim",
"yuezk/vim-js",
"maxmellon/vim-jsx-pretty",
{
"airblade/vim-gitgutter",
config = function ()
-- disable because I already have Gitsigns
vim.cmd[[GitGutterBufferDisable]]
end
},
{
"kylechui/nvim-surround",
version = "^3.0.0", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}
}