Merge branch 'master' of git.blakenorth.net/home/git/dotfiles

This commit is contained in:
PowerUser64 2022-08-25 02:53:28 -07:00
commit 295ddd2363
2 changed files with 22 additions and 24 deletions

View file

@ -111,6 +111,12 @@ M.gitsigns = function()
}, },
attach_to_untracked = true, attach_to_untracked = true,
current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame` current_line_blame = false, -- Toggle with `:Gitsigns toggle_current_line_blame`
worktrees = {
{
toplevel = vim.env.HOME,
gitdir = vim.env.HOME .. '/git/dotfiles'
},
},
current_line_blame_opts = { current_line_blame_opts = {
virt_text = true, virt_text = true,
virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align' virt_text_pos = 'eol', -- 'eol' | 'overlay' | 'right_align'

View file

@ -93,18 +93,17 @@ return require('packer').startup({function()
vim.cmd 'command! COL ColorizerToggle' vim.cmd 'command! COL ColorizerToggle'
end, end,
} }
use { -- ifdef-highlighting: highlight c/c++ ifdef's - :Define :Undefine
'vim-scripts/ifdef-highlighting'
}
use { -- lumen: make vim respect the system light/dark theme setting (linux + macos) use { -- lumen: make vim respect the system light/dark theme setting (linux + macos)
'vimpostor/vim-lumen', 'vimpostor/vim-lumen',
} }
use { -- vim-illuminate: highlight other occurrences of the word under cursor use { -- vim-illuminate: highlight other occurrences of the word under cursor
-- 'RRethy/vim-illuminate', 'RRethy/vim-illuminate',
-- commit = '27f6ef135a88d9410a33cf92fc47f5c018df552c', -- commit = '27f6ef135a88d9410a33cf92fc47f5c018df552c', -- for finding the correct color to make highlights
'PowerUser64/vim-illuminate',
branch = 'wrapscan',
config = function() config = function()
vim.keymap.set('n', '<a-i>', require('illuminate').toggle_freeze_buf)
vim.api.nvim_set_hl(0, "IlluminatedWordText", { bg = "#3b4261" })
vim.api.nvim_set_hl(0, "IlluminatedWordRead", { bg = "#3b4261" })
vim.api.nvim_set_hl(0, "IlluminatedWordWrite", { bg = "#3b4261" })
require('illuminate').configure({ require('illuminate').configure({
providers = { providers = {
'treesitter', 'treesitter',
@ -201,14 +200,13 @@ return require('packer').startup({function()
} }
use { -- null-ls: Support for lots of programming tools, but through nvim lsp use { -- null-ls: Support for lots of programming tools, but through nvim lsp
'jose-elias-alvarez/null-ls.nvim', 'jose-elias-alvarez/null-ls.nvim',
disable = true, requires = { 'nvim-lua/plenary.nvim' },
-- requires = { 'nvim-lua/plenary.nvim' },
config = function() config = function()
local null_ls = require("null-ls") local null_ls = require("null-ls")
require("null-ls").setup({ require("null-ls").setup({
sources = { sources = {
null_ls.builtins.code_actions.refactoring, null_ls.builtins.code_actions.refactoring,
null_ls.builtins.formatting.clang_format, null_ls.builtins.formatting.jq,
} }
}) })
end end
@ -294,13 +292,6 @@ return require('packer').startup({function()
require('blake.other').gitsigns() require('blake.other').gitsigns()
end, end,
} }
-- use { -- nvim-tree: file manager
-- 'kyazdani42/nvim-tree.lua',
-- requires = { 'kyazdani42/nvim-web-devicons' },
-- config = function()
-- require('blake.other').nvimtree()
-- end
-- }
use { -- toggleterm: terminal use { -- toggleterm: terminal
'akinsho/toggleterm.nvim', 'akinsho/toggleterm.nvim',
branch = 'main', branch = 'main',
@ -349,9 +340,9 @@ return require('packer').startup({function()
require('blake.other').indent_blankline() require('blake.other').indent_blankline()
end end
} }
-- use { -- targets.vim: fix ci' and other things to work right use { -- targets.vim: fix ci' and other things to work better
-- 'wellle/targets.vim', 'wellle/targets.vim',
-- } }
use { -- nvim-tree: File explorer use { -- nvim-tree: File explorer
'kyazdani42/nvim-tree.lua', 'kyazdani42/nvim-tree.lua',
requires = { 'kyazdani42/nvim-web-devicons' }, requires = { 'kyazdani42/nvim-web-devicons' },
@ -452,15 +443,13 @@ return require('packer').startup({function()
}, },
} }
end end
}
use { -- cheat.sh integration
'dbeniamine/cheat.sh-vim',
} }
use { -- nvim-align: Align text use { -- nvim-align: Align text
'RRethy/nvim-align', 'RRethy/nvim-align',
} }
use { -- comment.nvim: toggle comments - gb and gc use { -- comment.nvim: toggle comments - gb and gc
'numToStr/Comment.nvim', 'PowerUser64/Comment.nvim',
branch = 'lockmarks',
config = function() config = function()
require('Comment').setup { require('Comment').setup {
mappings = { mappings = {
@ -567,6 +556,9 @@ return require('packer').startup({function()
use { -- tpope: sleuth: automatically get info about files and apply it to vim (tabs vs spaces, etc) use { -- tpope: sleuth: automatically get info about files and apply it to vim (tabs vs spaces, etc)
'tpope/vim-sleuth', 'tpope/vim-sleuth',
} }
use { -- tpope: eunuch: some unix shell commands in vim
'tpope/vim-eunuch',
}
-- Bootstrap packer if needed { -- Bootstrap packer if needed {
if (Packer_bootstrap) then if (Packer_bootstrap) then