refactor(nvim): move some config into separate files

chezmoi
sgoudham 2 years ago
parent 148b253703
commit 912f42e510
Signed by: hammy
GPG Key ID: 44E818FD5457EEA4

@ -0,0 +1,3 @@
return {
"mong8se/actually.nvim",
}

@ -0,0 +1,10 @@
return {
{
"stevearc/dressing.nvim",
opts = {
input = {
insert_only = false,
},
},
},
}

@ -0,0 +1,6 @@
return {
{
"iamcco/markdown-preview.nvim",
build = "cd app && yarn install",
},
}

@ -0,0 +1,30 @@
return {
{
"nvim-tree/nvim-tree.lua",
dependencies = "nvim-tree/nvim-web-devicons",
config = function()
require("nvim-tree").setup({
hijack_cursor = true,
hijack_netrw = false,
sync_root_with_cwd = true,
respect_buf_cwd = true,
update_focused_file = {
enable = true,
update_root = false,
},
view = {
centralize_selection = true,
width = {
max = 60
}
},
renderer = {
group_empty = true,
},
})
end,
keys = {
{ "<leader>e", "<cmd>NvimTreeToggle<cr>", desc = "Open Explorer" },
},
},
}

@ -0,0 +1,8 @@
return {
{
"andweeb/presence.nvim",
opts = {
neovim_image_text = "Home Sweet Home"
},
},
}

@ -0,0 +1,25 @@
return {
{
"folke/which-key.nvim",
config = function()
local wk = require("which-key")
wk.setup({
window = {
border = "rounded",
},
})
wk.register({
f = { name = "Find" },
g = { name = "Git" },
-- j = { name = "Jump" },
l = { name = "LSP" },
-- o = { name = "Open" },
t = { name = "Tasks" },
d = { name = "Debug" },
b = { name = "Breakpoint" },
z = { name = "Zen" },
}, { prefix = "<leader>" })
end,
},
}
Loading…
Cancel
Save