Switched to oil.nvim for gp instead of neotree, added obsidian.nvim

This commit is contained in:
Kyren223
2024-07-01 18:42:18 +03:00
parent ae9198c554
commit 7ee0b2d218
4 changed files with 18 additions and 1 deletions

View File

@@ -27,6 +27,7 @@
"nvim-surround": { "branch": "main", "commit": "ec2dc7671067e0086cdf29c2f5df2dd909d5f71f" },
"nvim-treesitter": { "branch": "master", "commit": "2e9c346aefda680bd14ebf40a50c2897fd637bc2" },
"nvim-web-devicons": { "branch": "master", "commit": "c0cfc1738361b5da1cd0a962dd6f774cc444f856" },
"obsidian.nvim": { "branch": "main", "commit": "f0bc495b4a3852a83b48636e9f564586f5e2d29e" },
"oil.nvim": { "branch": "master", "commit": "65c53dbe4f2140236590a7568a5f22a77d16be39" },
"plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" },

View File

@@ -8,6 +8,5 @@ return {
},
config = function()
vim.keymap.set('n', '<leader>gp', ':Neotree toggle reveal left<cr>', { desc = '[G]oto [P]roject (toggle)' })
vim.keymap.set('n', 'gp', ':Neotree float<cr>', { desc = '[G]oto [P]roject (floating)' })
end,
}

View File

@@ -0,0 +1,15 @@
return {
'epwalsh/obsidian.nvim',
version = '*',
lazy = true,
ft = 'markdown',
dependencies = { 'nvim-lua/plenary.nvim', 'hrsh7th/nvim-cmp' },
opts = {
workspaces = {
{
name = 'personal',
path = '/mnt/c/users/owner/Projects/ObsidianSync',
},
},
},
}

View File

@@ -4,5 +4,7 @@ return {
opts = {},
config = function ()
require("oil").setup()
vim.keymap.set('n', 'gp', ':Oil --float<cr>', { desc = '[G]oto [P]roject (floating)' })
vim.keymap.set('n', '<leader>of', ':Oil --float<cr>', { desc = '[G]oto [P]roject (floating)' })
end
}