setup-complete-2024-08-19
This commit is contained in:
parent
1860184830
commit
84ea367081
6 changed files with 223 additions and 103 deletions
25
lua/custom/plugins/autotag.lua
Normal file
25
lua/custom/plugins/autotag.lua
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
return {
|
||||
'windwp/nvim-ts-autotag',
|
||||
config = function()
|
||||
require('nvim-ts-autotag').setup {
|
||||
opts = {
|
||||
-- Defaults
|
||||
enable_close = true, -- Auto close tags
|
||||
enable_rename = true, -- Auto rename pairs of tags
|
||||
enable_close_on_slash = false, -- Auto close on trailing </
|
||||
},
|
||||
-- Also override individual filetype configs, these take priority.
|
||||
-- Empty by default, useful if one of the "opts" global settings
|
||||
-- doesn't work well in a specific filetype
|
||||
per_filetype = {
|
||||
['xml'] = {
|
||||
enable_close = true,
|
||||
enable_rename = true, -- Auto rename pairs of tags
|
||||
},
|
||||
},
|
||||
aliases = {
|
||||
['conaryrecipe'] = 'xml',
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
12
lua/custom/plugins/barbecue.lua
Normal file
12
lua/custom/plugins/barbecue.lua
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
return {
|
||||
'utilyre/barbecue.nvim',
|
||||
name = 'barbecue',
|
||||
version = '*',
|
||||
dependencies = {
|
||||
'SmiteshP/nvim-navic',
|
||||
'nvim-tree/nvim-web-devicons', -- optional dependency
|
||||
},
|
||||
opts = {
|
||||
-- configurations go here
|
||||
},
|
||||
}
|
||||
42
lua/custom/plugins/harpoon.lua
Normal file
42
lua/custom/plugins/harpoon.lua
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
return {
|
||||
'ThePrimeagen/harpoon',
|
||||
branch = 'harpoon2',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
local harpoon = require 'harpoon'
|
||||
|
||||
harpoon:setup()
|
||||
|
||||
vim.keymap.set('n', '<leader>a', function()
|
||||
harpoon:list():add()
|
||||
end)
|
||||
vim.keymap.set('n', '<C-e>', function()
|
||||
harpoon.ui:toggle_quick_menu(harpoon:list())
|
||||
end)
|
||||
|
||||
vim.keymap.set('n', '<leader>1', function()
|
||||
harpoon:list():select(1)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>2', function()
|
||||
harpoon:list():select(2)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>3', function()
|
||||
harpoon:list():select(3)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader>4', function()
|
||||
harpoon:list():select(4)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader><C-h>', function()
|
||||
harpoon:list():replace_at(1)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader><C-j>', function()
|
||||
harpoon:list():replace_at(2)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader><C-k>', function()
|
||||
harpoon:list():replace_at(3)
|
||||
end)
|
||||
vim.keymap.set('n', '<leader><C-l>', function()
|
||||
harpoon:list():replace_at(4)
|
||||
end)
|
||||
end,
|
||||
}
|
||||
71
lua/custom/plugins/lualine.lua
Normal file
71
lua/custom/plugins/lualine.lua
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
return {
|
||||
'nvim-lualine/lualine.nvim',
|
||||
dependencies = { 'nvim-tree/nvim-web-devicons' },
|
||||
config = function()
|
||||
local lualine = require 'lualine'
|
||||
local lazy_status = require 'lazy.status' -- to configure lazy pending updates count
|
||||
|
||||
local colors = {
|
||||
blue = '#65D1FF',
|
||||
green = '#3EFFDC',
|
||||
violet = '#FF61EF',
|
||||
yellow = '#FFDA7B',
|
||||
red = '#FF4A4A',
|
||||
fg = '#c3ccdc',
|
||||
bg = '#112638',
|
||||
inactive_bg = '#2c3043',
|
||||
}
|
||||
|
||||
local my_lualine_theme = {
|
||||
normal = {
|
||||
a = { bg = colors.blue, fg = colors.bg, gui = 'bold' },
|
||||
b = { bg = colors.bg, fg = colors.fg },
|
||||
c = { bg = colors.bg, fg = colors.fg },
|
||||
},
|
||||
insert = {
|
||||
a = { bg = colors.green, fg = colors.bg, gui = 'bold' },
|
||||
b = { bg = colors.bg, fg = colors.fg },
|
||||
c = { bg = colors.bg, fg = colors.fg },
|
||||
},
|
||||
visual = {
|
||||
a = { bg = colors.violet, fg = colors.bg, gui = 'bold' },
|
||||
b = { bg = colors.bg, fg = colors.fg },
|
||||
c = { bg = colors.bg, fg = colors.fg },
|
||||
},
|
||||
command = {
|
||||
a = { bg = colors.yellow, fg = colors.bg, gui = 'bold' },
|
||||
b = { bg = colors.bg, fg = colors.fg },
|
||||
c = { bg = colors.bg, fg = colors.fg },
|
||||
},
|
||||
replace = {
|
||||
a = { bg = colors.red, fg = colors.bg, gui = 'bold' },
|
||||
b = { bg = colors.bg, fg = colors.fg },
|
||||
c = { bg = colors.bg, fg = colors.fg },
|
||||
},
|
||||
inactive = {
|
||||
a = { bg = colors.inactive_bg, fg = colors.semilightgray, gui = 'bold' },
|
||||
b = { bg = colors.inactive_bg, fg = colors.semilightgray },
|
||||
c = { bg = colors.inactive_bg, fg = colors.semilightgray },
|
||||
},
|
||||
}
|
||||
|
||||
-- configure lualine with modified theme
|
||||
lualine.setup {
|
||||
options = {
|
||||
theme = my_lualine_theme,
|
||||
},
|
||||
sections = {
|
||||
lualine_x = {
|
||||
{
|
||||
lazy_status.updates,
|
||||
cond = lazy_status.has_updates,
|
||||
color = { fg = '#ff9e64' },
|
||||
},
|
||||
{ 'encoding' },
|
||||
{ 'fileformat' },
|
||||
{ 'filetype' },
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
|
|
@ -4,6 +4,8 @@ return {
|
|||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||
-- See `:help ibl`
|
||||
main = 'ibl',
|
||||
opts = {},
|
||||
opts = {
|
||||
indent = { char = '▏' },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue