Add extra plugins
This commit is contained in:
parent
ca75729c7a
commit
2d4fe69a06
10 changed files with 201 additions and 0 deletions
3
lua/custom/plugins/copilot.lua
Normal file
3
lua/custom/plugins/copilot.lua
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"github/copilot.vim"
|
||||
}
|
||||
15
lua/custom/plugins/harpoon.lua
Normal file
15
lua/custom/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
'thePrimeagen/harpoon',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function ()
|
||||
local mark = require('harpoon.mark')
|
||||
vim.keymap.set("n", "<leader>ha", mark.add_file)
|
||||
|
||||
local ui = require('harpoon.ui')
|
||||
vim.keymap.set("n", "<c-e>", ui.toggle_quick_menu)
|
||||
vim.keymap.set("n", "<c-h>", function() ui.nav_file(1) end)
|
||||
vim.keymap.set("n", "<c-t>", function() ui.nav_file(2) end)
|
||||
vim.keymap.set("n", "<c-n>", function() ui.nav_file(3) end)
|
||||
vim.keymap.set("n", "<c-s>", function() ui.nav_file(4) end)
|
||||
end
|
||||
}
|
||||
45
lua/custom/plugins/lualine.lua
Normal file
45
lua/custom/plugins/lualine.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
return {
|
||||
{
|
||||
'nvim-lualine/lualine.nvim',
|
||||
opts = {
|
||||
options = {
|
||||
icons_enabled = true,
|
||||
theme = 'onedark',
|
||||
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 = {},
|
||||
},
|
||||
},
|
||||
}
|
||||
9
lua/custom/plugins/mardown_preview.lua
Normal file
9
lua/custom/plugins/mardown_preview.lua
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
return {
|
||||
"iamcco/markdown-preview.nvim",
|
||||
config = function()
|
||||
vim.fn["mkdp#util#install"]()
|
||||
|
||||
vim.keymap.set("n", "<leader>m", "<CMD>MarkdownPreview<CR>")
|
||||
vim.keymap.set("n", "<leader>mn", "<CMD>MarkdownPreviewStop<CR>")
|
||||
end,
|
||||
}
|
||||
|
|
@ -13,5 +13,7 @@ return {
|
|||
},
|
||||
config = function ()
|
||||
require('neo-tree').setup {}
|
||||
vim.keymap.set("n", "<leader>nt", "<CMD>Neotree toggle<CR>")
|
||||
vim.keymap.set("n", "<leader>o", "<CMD>Neotree focus<CR>")
|
||||
end
|
||||
}
|
||||
|
|
|
|||
24
lua/custom/plugins/toggleterm.lua
Normal file
24
lua/custom/plugins/toggleterm.lua
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
return {
|
||||
'akinsho/toggleterm.nvim',
|
||||
version = "*",
|
||||
config = function()
|
||||
local term = require('toggleterm')
|
||||
|
||||
term.setup {
|
||||
size = 20,
|
||||
open_mapping = [[<leader>tf]],
|
||||
shading_factor = 2,
|
||||
direction = 'float',
|
||||
float_opts = {
|
||||
border = 'curved',
|
||||
highlights = {
|
||||
border = "Normal",
|
||||
background = "Normal",
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
vim.keymap.set("n", "<leader>th", "<CMD>ToggleTerm size=10 direction=horizontal<CR>")
|
||||
vim.keymap.set("n", "<leader>tv", "<CMD>ToggleTerm size=80 direction=vertical<CR>")
|
||||
end
|
||||
}
|
||||
6
lua/custom/plugins/undotree.lua
Normal file
6
lua/custom/plugins/undotree.lua
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
return {
|
||||
'mbbill/undotree',
|
||||
config =function ()
|
||||
vim.keymap.set("n", "<leader>u", "<CMD>UndotreeToggle<CR>")
|
||||
end
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue