diff --git a/.config/nvim/lua/plugins/lualine.lua b/.config/nvim/lua/plugins/lualine.lua deleted file mode 100644 index 0e611bf..0000000 --- a/.config/nvim/lua/plugins/lualine.lua +++ /dev/null @@ -1,43 +0,0 @@ -return { - 'nvim-lualine/lualine.nvim', - dependencies = { 'nvim-tree/nvim-web-devicons' }, - opts = { - options = { - section_separators = { left = '', right = '' }, - component_separators = { left = '|', right = '|' }, - theme = vim.g.colors_name, - refresh = { - statusline = 1000, - }, - }, - sections = { - lualine_c = { - { - 'filename', - path = 1, - }, - }, - lualine_x = { - { - 'lsp_status', - icon = '', -- f013 - symbols = { - -- Standard unicode symbols to cycle through for LSP progress: - spinner = { '⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏' }, - -- Standard unicode symbol for when LSP is done: - done = '✓', - -- Delimiter inserted between LSP names: - separator = ' ', - }, - -- List of LSP names to ignore (e.g., `null-ls`): - ignore_lsp = {}, - -- Display the LSP name - show_name = true, - }, - 'encoding', - 'fileformat', - 'filetype', - }, - }, - }, -} diff --git a/.config/nvim/lua/plugins/mini.lua b/.config/nvim/lua/plugins/mini.lua index f04b078..50d39cc 100644 --- a/.config/nvim/lua/plugins/mini.lua +++ b/.config/nvim/lua/plugins/mini.lua @@ -14,5 +14,27 @@ return { } require('mini.pairs').setup() require('mini.icons').setup() +require('mini.statusline').setup({ + content = { + active = function() + local mode, mode_hl = MiniStatusline.section_mode({ trunc_width = 120 }) + local git = MiniStatusline.section_git({ trunc_width = 40 }) + local diagnostics = MiniStatusline.section_diagnostics({ trunc_width = 75 }) + local lsp = MiniStatusline.section_lsp({ trunc_width = 75 }) + local filename = MiniStatusline.section_filename({trunc_width=1000}) + local fileinfo = MiniStatusline.section_fileinfo({ trunc_width = 120 }) + + return MiniStatusline.combine_groups({ + { hl = mode_hl, strings = { mode } }, + { hl = 'MiniStatuslineDevinfo', strings = { git, diagnostics, lsp } }, + '%<', -- Mark truncation point + { hl = 'MiniStatuslineFilename', strings = { filename} }, + '%=', -- Fill rest of screen + { hl = 'MiniStatuslineFileinfo', strings = { fileinfo } }, + { hl = mode_hl, strings = { location } }, + }) + end, + }, +}) end, } diff --git a/.config/nvim/lua/plugins/theme.lua b/.config/nvim/lua/plugins/theme.lua index 768f540..45602ff 100644 --- a/.config/nvim/lua/plugins/theme.lua +++ b/.config/nvim/lua/plugins/theme.lua @@ -1,10 +1 @@ -return { - 'Mofiqul/dracula.nvim', - lazy = false, - priority = 1000, - config = function() - local dracula = require 'dracula' - - vim.cmd.colorscheme 'dracula' - end, -} +return { "rebelot/kanagawa.nvim", priority = 1000 }