Update lualine

Signed-off-by: Ryan <ryan@alien.gov>
This commit is contained in:
Ryan 2023-11-30 15:21:17 +08:00
parent b1f6665d59
commit d39f6a98db
No known key found for this signature in database
GPG Key ID: DB5B3AC49EEFD2A5
3 changed files with 45 additions and 37 deletions

View File

@ -17,7 +17,6 @@ o.ignorecase = true
o.smartcase = true o.smartcase = true
o.smartindent = true o.smartindent = true
o.autoindent = true o.autoindent = true
o.mouse = "i"
-- leader settings -- leader settings
global.mapleader = ' ' global.mapleader = ' '

View File

@ -151,9 +151,10 @@ local plugins = {
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' },
event = "CmdlineEnter", event = "CmdlineEnter",
keys = { keys = {
vim.keymap.set('', '<leader>tf', ':Telescope fd<cr>'), vim.keymap.set('', '<leader>t/', ':Telescope lsp_dynamic_workspace_symbols<cr>'),
vim.keymap.set('', '<leader>t/', ':Telescope live_grep<cr>'), vim.keymap.set('', '<leader>tg', ':Telescope live_grep<cr>'),
vim.keymap.set('', '<leader>tb', ':Telescope buffers<cr>'), vim.keymap.set('', '<leader>tb', ':Telescope buffers<cr>'),
vim.keymap.set('', '<leader>tf', ':Telescope fd<cr>'),
}, },
config = function() config = function()
require("plugins.telescope") require("plugins.telescope")

View File

@ -1,35 +1,43 @@
require'lualine'.setup { require 'lualine'.setup {
options = { options = {
icons_enabled = true, icons_enabled = true,
theme = 'gruvbox', theme = 'gruvbox',
component_separators = {'|', '|'}, component_separators = { '|', '|' },
section_separators = {'', ''}, section_separators = { '', '' },
disabled_filetypes = {} disabled_filetypes = {}
}, },
sections = { sections = {
lualine_a = {'mode'}, lualine_a = { 'mode' },
lualine_b = {'branch'}, lualine_b = {
lualine_c = {'filename', 'diagonostics'}, 'branch',
lualine_x = {'encoding', 'fileformat', 'filetype'}, },
lualine_y = {'progress'}, lualine_c = {
lualine_z = {'location'} {
}, 'filename',
inactive_sections = { path = 1
lualine_a = {}, },
lualine_b = {}, 'diff',
lualine_c = {'filename'}, },
lualine_x = {'location'}, lualine_x = { 'encoding', 'fileformat', 'filetype' },
lualine_y = {}, lualine_y = { 'progress' },
lualine_z = {} lualine_z = { 'location' }
}, },
-- Tabline is broken, disable for now. inactive_sections = {
-- tabline = { lualine_a = {},
-- lualine_a = {'buffers'}, lualine_b = {},
-- lualine_b = {}, lualine_c = { 'filename' },
-- lualine_c = {}, lualine_x = { 'location' },
-- lualine_x = {}, lualine_y = {},
-- lualine_y = {}, lualine_z = {}
-- lualine_z = {'tabs'} },
-- }, -- Tabline is broken, disable for now.
extensions = {} -- tabline = {
-- lualine_a = {'buffers'},
-- lualine_b = {},
-- lualine_c = {},
-- lualine_x = {},
-- lualine_y = {},
-- lualine_z = {'tabs'}
-- },
extensions = {}
} }