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 = {} +}