Merge branch 'master' of ssh://git.venberg.xyz:7920/Gabe/dotfiles
This commit is contained in:
commit
75f236e771
|
@ -3,8 +3,14 @@
|
||||||
name = Gabe Venberg
|
name = Gabe Venberg
|
||||||
[alias]
|
[alias]
|
||||||
hist = log --graph --date-order --date=short --pretty=format:'%C(auto)%h%d %C(reset)%s %C(bold blue)%ce %C(reset)%C(green)%cr (%cd)'
|
hist = log --graph --date-order --date=short --pretty=format:'%C(auto)%h%d %C(reset)%s %C(bold blue)%ce %C(reset)%C(green)%cr (%cd)'
|
||||||
graph = log --graph --date-order --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) (%C(bold red)%an%C(reset)/%C(bold cyan)%ae%C(reset)) - %C(white)%s%C(reset)%C(yellow)%d%C(reset)' --all
|
graph = log --graph --topo-order --all --pretty=format:'%C(auto)%h %C(cyan)%an %C(blue)%ar %C(auto)%d %s'
|
||||||
[init]
|
[init]
|
||||||
defaultBranch = trunk
|
defaultBranch = trunk
|
||||||
[push]
|
[push]
|
||||||
autoSetupRemote = true
|
autoSetupRemote = true
|
||||||
|
[difftool]
|
||||||
|
prompt = false
|
||||||
|
[diff]
|
||||||
|
tool = nvimdiff
|
||||||
|
[difftool "nvimdiff"]
|
||||||
|
cmd = "nvim -d \"$LOCAL\" \"$REMOTE\""
|
||||||
|
|
|
@ -2,11 +2,11 @@
|
||||||
local fn = vim.fn
|
local fn = vim.fn
|
||||||
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
local install_path = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||||||
if fn.empty(fn.glob(install_path)) > 0 then
|
if fn.empty(fn.glob(install_path)) > 0 then
|
||||||
Packer_Bootstrap = fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
Packer_Bootstrap = fn.system({ 'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim',
|
||||||
|
install_path })
|
||||||
end
|
end
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
return require('packer').startup(function(use)
|
||||||
|
|
||||||
--startup speed
|
--startup speed
|
||||||
use 'lewis6991/impatient.nvim'
|
use 'lewis6991/impatient.nvim'
|
||||||
|
|
||||||
|
@ -16,12 +16,38 @@ return require('packer').startup(function(use)
|
||||||
|
|
||||||
use { 'nvim-treesitter/nvim-treesitter',
|
use { 'nvim-treesitter/nvim-treesitter',
|
||||||
run = ':TSUpdate',
|
run = ':TSUpdate',
|
||||||
config=function() require('nvim-treesitter').setup{
|
config = function()
|
||||||
ensure_installed='maintained',
|
require('nvim-treesitter').setup {
|
||||||
|
ensure_installed = {
|
||||||
|
'c',
|
||||||
|
'lua',
|
||||||
|
'vim',
|
||||||
|
'vimdoc',
|
||||||
|
'query',
|
||||||
|
'bash',
|
||||||
|
'comment',
|
||||||
|
'cpp',
|
||||||
|
'diff',
|
||||||
|
'git_config',
|
||||||
|
'git_rebase',
|
||||||
|
'gitattributes',
|
||||||
|
'gitcommit',
|
||||||
|
'gitignore',
|
||||||
|
'json',
|
||||||
|
'jsonc',
|
||||||
|
'latex',
|
||||||
|
'make',
|
||||||
|
'python',
|
||||||
|
'regex',
|
||||||
|
'rust',
|
||||||
|
'toml',
|
||||||
|
},
|
||||||
|
auto_install = true,
|
||||||
highlight = { enable = true },
|
highlight = { enable = true },
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
incremental_selection = { enable = true }
|
incremental_selection = { enable = true }
|
||||||
}end,
|
}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
use {
|
use {
|
||||||
{
|
{
|
||||||
|
@ -125,13 +151,15 @@ return require('packer').startup(function(use)
|
||||||
requires = {
|
requires = {
|
||||||
'kyazdani42/nvim-web-devicons', -- optional, for file icon
|
'kyazdani42/nvim-web-devicons', -- optional, for file icon
|
||||||
},
|
},
|
||||||
config = function() require'nvim-tree'.setup {
|
config = function()
|
||||||
|
require 'nvim-tree'.setup {
|
||||||
|
|
||||||
on_attach = function(bufnr)
|
on_attach = function(bufnr)
|
||||||
local api = require('nvim-tree.api')
|
local api = require('nvim-tree.api')
|
||||||
|
|
||||||
local function opts(desc)
|
local function opts(desc)
|
||||||
return { desc = 'nvim-tree: ' .. desc, buffer = bufnr, noremap = true, silent = true, nowait = true }
|
return { desc = 'nvim-tree: ' .. desc, buffer = bufnr, noremap = true, silent = true,
|
||||||
|
nowait = true }
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
@ -234,10 +262,10 @@ return require('packer').startup(function(use)
|
||||||
vim.keymap.set('n', 'q', api.tree.close, opts('Close'))
|
vim.keymap.set('n', 'q', api.tree.close, opts('Close'))
|
||||||
vim.keymap.set('n', 'g?', api.tree.toggle_help, opts('Help'))
|
vim.keymap.set('n', 'g?', api.tree.toggle_help, opts('Help'))
|
||||||
vim.keymap.set('n', 'W', api.tree.collapse_all, opts('Collapse'))
|
vim.keymap.set('n', 'W', api.tree.collapse_all, opts('Collapse'))
|
||||||
|
|
||||||
end,
|
end,
|
||||||
-- on_attach = on_attach
|
-- on_attach = on_attach
|
||||||
} end
|
}
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
--UI stuff
|
--UI stuff
|
||||||
|
@ -273,7 +301,8 @@ end
|
||||||
|
|
||||||
use { 'nvim-lualine/lualine.nvim',
|
use { 'nvim-lualine/lualine.nvim',
|
||||||
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true },
|
||||||
config=function() require('lualine').setup{
|
config = function()
|
||||||
|
require('lualine').setup {
|
||||||
options = {
|
options = {
|
||||||
icons_enabled = true,
|
icons_enabled = true,
|
||||||
theme = 'auto',
|
theme = 'auto',
|
||||||
|
@ -299,7 +328,8 @@ end
|
||||||
lualine_z = {}
|
lualine_z = {}
|
||||||
},
|
},
|
||||||
extensions = {}
|
extensions = {}
|
||||||
} end,
|
}
|
||||||
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
use { 'kdheepak/tabline.nvim',
|
use { 'kdheepak/tabline.nvim',
|
||||||
|
@ -329,7 +359,8 @@ requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicon
|
||||||
|
|
||||||
use { 'folke/trouble.nvim',
|
use { 'folke/trouble.nvim',
|
||||||
requires = "kyazdani42/nvim-web-devicons",
|
requires = "kyazdani42/nvim-web-devicons",
|
||||||
config = function() require("trouble").setup {
|
config = function()
|
||||||
|
require("trouble").setup {
|
||||||
position = "bottom", -- position of the list can be: bottom, top, left, right
|
position = "bottom", -- position of the list can be: bottom, top, left, right
|
||||||
height = 10, -- height of the trouble list when position is top or bottom
|
height = 10, -- height of the trouble list when position is top or bottom
|
||||||
width = 50, -- width of the list when position is left or right
|
width = 50, -- width of the list when position is left or right
|
||||||
|
@ -339,7 +370,8 @@ requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicon
|
||||||
fold_closed = "", -- icon used for closed folds
|
fold_closed = "", -- icon used for closed folds
|
||||||
group = true, -- group results by file
|
group = true, -- group results by file
|
||||||
padding = true, -- add an extra new line on top of the list
|
padding = true, -- add an extra new line on top of the list
|
||||||
action_keys = { -- key mappings for actions in the trouble list
|
action_keys = {
|
||||||
|
-- key mappings for actions in the trouble list
|
||||||
-- map to {} to remove a mapping, for example:
|
-- map to {} to remove a mapping, for example:
|
||||||
-- close = {},
|
-- close = {},
|
||||||
close = "q", -- close the list
|
close = "q", -- close the list
|
||||||
|
@ -381,7 +413,8 @@ requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicon
|
||||||
|
|
||||||
use { 'romgrk/nvim-treesitter-context',
|
use { 'romgrk/nvim-treesitter-context',
|
||||||
requires = 'nvim-treesitter/nvim-treesitter',
|
requires = 'nvim-treesitter/nvim-treesitter',
|
||||||
config=function() require('treesitter-context').setup{
|
config = function()
|
||||||
|
require('treesitter-context').setup {
|
||||||
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
enable = true, -- Enable this plugin (Can be enabled/disabled later via commands)
|
||||||
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
max_lines = 0, -- How many lines the window should span. Values <= 0 mean no limit.
|
||||||
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
trim_scope = 'outer', -- Which context lines to discard if `max_lines` is exceeded. Choices: 'inner', 'outer'
|
||||||
|
@ -391,7 +424,8 @@ requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicon
|
||||||
-- Separator between context and content. Should be a single character string, like '-'.
|
-- Separator between context and content. Should be a single character string, like '-'.
|
||||||
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
|
-- When separator is set, the context will only show up when there are at least 2 lines above cursorline.
|
||||||
separator = nil,
|
separator = nil,
|
||||||
} end
|
}
|
||||||
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
use { 'lewis6991/gitsigns.nvim',
|
use { 'lewis6991/gitsigns.nvim',
|
||||||
|
|
|
@ -175,3 +175,6 @@
|
||||||
#zsh completions, if it exists.
|
#zsh completions, if it exists.
|
||||||
testPath=$(find /usr/share -path '*fzf/*completion.zsh' -print -quit 2> /dev/null)
|
testPath=$(find /usr/share -path '*fzf/*completion.zsh' -print -quit 2> /dev/null)
|
||||||
[ -f "$testPath" ] && source $testPath
|
[ -f "$testPath" ] && source $testPath
|
||||||
|
#if it was installed using git, can just source the one file:
|
||||||
|
testPath="$HOME/.fzf.zsh"
|
||||||
|
[ -f "$testPath" ] && source $testPath
|
||||||
|
|
Loading…
Reference in a new issue