Trying neotree, rooter.. updating some keymaps

master
Dustin Swan 2 years ago
parent 5f0a64f64c
commit ab80b41d43
Signed by: dustinswan
GPG Key ID: AB49BD6B2B3A6377

@ -124,13 +124,15 @@ require('packer').startup(function(use)
} }
use 'nvim-tree/nvim-web-devicons' use 'nvim-tree/nvim-web-devicons'
use { use {
'nvim-tree/nvim-tree.lua', "nvim-neo-tree/neo-tree.nvim",
requires = { 'nvim-tree/nvim-web-devicons' }, branch = "v2.x",
tag = 'nightly', -- optional, updated every week. (see issue #1193) requires = {
config = function() "nvim-lua/plenary.nvim",
require("nvim-tree").setup() "nvim-tree/nvim-web-devicons",
end "MunifTanjim/nui.nvim",
}
} }
use({ use({
@ -269,6 +271,13 @@ require('packer').startup(function(use)
end end
} }
use {
'notjedi/nvim-rooter.lua',
config = function()
require'nvim-rooter'.setup()
end
}
if packer_bootstrap then if packer_bootstrap then
require('packer').sync() require('packer').sync()
end end
@ -282,17 +291,26 @@ wk.register({
b = { b = {
name = "Buffer", name = "Buffer",
d = { ":bdelete!<cr>", "Delete" }, d = { ":bdelete!<cr>", "Delete" },
b = { "<cmd>Telescope buffers<cr>", "Buffers" },
t = { ":Neotree buffers<cr>", "Tree" },
}, },
c = "Comment", c = "Comment",
e = { ":NvimTreeToggle<cr>", "File Tree" },
f = { f = {
name = "Find", name = "File",
f = { "<cmd>Telescope find_files<cr>", "Files" }, f = { "<cmd>Telescope find_files<cr>", "Files" },
g = { "<cmd>Telescope live_grep<cr>", "Grep" }, g = { "<cmd>Telescope live_grep<cr>", "Grep" },
r = { "<cmd>Telescope oldfiles<cr>", "Recent Files" }, r = { "<cmd>Telescope oldfiles<cr>", "Recent" },
b = { "<cmd>Telescope buffers<cr>", "Buffers" }, t = { ":Neotree<cr>", "Tree" },
},
g = {
name = "Git",
g = { ":2TermExec cmd='gitui'<cr>", "Gitui" },
t = { ":Neotree git_status<cr>", "Tree" },
b = { ":Gitsigns blame_line<cr>", "Blame" },
d = { ":DiffviewOpen<cr>", "Diff" },
h = { ":DiffviewFileHistory<cr>", "History" },
}, },
F = { ":lua vim.lsp.buf.format()<cr>", "Format Buffer" }, F = { ":lua vim.lsp.buf.format()<cr>", "Format" },
J = { ":SplitjoinJoin<cr>", "Join" }, J = { ":SplitjoinJoin<cr>", "Join" },
t = { t = {
name = "Table", name = "Table",

Loading…
Cancel
Save