diff --git a/modules/statusline/lualine/config.nix b/modules/statusline/lualine/config.nix index 7d4d879e..385e139d 100644 --- a/modules/statusline/lualine/config.nix +++ b/modules/statusline/lualine/config.nix @@ -12,13 +12,14 @@ in { ]; vim.luaConfigRC.lualine = nvim.dag.entryAnywhere '' - require('lualine').setup { + local lualine = require('lualine') + lualine.setup { options = { icons_enabled = ${boolToString cfg.icons.enable}, theme = "${cfg.theme}", component_separators = {"${cfg.componentSeparator.left}","${cfg.componentSeparator.right}"}, section_separators = {"${cfg.sectionSeparator.left}","${cfg.sectionSeparator.right}"}, - disabled_filetypes = { 'alpha' }, -- 'NvimTree' + disabled_filetypes = { 'alpha' }, always_divide_middle = true, globalstatus = ${boolToString cfg.globalStatus}, ignore_focus = {'NvimTree'}, diff --git a/modules/statusline/lualine/lualine.nix b/modules/statusline/lualine/lualine.nix index 3409194f..f9e3473e 100644 --- a/modules/statusline/lualine/lualine.nix +++ b/modules/statusline/lualine/lualine.nix @@ -183,6 +183,25 @@ in { description = "active config for: | A | B | C (X) | Y | Z |"; default = '' { + { + -- Lsp server name . + function() + local msg = 'No Active Lsp' + local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype') + local clients = vim.lsp.get_active_clients() + if next(clients) == nil then + return msg + end + for _, client in ipairs(clients) do + local filetypes = client.config.filetypes + if filetypes and vim.fn.index(filetypes, buf_ft) ~= -1 then + return client.name + end + end + return msg + end, + icon = ' ', + }, { "diagnostics", sources = {'nvim_lsp', 'nvim_diagnostic', 'coc'}, @@ -227,7 +246,6 @@ in { separator = { left = '', }, - }, { "location", diff --git a/modules/ui/modes/config.nix b/modules/ui/modes/config.nix index 2e9ac045..827eca50 100644 --- a/modules/ui/modes/config.nix +++ b/modules/ui/modes/config.nix @@ -15,6 +15,9 @@ in { vim.luaConfigRC.modes-nvim = nvim.dag.entryAnywhere '' require('modes').setup({ set_cursorline = ${boolToString cfg.setCursorline}, + line_opacity = { + visual = 0, + }, colors = { copy = "${toString cfg.colors.copy}", delete = "${toString cfg.colors.delete}",