nvim: swapped gitgutter for gitsigns and lightline for lualine

master
tiyn 1 year ago
parent 1ea26420bf
commit 7e82242013

@ -19,13 +19,19 @@ return require("packer").startup(function(use)
-- package manager (first entry) -- package manager (first entry)
use { 'wbthomason/packer.nvim' } use { 'wbthomason/packer.nvim' }
-- indicate git diff status of line
use { 'lewis6991/gitsigns.nvim' }
-- improved java syntax highlighting -- improved java syntax highlighting
use { 'uiiaoo/java-syntax.vim', use { 'uiiaoo/java-syntax.vim',
ft = { 'java' } } ft = { 'java' } }
-- custom statusline -- custom statusline
use { 'itchyny/lightline.vim', use {
require = { "tiyn/vim-tccs" } } 'nvim-lualine/lualine.nvim',
requires = { 'nvim-tree/nvim-web-devicons',
opt = true }
}
-- show signature while typing -- show signature while typing
use { 'ray-x/lsp_signature.nvim' } use { 'ray-x/lsp_signature.nvim' }
@ -105,9 +111,6 @@ return require("packer").startup(function(use)
-- git wrapper -- git wrapper
use { 'tpope/vim-fugitive' } use { 'tpope/vim-fugitive' }
-- indicate git diff status of line
use { 'airblade/vim-gitgutter' }
-- golang language support -- golang language support
use { 'fatih/vim-go', use { 'fatih/vim-go',
ft = { 'go' } } ft = { 'go' } }

@ -0,0 +1,2 @@
-- lewis6991/gitsigns.nvim
require('gitsigns').setup()

@ -1,2 +0,0 @@
-- itchyny/lightline.vim
vim.g.lightline = { colorscheme = 'tccs' }

@ -0,0 +1,41 @@
-- nvim-lualine/lualine.nvim
require('lualine').setup {
options = {
icons_enabled = true,
theme = 'tccs',
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 = {},
winbar = {},
inactive_winbar = {},
extensions = {}
}
Loading…
Cancel
Save