made option changes and added neo-tree
This commit is contained in:
parent
5b91f7e201
commit
e7b7d3d207
4 changed files with 104 additions and 18 deletions
|
|
@ -1,20 +1,20 @@
|
|||
return {
|
||||
"echasnovski/mini.pairs",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader>up",
|
||||
function()
|
||||
local Util = require("lazy.core.util")
|
||||
vim.g.minipairs_disable = not vim.g.minipairs_disable
|
||||
if vim.g.minipairs_disable then
|
||||
Util.warn("Disabled auto pairs", { title = "Option" })
|
||||
else
|
||||
Util.info("Enabled auto pairs", { title = "Option" })
|
||||
end
|
||||
end,
|
||||
desc = "Toggle auto pairs",
|
||||
}
|
||||
"echasnovski/mini.pairs",
|
||||
event = "VeryLazy",
|
||||
opts = {},
|
||||
keys = {
|
||||
{
|
||||
"<leader>up",
|
||||
function()
|
||||
local Util = require("lazy.core.util")
|
||||
vim.g.minipairs_disable = not vim.g.minipairs_disable
|
||||
if vim.g.minipairs_disable then
|
||||
Util.warn("Disabled auto pairs", { title = "Option" })
|
||||
else
|
||||
Util.info("Enabled auto pairs", { title = "Option" })
|
||||
end
|
||||
end,
|
||||
desc = "Toggle auto pairs",
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
74
lua/custom/plugins/neo-tree.lua
Normal file
74
lua/custom/plugins/neo-tree.lua
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
return {
|
||||
'nvim-neo-tree/neo-tree.nvim',
|
||||
version = '*',
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'nvim-tree/nvim-web-devicons', -- not strictly required, but recommended
|
||||
'MunifTanjim/nui.nvim',
|
||||
},
|
||||
config = function()
|
||||
vim.keymap.set('n', '<leader>.', '<cmd>Neotree filesystem reveal float<CR>', { desc = 'Reveal File [.]' })
|
||||
vim.keymap.set('n', '<leader>gs', '<cmd>Neotree git_status reveal float<CR>', { desc = 'Reveal [G]it [S]tatus' })
|
||||
|
||||
require('neo-tree').setup {
|
||||
default_component_configs = {
|
||||
icon = {
|
||||
-- folder_closed = '+',
|
||||
-- folder_open = '−',
|
||||
-- folder_empty = '',
|
||||
-- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
|
||||
-- then these will never be used.
|
||||
default = '*',
|
||||
highlight = 'NeoTreeFileIcon',
|
||||
},
|
||||
git_status = {
|
||||
symbols = {
|
||||
-- Change type
|
||||
added = '', -- or "✚", but this is redundant info if you use git_status_colors on the name
|
||||
modified = '', -- or "", but this is redundant info if you use git_status_colors on the name
|
||||
-- deleted = '×', -- this can only be used in the git_status source
|
||||
-- renamed = 'r', -- this can only be used in the git_status source
|
||||
-- Status type
|
||||
untracked = '??',
|
||||
ignored = '',
|
||||
unstaged = 'M',
|
||||
staged = 'A',
|
||||
conflict = '⁉︎',
|
||||
},
|
||||
},
|
||||
},
|
||||
window = {
|
||||
position = 'float',
|
||||
mappings = {
|
||||
['a'] = {
|
||||
'add',
|
||||
config = {
|
||||
show_path = 'absolute',
|
||||
},
|
||||
},
|
||||
|
||||
['m'] = {
|
||||
'move',
|
||||
config = {
|
||||
show_path = 'absolute',
|
||||
},
|
||||
},
|
||||
|
||||
['c'] = {
|
||||
'copy',
|
||||
config = {
|
||||
show_path = 'absolute',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
filesystem = {
|
||||
use_libuv_file_watcher = true,
|
||||
filtered_items = {
|
||||
visible = true,
|
||||
hide_dotfiles = false,
|
||||
},
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue