From 35cad4a01aaa7811c4bb2163536ac8f31b9b62a7 Mon Sep 17 00:00:00 2001 From: christoph Date: Sat, 6 Apr 2024 20:49:12 +0200 Subject: [PATCH] lualine --- init.lua | 14 +++++++------- lua/basic/plugins/lualine.lua | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 7 deletions(-) create mode 100644 lua/basic/plugins/lualine.lua diff --git a/init.lua b/init.lua index 7071933d..b1eb74e0 100644 --- a/init.lua +++ b/init.lua @@ -764,7 +764,7 @@ require('lazy').setup({ -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. - vim.cmd.colorscheme 'tokyonight-night' + vim.cmd.colorscheme 'tokyonight-storm' -- You can configure highlights by doing something like: vim.cmd.hi 'Comment gui=none' @@ -795,17 +795,17 @@ require('lazy').setup({ -- Simple and easy statusline. -- You could remove this setup call if you don't like it, -- and try some other statusline plugin - local statusline = require 'mini.statusline' + -- local statusline = require 'mini.statusline' -- set use_icons to true if you have a Nerd Font - statusline.setup { use_icons = vim.g.have_nerd_font } + -- statusline.setup { use_icons = vim.g.have_nerd_font } -- You can configure sections in the statusline by overriding their -- default behavior. For example, here we set the section for -- cursor location to LINE:COLUMN ---@diagnostic disable-next-line: duplicate-set-field - statusline.section_location = function() - return '%2l:%-2v' - end + -- statusline.section_location = function() + -- return '%2l:%-2v' + -- end -- ... and there is more! -- Check out: https://github.com/echasnovski/mini.nvim @@ -860,8 +860,8 @@ require('lazy').setup({ -- -- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going. -- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins` - { import = 'private.plugins' }, { import = 'private.functions' }, + { import = 'private.plugins' }, { import = 'basic.plugins' }, { import = 'linter.plugins' }, { import = 'functions' }, diff --git a/lua/basic/plugins/lualine.lua b/lua/basic/plugins/lualine.lua new file mode 100644 index 00000000..5d2c6a24 --- /dev/null +++ b/lua/basic/plugins/lualine.lua @@ -0,0 +1,14 @@ +return { + 'nvim-lualine/lualine.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + config = function() + require('lualine').setup { + options = { + -- component_separators = { left = '', right = '' }, + -- section_separators = { left = '', right = '' }, + component_separators = { left = '', right = '' }, + section_separators = { left = '', right = '' }, + }, + } + end, +}