diff --git a/nvim/.config/nvim/after/plugin/which-key.lua b/nvim/.config/nvim/after/plugin/which-key.lua index 0b245fd..ad04b2d 100644 --- a/nvim/.config/nvim/after/plugin/which-key.lua +++ b/nvim/.config/nvim/after/plugin/which-key.lua @@ -18,6 +18,7 @@ wk.register({ name = "+git", g = "LazyGit", f = "Git Files", + b = "Git Blame", }, -- Misc c = "Change Color Scheme", diff --git a/nvim/.config/nvim/lua/clint/keybindings.lua b/nvim/.config/nvim/lua/clint/keybindings.lua index 4abb156..d474528 100644 --- a/nvim/.config/nvim/lua/clint/keybindings.lua +++ b/nvim/.config/nvim/lua/clint/keybindings.lua @@ -66,6 +66,7 @@ keymap("n", "s", [[:%s/\<\>//gI]], -- Git keymap('n', 'gg', ':LazyGit', default_ops) keymap('n', 'gf', ':Telescope git_files', default_ops) +keymap('n', 'gb', ':Gitsigns toggle_deleted', default_ops) -- File Explorer keymap('n', 'e', ':NeoTreeFocusToggle', default_ops) diff --git a/nvim/.config/nvim/lua/clint/settings.lua b/nvim/.config/nvim/lua/clint/settings.lua index 5202b91..8d588af 100644 --- a/nvim/.config/nvim/lua/clint/settings.lua +++ b/nvim/.config/nvim/lua/clint/settings.lua @@ -29,7 +29,3 @@ vim.g.slime_default_config = { socket_name = vim.api.nvim_eval('get(split($TMUX, ","), 0)'), target_pane = "{bottom}", } - --- Airline -vim.g.airline_powerline_fonts = 1 -vim.g.airline_extensions_tabline_enabled = 1 diff --git a/nvim/.config/nvim/lua/clint/statusline.lua b/nvim/.config/nvim/lua/clint/statusline.lua index 0732f9a..31bae49 100644 --- a/nvim/.config/nvim/lua/clint/statusline.lua +++ b/nvim/.config/nvim/lua/clint/statusline.lua @@ -1,43 +1,43 @@ - require('lualine').setup { - options = { - icons_enabled = true, - theme = 'auto', - component_separators = { left = '', right = ''}, - section_separators = { left = '', right = ''}, - disabled_filetypes = { - statusline = {}, - winbar = {}, - }, - ignore_focus = {}, - always_divide_middle = true, - globalstatus = false, - refresh = { - statusline = 1000, - tabline = 1000, - winbar = 1000, - } - }, - sections = { - lualine_a = {'mode'}, - lualine_b = {'branch', 'diff', 'diagnostics'}, - lualine_c = {'filename'}, - lualine_x = {'encoding', 'fileformat', 'filetype'}, - lualine_y = {'progress'}, - lualine_z = {'location'} - }, - inactive_sections = { - lualine_a = {}, - lualine_b = {}, - lualine_c = {'filename'}, - lualine_x = {'location'}, - lualine_y = {}, - lualine_z = {} - }, - tabline = { - lualine_a = {'buffers'} - }, - winbar = {}, - inactive_winbar = {}, - extensions = {} - } - +require('lualine').setup { + options = { + icons_enabled = true, + -- theme = 'auto', + theme = 'gruvbox', + component_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, + disabled_filetypes = { + statusline = {}, + winbar = {}, + }, + ignore_focus = {}, + always_divide_middle = true, + globalstatus = false, + refresh = { + statusline = 1000, + tabline = 1000, + winbar = 1000, + } + }, + sections = { + lualine_a = { 'mode' }, + lualine_b = { 'branch', 'diff', 'diagnostics' }, + lualine_c = { { 'filename', path = 1, file_status = true } }, + lualine_x = { 'encoding', 'fileformat', }, + lualine_y = { 'filetype' }, + lualine_z = {} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = { 'filename' }, + lualine_x = { 'location' }, + lualine_y = {}, + lualine_z = {} + }, + tabline = { + lualine_a = { 'buffers' } + }, + winbar = {}, + inactive_winbar = {}, + extensions = {} +} diff --git a/nvim/.config/nvim/lua/plugins/init.lua b/nvim/.config/nvim/lua/plugins/init.lua index e8b60d6..7257ac4 100644 --- a/nvim/.config/nvim/lua/plugins/init.lua +++ b/nvim/.config/nvim/lua/plugins/init.lua @@ -37,12 +37,12 @@ return { { 'ayu-theme/ayu-vim' }, { 'morhetz/gruvbox' }, - { 'dikiaap/minimalist' }, { 'jacoborus/tender.vim' }, { 'jpo/vim-railscasts-theme' }, { 'rainux/vim-desert-warm-256' }, { 'ajmwagar/vim-deus' }, { "rebelot/kanagawa.nvim" }, + { "glepnir/oceanic-material" }, -------------------- -- Utility @@ -50,6 +50,19 @@ return { -- Git { 'kdheepak/lazygit.nvim' }, + { 'lewis6991/gitsigns.nvim', config = { + signs = { + add = { hl = 'GitSignsAdd', text = '+', numhl = 'GitSignsAddNr', linehl = 'GitSignsAddLn' }, + change = { hl = 'GitSignsChange', text = '│', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' }, + delete = { hl = 'GitSignsDelete', text = '-', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' }, + topdelete = { hl = 'GitSignsDelete', text = '‾', numhl = 'GitSignsDeleteNr', linehl = 'GitSignsDeleteLn' }, + changedelete = { hl = 'GitSignsChange', text = '~', numhl = 'GitSignsChangeNr', linehl = 'GitSignsChangeLn' }, + untracked = { hl = 'GitSignsAdd', text = '┆', numhl = 'GitSignsAddNr', linehl = 'GitSignsAddLn' }, + }, + current_line_blame = true, + show_deleted = true, + } + }, -- Sessions { "tpope/vim-obsession" }, @@ -118,11 +131,19 @@ return { } }, + { 'akinsho/toggleterm.nvim', + version = "*", + config = { + open_mapping = [[]], + -- direction = 'float' + } + }, + -------------------- -- Aesthetics -------------------- - -- airline + -- status line { 'nvim-lualine/lualine.nvim' }, -- Devicons