MD preview plugin
This commit is contained in:
parent
f7d2e0d114
commit
f5d154ab58
3 changed files with 10 additions and 46 deletions
|
@ -861,7 +861,7 @@ require('lazy').setup({
|
||||||
|
|
||||||
-- My plugins
|
-- My plugins
|
||||||
require 'kickstart.plugins.bufferline',
|
require 'kickstart.plugins.bufferline',
|
||||||
-- require 'kickstart.plugins.bottomline'
|
require 'kickstart.plugins.markdown-preview',
|
||||||
|
|
||||||
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
|
||||||
-- This is the easiest way to modularize your config.
|
-- This is the easiest way to modularize your config.
|
||||||
|
|
|
@ -1,45 +0,0 @@
|
||||||
-- bottomline
|
|
||||||
|
|
||||||
return {
|
|
||||||
'mnjm/winline.nvim',
|
|
||||||
dependencies = {
|
|
||||||
'lewis6991/gitsigns.nvim',
|
|
||||||
'nvim-tree/nvim-web-devicons'
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
require('winline').setup {
|
|
||||||
-- Enable winline
|
|
||||||
enable = true,
|
|
||||||
|
|
||||||
-- Minimal components for a status line that feels like a command line
|
|
||||||
components = {
|
|
||||||
left = {
|
|
||||||
{'mode'}, -- Shows the current mode (Normal, Insert, etc.)
|
|
||||||
},
|
|
||||||
right = {
|
|
||||||
{'line_col'}, -- Show line and column numbers
|
|
||||||
},
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Disable separators and reduce padding for a minimal look
|
|
||||||
options = {
|
|
||||||
separators = true, -- No separators between components
|
|
||||||
padding = 0, -- Minimal padding for a compact look
|
|
||||||
},
|
|
||||||
|
|
||||||
-- Make it look cohesive with the command line
|
|
||||||
colors = {
|
|
||||||
active = '#282c34', -- Dark background for the active window
|
|
||||||
inactive = '#3e4451', -- Slightly lighter background for inactive windows
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
-- Set Neovim options to make the command line always visible and match the style
|
|
||||||
vim.opt.cmdheight = 0 -- Always show the command line
|
|
||||||
vim.cmd [[
|
|
||||||
highlight StatusLine guibg=#282c34 guifg=#abb2bf
|
|
||||||
highlight CmdLine guibg=#282c34 guifg=#abb2bf
|
|
||||||
]]
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
|
|
9
nvim/lua/kickstart/plugins/markdown-preview.lua
Normal file
9
nvim/lua/kickstart/plugins/markdown-preview.lua
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
return {
|
||||||
|
'iamcco/markdown-preview.nvim',
|
||||||
|
cmd = { 'MarkdownPreviewToggle', 'MarkdownPreview', 'MarkdownPreviewStop' },
|
||||||
|
ft = { 'markdown' },
|
||||||
|
build = function()
|
||||||
|
vim.fn['mkdp#util#install']()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
Loading…
Reference in a new issue