nvim: statusline (lualine) has been made

This commit is contained in:
PowerUser64 2021-12-26 16:18:33 -08:00
parent ee7de5f557
commit 75c3986785
4 changed files with 312 additions and 19 deletions

View file

@ -41,7 +41,32 @@ return require('packer').startup({function()
'navarasu/onedark.nvim',
config = function()
-- vim.g.onedark_transparent_background = true
require('onedark').setup()
vim.cmd [[
au ColorScheme onedark hi TabLine gui=none guibg='#282C34' guifg='#5C6370' " all tabs color
au ColorScheme onedark hi TabLineSel guibg='#282C34' guifg='#B5BBC7' " Highlighted tab color
au ColorScheme onedark hi TabLineFill guibg='#282C34' " tabline portion without tabs (right-hand side)
colorscheme onedark
]]
end
}
use { -- statusline: lualine
'nvim-lualine/lualine.nvim',
requires = {'kyazdani42/nvim-web-devicons', opt = true},
config = function()
require('blake.other').lualine()
end,
}
use { -- tabline
'alvarosevilla95/luatab.nvim',
requires = 'kyazdani42/nvim-web-devicons',
config = function()
-- vim.cmd [[
-- exec('au ColorScheme gruvbox hi TabLine gui=none guibg=' . $color01 . ' guifg=' . $color03)
-- exec('au ColorScheme gruvbox hi TabLineSel guibg=' . $color01 . ' guifg=' . $color06)
-- exec('au ColorScheme gruvbox hi TabLineFill guibg=' . $color01)
-- ]]
require('luatab').setup {}
end
}
use { -- css color tag highlighter (ex: #FFB13B)
@ -50,9 +75,6 @@ return require('packer').startup({function()
vim.cmd 'command! COL ColorizerToggle'
end,
}
use { -- tabline
'alvarosevilla95/luatab.nvim'
}
-- IDE features
---- LSP (document analysis)
@ -66,6 +88,18 @@ return require('packer').startup({function()
require('blake.lsp').lspconfig()
end
}
use { -- commentstring based on context from treesitter
'JoosepAlviste/nvim-ts-context-commentstring',
requires = 'nvim-treesitter/nvim-treesitter',
config = function()
require'nvim-treesitter.configs'.setup {
context_commentstring = {
enable = true,
enable_autocmd = false,
}
}
end,
}
use { -- compe
'hrsh7th/nvim-cmp',
config = function()
@ -141,13 +175,13 @@ return require('packer').startup({function()
require('blake.other').gitsigns()
end,
}
use { -- file manager
'kyazdani42/nvim-tree.lua',
requires = 'kyazdani42/nvim-web-devicons',
config = function()
require('blake.other').nvimtree()
end
}
-- use { -- file manager
-- 'kyazdani42/nvim-tree.lua',
-- requires = 'kyazdani42/nvim-web-devicons',
-- config = function()
-- require('blake.other').nvimtree()
-- end
-- }
use { -- terminal
'akinsho/toggleterm.nvim',
config = function()
@ -218,6 +252,20 @@ return require('packer').startup({function()
vim.api.nvim_set_keymap('n', '<F5>', '<cmd>UndotreeToggle<CR>', { noremap = true, silent = true, })
end
}
-- use { -- Dim inactive window
-- 'sunjon/shade.nvim',
-- config = function()
-- require'shade'.setup({
-- overlay_opacity = 50,
-- opacity_step = 1,
-- keys = {
-- brightness_up = '<C-Up>',
-- brightness_down = '<C-Down>',
-- toggle = '<Leader>s',
-- }
-- })
-- end
-- }
use { -- Quote pairing
'windwp/nvim-autopairs',
config = function()
@ -230,12 +278,28 @@ return require('packer').startup({function()
use { -- cheat.sh integration
'dbeniamine/cheat.sh-vim',
}
use { -- Comments (gb and gc)
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
}
-- use { -- Comments (gb and gc)
-- 'numToStr/Comment.nvim',
-- config = function()
-- require('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
--
-- return require('ts_context_commentstring.internal').calculate_commentstring {
-- key = ctx.ctype == U.ctype.line and '__default' or '__multiline',
-- location = location,
-- }
-- end,
-- }
-- end
-- }
-- use { -- lewis6991: spellsitter: Spell checking in treesitter files
-- 'lewis6991/spellsitter.nvim',
-- config = function()
@ -254,6 +318,9 @@ return require('packer').startup({function()
require('foldsigns').setup()
end,
}
use { -- tpope: commentary
'tpope/vim-commentary',
}
use { -- tpope: surround
'tpope/vim-surround'
}