add more plugins
This commit is contained in:
parent
d8aaee5fb0
commit
f04fdc021f
|
@ -6,22 +6,26 @@ return {
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
"MunifTanjim/nui.nvim",
|
"MunifTanjim/nui.nvim",
|
||||||
},
|
},
|
||||||
config = function()
|
opts = {
|
||||||
-- Unless you are still migrating, remove the deprecated commands from v1.x
|
window = {
|
||||||
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
|
position = "float",
|
||||||
|
mappings = {
|
||||||
require('neo-tree').setup {
|
["<space>"] = "none",
|
||||||
window = {
|
|
||||||
position = "float",
|
|
||||||
},
|
},
|
||||||
filesystem = {
|
},
|
||||||
filtered_items = {
|
filesystem = {
|
||||||
visible = true,
|
filtered_items = {
|
||||||
hide_dotfiles = false,
|
visible = true,
|
||||||
hide_gitignored = false,
|
hide_dotfiles = false,
|
||||||
},
|
hide_gitignored = false,
|
||||||
hijack_netrw_behavior = "open_current",
|
|
||||||
},
|
},
|
||||||
}
|
bind_to_cwd = false,
|
||||||
|
follow_current_file = true,
|
||||||
|
hijack_netrw_behavior = "open_current",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
config = function(_, opts)
|
||||||
|
vim.g.neo_tree_remove_legacy_commands = 1
|
||||||
|
require("neo-tree").setup(opts)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,16 @@ return {
|
||||||
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require('alpha').setup(require('alpha.themes.dashboard').config)
|
local dashboard = require("alpha.themes.dashboard")
|
||||||
|
dashboard.section.buttons.val = {
|
||||||
|
dashboard.button("f", " " .. " Find file", ":Telescope find_files <CR>"),
|
||||||
|
dashboard.button("n", " " .. " New file", ":ene <BAR> startinsert <CR>"),
|
||||||
|
dashboard.button("r", " " .. " Recent files", ":Telescope oldfiles <CR>"),
|
||||||
|
dashboard.button("g", " " .. " Find text", ":Telescope live_grep <CR>"),
|
||||||
|
dashboard.button("c", " " .. " Config", ":e $MYVIMRC <CR>"),
|
||||||
|
dashboard.button("s", " " .. " Restore Session", [[:lua require("persistence").load() <cr>]]),
|
||||||
|
dashboard.button("q", " " .. " Quit", ":qa<CR>"),
|
||||||
|
}
|
||||||
|
require('alpha').setup(dashboard.opts)
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,6 +12,7 @@ return {
|
||||||
"famiu/bufdelete.nvim",
|
"famiu/bufdelete.nvim",
|
||||||
"tpope/vim-repeat",
|
"tpope/vim-repeat",
|
||||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||||
|
"windwp/nvim-ts-autotag",
|
||||||
{
|
{
|
||||||
"lukas-reineke/virt-column.nvim",
|
"lukas-reineke/virt-column.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
|
@ -111,4 +112,49 @@ return {
|
||||||
require('mini.surround').setup(opts)
|
require('mini.surround').setup(opts)
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"rmagatti/goto-preview",
|
||||||
|
config = function()
|
||||||
|
require('goto-preview').setup {
|
||||||
|
width = 100, -- Width of the floating window
|
||||||
|
height = 20, -- Height of the floating window
|
||||||
|
default_mappings = true, -- Bind default mappings
|
||||||
|
debug = false, -- Print debug information
|
||||||
|
opacity = nil, -- 0-100 opacity level of the floating window where 100 is fully transparent.
|
||||||
|
post_open_hook = nil -- A function taking two arguments, a buffer and a window to be ran as a hook.
|
||||||
|
}
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"simrat39/symbols-outline.nvim",
|
||||||
|
config = function()
|
||||||
|
require('symbols-outline').setup()
|
||||||
|
end
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ray-x/lsp_signature.nvim",
|
||||||
|
event = "BufRead",
|
||||||
|
config = function()
|
||||||
|
require("lsp_signature").on_attach()
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"ellisonleao/glow.nvim",
|
||||||
|
config = true,
|
||||||
|
cmd = "Glow",
|
||||||
|
ft = {
|
||||||
|
"markdown"
|
||||||
|
},
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
build = "cd app && npm install",
|
||||||
|
ft = {
|
||||||
|
"markdown"
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
vim.g.mkdp_auto_start = 0
|
||||||
|
vim.g.mkdp_filetypes = { "markdown" }
|
||||||
|
end,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,8 +12,7 @@ return {
|
||||||
null_ls.builtins.formatting.black,
|
null_ls.builtins.formatting.black,
|
||||||
null_ls.builtins.formatting.latexindent,
|
null_ls.builtins.formatting.latexindent,
|
||||||
null_ls.builtins.formatting.shfmt,
|
null_ls.builtins.formatting.shfmt,
|
||||||
null_ls.builtins.code_actions.shellcheck,
|
null_ls.builtins.diagnostics.markdownlint,
|
||||||
null_ls.builtins.diagnostics.shellcheck,
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
end,
|
end,
|
||||||
|
|
Loading…
Reference in New Issue