Testing out nvim-tree instead of oil
This commit is contained in:
parent
7bea25c68d
commit
ad46231862
49
init.lua
49
init.lua
|
@ -220,8 +220,15 @@ require('lazy').setup({
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
-- {
|
||||||
|
-- 'stevearc/oil.nvim',
|
||||||
|
-- opts = {},
|
||||||
|
-- -- Optional dependencies
|
||||||
|
-- dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
-- },
|
||||||
|
|
||||||
{
|
{
|
||||||
'stevearc/oil.nvim',
|
'nvim-tree/nvim-tree.lua',
|
||||||
opts = {},
|
opts = {},
|
||||||
-- Optional dependencies
|
-- Optional dependencies
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
|
@ -256,7 +263,10 @@ require('lazy').setup({
|
||||||
-- Enable `lukas-reineke/indent-blankline.nvim`
|
-- Enable `lukas-reineke/indent-blankline.nvim`
|
||||||
-- See `:help ibl`
|
-- See `:help ibl`
|
||||||
main = 'ibl',
|
main = 'ibl',
|
||||||
opts = {},
|
opts = {
|
||||||
|
char = '┊',
|
||||||
|
show_trailing_blankline_indent = false,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
-- "gc" to comment visual regions/lines
|
-- "gc" to comment visual regions/lines
|
||||||
|
@ -725,20 +735,20 @@ cmp.setup {
|
||||||
}
|
}
|
||||||
|
|
||||||
-- FS plugin
|
-- FS plugin
|
||||||
require("oil").setup({
|
-- require("oil").setup({
|
||||||
colums = {
|
-- colums = {
|
||||||
"icon",
|
-- "icon",
|
||||||
"permissions",
|
-- "permissions",
|
||||||
"size",
|
-- "size",
|
||||||
},
|
|
||||||
-- keymaps = {
|
|
||||||
-- ["<CR>"] = "actions.select_vsplit",
|
|
||||||
-- ["<C-s>"] = "actions.select",
|
|
||||||
-- },
|
-- },
|
||||||
view_options = {
|
-- -- keymaps = {
|
||||||
show_hidden = true
|
-- -- ["<CR>"] = "actions.select_vsplit",
|
||||||
}
|
-- -- ["<C-s>"] = "actions.select",
|
||||||
})
|
-- -- },
|
||||||
|
-- view_options = {
|
||||||
|
-- show_hidden = true
|
||||||
|
-- }
|
||||||
|
-- })
|
||||||
|
|
||||||
-- Copilot
|
-- Copilot
|
||||||
require('copilot').setup({
|
require('copilot').setup({
|
||||||
|
@ -773,6 +783,15 @@ vim.api.nvim_set_keymap('n', '<Leader>vv', ':Vista!!<CR>', { noremap = true, des
|
||||||
|
|
||||||
vim.g.vista_fzf_preview = { 'right:50%' }
|
vim.g.vista_fzf_preview = { 'right:50%' }
|
||||||
|
|
||||||
|
-- NVIM Tree
|
||||||
|
require("nvim-tree").setup()
|
||||||
|
vim.api.nvim_set_keymap('n', '<Leader>ntt', ':NvimTreeToggle<CR>', { noremap = true, desc = "[N]Vim [T]ree [T]oggle" })
|
||||||
|
vim.api.nvim_set_keymap('n', '<Leader>ntT', ':NvimTreeToggle ', { noremap = true, desc = "[N]Vim [T]ree [T]oggle" })
|
||||||
|
vim.api.nvim_set_keymap('n', '<Leader>ntff', ':NvimTreeFindFile<CR>', { noremap = true, desc = "[N]Vim [T]ree [T]oggle" })
|
||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
--
|
||||||
|
|
||||||
-- Set conf for rhubarb
|
-- Set conf for rhubarb
|
||||||
vim.g.github_enterprise_urls = {
|
vim.g.github_enterprise_urls = {
|
||||||
'https://github.wdf.sap.corp', 'github.tools.sap'
|
'https://github.wdf.sap.corp', 'github.tools.sap'
|
||||||
|
|
Loading…
Reference in New Issue