From 8b69dfe4bf9996ab3408b38667d804f9d4bdf1b0 Mon Sep 17 00:00:00 2001 From: sadanslargehole Date: Tue, 7 May 2024 20:51:41 -0400 Subject: [PATCH] new stuff --- lua/plugins.lua | 18 +++++++++++++++--- lua/setup.lua | 2 ++ lua/setuplualine.lua | 40 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 57 insertions(+), 3 deletions(-) create mode 100644 lua/setuplualine.lua diff --git a/lua/plugins.lua b/lua/plugins.lua index 5da2aca..392a464 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -2,9 +2,21 @@ local plugins = { { "lambdalisue/suda.vim", }, - { - "andweeb/presence.nvim" - }, + { + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + ft = { "markdown" }, + build = function() + vim.fn["mkdp#util#install"]() + end, + }, + { + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + }, + { + "andweeb/presence.nvim", + }, { "jose-elias-alvarez/null-ls.nvim", }, diff --git a/lua/setup.lua b/lua/setup.lua index fe9230d..1daad3d 100644 --- a/lua/setup.lua +++ b/lua/setup.lua @@ -19,4 +19,6 @@ require("setupcomment") -- setup function signature require("setupsig") +require("setuplualine") + require("setupDiscord") diff --git a/lua/setuplualine.lua b/lua/setuplualine.lua new file mode 100644 index 0000000..c5c63c3 --- /dev/null +++ b/lua/setuplualine.lua @@ -0,0 +1,40 @@ +require('lualine').setup { + options = { + icons_enabled = true, + theme = 'tokyonight', + component_separators = { left = '', right = ''}, + section_separators = { left = '', right = ''}, + disabled_filetypes = { + statusline = {}, + winbar = {}, + }, + ignore_focus = {}, + always_divide_middle = true, + globalstatus = false, + refresh = { + statusline = 1000, + tabline = 1000, + winbar = 1000, + } + }, + sections = { + lualine_a = {'mode'}, + lualine_b = {'branch', 'diff', 'diagnostics'}, + lualine_c = {'filename'}, + lualine_x = {'encoding', 'fileformat', 'filetype'}, + lualine_y = {'progress'}, + lualine_z = {'location'} + }, + inactive_sections = { + lualine_a = {}, + lualine_b = {}, + lualine_c = {'filename'}, + lualine_x = {'location'}, + lualine_y = {}, + lualine_z = {} + }, + tabline = {}, + winbar = {}, + inactive_winbar = {}, + extensions = {} +}