chore(nvim): unify plugin comments

This commit is contained in:
Stefan Imhoff
2022-11-06 10:04:17 +01:00
parent aaccccd235
commit b48b6d4f86
38 changed files with 57 additions and 53 deletions

View File

@@ -1,2 +1,3 @@
" https://github.com/tpope/vim-abolish
Abolish teh the
Abolish {despa,sepe}rat{e,es,ed,ing,ely,ion,ions,or} {despe,sepa}rat{}

View File

@@ -1,4 +1,4 @@
-- alpha-nvim https://github.com/goolord/alpha-nvim
-- https://github.com/goolord/alpha-nvim
local status_ok, alpha = pcall(require, "alpha")
if not status_ok then
return

View File

@@ -1,3 +1,3 @@
-- Astro https://github.com/wuelnerdotexe/vim-astro
-- https://github.com/wuelnerdotexe/vim-astro
vim.g.astro_typescript = "enable"

View File

@@ -1,4 +1,4 @@
-- nvim-autopairs https://github.com/windwp/nvim-autopairs
-- https://github.com/windwp/nvim-autopairs
local status_ok, autopairs = pcall(require, "nvim-autopairs")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- nvim-ts-autotag https://github.com/windwp/nvim-ts-autotag
-- https://github.com/windwp/nvim-ts-autotag
local status_ok, autotag = pcall(require, "nvim-ts-autotag")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- blamer.vim https://github.com/APZelos/blamer.nvim
-- https://github.com/APZelos/blamer.nvim
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }

View File

@@ -1,4 +1,4 @@
-- bufferline.nvim https://github.com/akinsho/bufferline.nvim
-- https://github.com/akinsho/bufferline.nvim
local status_ok, bufferline = pcall(require, "bufferline")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- Catppuccin Theme https://github.com/catppuccin/catppuccin
-- https://github.com/catppuccin/catppuccin
local status_ok, catppucin = pcall(require, "catppuccin")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- nvim-cmp https://github.com/hrsh7th/nvim-cmp
-- https://github.com/hrsh7th/nvim-cmp
local cmp_status_ok, cmp = pcall(require, "cmp")
if not cmp_status_ok then
return

View File

@@ -1,4 +1,4 @@
-- codewindow.nvim https://github.com/gorbit99/codewindow.nvim
-- https://github.com/gorbit99/codewindow.nvim
local status, codewindow = pcall(require, "codewindow")
if not status then
return

View File

@@ -1,4 +1,4 @@
-- colorizer.lua https://github.com/norcalli/nvim-colorizer.lua
-- https://github.com/norcalli/nvim-colorizer.lua
local status, colorizer = pcall(require, "colorizer")
if not status then
return

View File

@@ -1,23 +1,23 @@
-- Comment.nvim https://github.com/numToStr/comment.nvim
-- https://github.com/numToStr/comment.nvim
local status_ok, comment = pcall(require, "Comment")
if not status_ok then
return
return
end
comment.setup {
pre_hook = function(ctx)
local U = require "Comment.utils"
comment.setup({
pre_hook = function(ctx)
local U = require("Comment.utils")
local location = nil
if ctx.ctype == U.ctype.block then
location = require("ts_context_commentstring.utils").get_cursor_location()
elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then
location = require("ts_context_commentstring.utils").get_visual_start_location()
end
local location = nil
if ctx.ctype == U.ctype.block then
location = require("ts_context_commentstring.utils").get_cursor_location()
elseif ctx.cmotion == U.cmotion.v or ctx.cmotion == U.cmotion.V then
location = require("ts_context_commentstring.utils").get_visual_start_location()
end
return require("ts_context_commentstring.internal").calculate_commentstring {
key = ctx.ctype == U.ctype.line and "__default" or "__multiline",
location = location,
}
end
}
return require("ts_context_commentstring.internal").calculate_commentstring({
key = ctx.ctype == U.ctype.line and "__default" or "__multiline",
location = location,
})
end,
})

View File

@@ -1,4 +1,4 @@
-- nvim-treesitter-context https://github.com/nvim-treesitter/nvim-treesitter-context
-- https://github.com/nvim-treesitter/nvim-treesitter-context
local status_ok, context = pcall(require, "treesitter-context")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- nvim-cursorline https://github.com/yamatsum/nvim-cursorline
-- https://github.com/yamatsum/nvim-cursorline
local status, cursorline = pcall(require, "nvim-cursorline")
if not status then
return

View File

@@ -1,4 +1,4 @@
--- export-to-vscode.nvim https://github.com/elijahmanor/export-to-vscode.nvim
--- https://github.com/elijahmanor/export-to-vscode.nvim
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }

View File

@@ -1,4 +1,4 @@
-- fzf-lua https://github.com/ibhagwan/fzf-lua
-- https://github.com/ibhagwan/fzf-lua
local cmp_status_ok, fzf_lua = pcall(require, "fzf-lua")
if not cmp_status_ok then
return

View File

@@ -1,4 +1,4 @@
-- git-worktree.nvim https://github.com/ThePrimeagen/git-worktree.nvim
-- https://github.com/ThePrimeagen/git-worktree.nvim
local cmp_status_ok, worktree = pcall(require, "git-worktree")
if not cmp_status_ok then
return

View File

@@ -1,4 +1,4 @@
-- gitsigns.nvim https://github.com/lewis6991/gitsigns.nvim
-- https://github.com/lewis6991/gitsigns.nvim
local status_ok, gitsigns = pcall(require, "gitsigns")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- Harpoon https://github.com/ThePrimeagen/harpoon
-- https://github.com/ThePrimeagen/harpoon
local status, harpoon = pcall(require, "harpoon")
if not status then
return

View File

@@ -1,7 +1,7 @@
-- impatient.nvim https://github.com/lewis6991/impatient.nvim
-- https://github.com/lewis6991/impatient.nvim
local status_ok, impatient = pcall(require, "impatient")
if not status_ok then
return
return
end
impatient.enable_profile()

View File

@@ -1,4 +1,4 @@
-- Indent Blankline https://github.com/lukas-reineke/indent-blankline.nvim
-- https://github.com/lukas-reineke/indent-blankline.nvim
local status_ok, indent_blankline = pcall(require, "indent_blankline")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- lualine.nvim https://github.com/nvim-lualine/lualine.nvim
-- https://github.com/nvim-lualine/lualine.nvim
local status, lualine = pcall(require, "lualine")
if not status then
return

View File

@@ -1,4 +1,4 @@
-- Neoscroll https://github.com/karb94/neoscroll.nvim
-- https://github.com/karb94/neoscroll.nvim
local status, neoscroll = pcall(require, "neoscroll")
if not status then
return

View File

@@ -1,4 +1,4 @@
-- nvim-tree.lua https://github.com/kyazdani42/nvim-tree.lua
-- https://github.com/kyazdani42/nvim-tree.lua
local status_ok, nvim_tree = pcall(require, "nvim-tree")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- Octo.nvim https://github.com/pwntester/octo.nvim
-- https://github.com/pwntester/octo.nvim
local status_ok, octo = pcall(require, "octo")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- project.nvim https://github.com/ahmedkhalf/project.nvim
-- https://github.com/ahmedkhalf/project.nvim
local status_ok, project = pcall(require, "project_nvim")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- sad.nvim https://github.com/ray-x/sad.nvim
-- https://github.com/ray-x/sad.nvim
local status_ok, sad = pcall(require, "sad")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- nvim-spectre https://github.com/nvim-pack/nvim-spectre
-- https://github.com/nvim-pack/nvim-spectre
local status_ok, spectre = pcall(require, "spectre")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- speeddating.vim https://github.com/tpope/vim-speeddating
-- https://github.com/tpope/vim-speeddating
vim.cmd([[
autocmd VimEnter * SpeedDatingFormat %d.%m.%Y
]])

View File

@@ -1,4 +1,4 @@
-- nvim-surround https://github.com/kylechui/nvim-surround
-- https://github.com/kylechui/nvim-surround
local status_ok, surround = pcall(require, "nvim-surround")
if not status_ok then
return

View File

@@ -1,5 +1,6 @@
" Custom Tabular Commands
" https://github.com/godlygeek/tabular
" Custom Tabular Commands
AddTabularPattern! equals /^[^=]*\zs=/
AddTabularPattern! ruby_hash /^[^=>]*\zs=>/
AddTabularPattern! commas /,\s*\zs\s/l0

View File

@@ -1,4 +1,4 @@
-- telescope.nvim https://github.com/nvim-telescope/telescope.nvim/
-- https://github.com/nvim-telescope/telescope.nvim/
local status_ok, telescope = pcall(require, "telescope")
if not status_ok then
return

View File

@@ -1,3 +1,4 @@
-- https://github.com/akinsho/toggleterm.nvim
local status_ok, toggleterm = pcall(require, "toggleterm")
if not status_ok then
return
@@ -97,7 +98,7 @@ function _PYTHON_TOGGLE()
end
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true}
local opts = { noremap = true, silent = true }
-- Keymaps
keymap("n", "<leader>lg", "<cmd>lua _LAZYGIT_TOGGLE()<CR>", opts)

View File

@@ -1,4 +1,4 @@
-- nvim-treesitter https://github.com/nvim-treesitter/nvim-treesitter/
-- https://github.com/nvim-treesitter/nvim-treesitter/
local status_ok, configs = pcall(require, "nvim-treesitter.configs")
if not status_ok then
return

View File

@@ -1,3 +1,3 @@
-- vim-gh-line https://github.com/ruanyl/vim-gh-line
-- https://github.com/ruanyl/vim-gh-line
vim.g.gh_github_domain = "source.xing.com"

View File

@@ -1,4 +1,4 @@
-- Vimux https://github.com/preservim/vimux
-- https://github.com/preservim/vimux
local keymap = vim.api.nvim_set_keymap
local opts = { noremap = true, silent = true }

View File

@@ -1,3 +1,4 @@
-- https://github.com/folke/which-key.nvim
local status_ok, which_key = pcall(require, "which-key")
if not status_ok then
return

View File

@@ -1,4 +1,4 @@
-- Zen Mode https://github.com/folke/zen-mode.nvim
-- https://github.com/folke/zen-mode.nvim
local status_ok, zenmode = pcall(require, "zen-mode")
if not status_ok then
return