init.lua/lua/plugins/core.lua(view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 |
---@type LazySpec[]
return {
"nvim-lua/plenary.nvim",
"kyazdani42/nvim-web-devicons",
{ "tpope/vim-surround", keys = { "c", "d", "y" } },
{ "tpope/vim-repeat", event = "VeryLazy" },
{ "tweekmonster/helpful.vim", cmd = "HelpfulVersion" },
{ "wakatime/vim-wakatime", event = "VeryLazy" },
{
"folke/tokyonight.nvim",
lazy = false,
opts = { style = "night" },
init = function()
vim.cmd.colorscheme "tokyonight"
end,
},
{
"oysandvik94/curl.nvim",
opts = { default_flags = { "-i" } },
cmd = { "CurlOpen" },
},
{
"folke/todo-comments.nvim",
event = "BufRead",
config = function()
require("todo-comments").setup {}
require("telescope").load_extension "todo-comments"
end,
},
{
"windwp/nvim-autopairs",
event = "InsertEnter",
opts = {
check_ts = true,
disable_filetype = { "TelescopePrompt", "markdown" },
},
},
{
"JoosepAlviste/nvim-ts-context-commentstring",
lazy = false,
init = function()
local get_option = vim.filetype.get_option
vim.filetype.get_option = function(filetype, option) ---@diagnostic disable-line: duplicate-set-field
-- stylua: ignore
return option == "commentstring"
and require("ts_context_commentstring.internal").calculate_commentstring()
or get_option(filetype, option)
end
end,
},
}
|