Testing out nvim-tree instead of oil

This commit is contained in:
Dimitar Ivanov 2023-09-28 14:34:08 +03:00 committed by Dimitar Ivanov
parent 7bea25c68d
commit ad46231862
1 changed files with 35 additions and 16 deletions

View File

@ -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 = { -- -- keymaps = {
-- ["<CR>"] = "actions.select_vsplit", -- -- ["<CR>"] = "actions.select_vsplit",
-- ["<C-s>"] = "actions.select", -- -- ["<C-s>"] = "actions.select",
-- }, -- -- },
view_options = { -- view_options = {
show_hidden = true -- 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'