diff options
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 53 | ||||
| -rw-r--r-- | nvim/lazy-lock.json | 10 |
2 files changed, 58 insertions, 5 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 1aca305..24e5b27 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,3 +1,7 @@ +-- disable netrw before plugins load +vim.g.loaded_netrw = 1 +vim.g.loaded_netrwPlugin = 1 + -- Plugins local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then @@ -14,14 +18,12 @@ require("lazy").setup({ 'nvim-telescope/telescope.nvim', dependencies = { 'nvim-lua/plenary.nvim', - { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }, - { 'nvim-telescope/telescope-file-browser.nvim' }, + { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }, }, keys = { { '<leader>ff', '<cmd>Telescope find_files<cr>' }, { '<leader>fg', '<cmd>Telescope live_grep<cr>' }, { '<leader>fb', '<cmd>Telescope buffers<cr>' }, - { '<leader>e', '<cmd>Telescope file_browser<cr>' }, }, }, { @@ -42,6 +44,51 @@ require("lazy").setup({ }, }, { + 'stevearc/oil.nvim', + dependencies = { 'nvim-tree/nvim-web-devicons' }, + opts = { + default_file_explorer = true, + view_options = { show_hidden = true }, + keymaps = { + ['l'] = { 'actions.select', opts = {}, desc = 'Open file or directory' }, + ['h'] = { 'actions.parent', desc = 'Go to parent directory' }, + }, + }, + keys = { + { '-', '<cmd>Oil<cr>', desc = 'Open parent directory' }, + { '<leader>e', '<cmd>Oil<cr>', desc = 'Open file explorer' }, + }, + }, + { + "nvim-neorg/neorg", + lazy = false, + version = "*", + dependencies = { + "nvim-lua/plenary.nvim", + { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + opts = {}, + }, + }, + config = function() + require("neorg").setup({ + load = { + ["core.defaults"] = {}, + ["core.concealer"] = {}, + ["core.dirman"] = { + config = { + workspaces = { + notes = "~/notes", + }, + default_workspace = "notes", + }, + }, + }, + }) + end, + }, + { "iamcco/markdown-preview.nvim", cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, build = "cd app && npm install", diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index b3fa85b..03666f4 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,6 +1,12 @@ { - "gitsigns.nvim": { "branch": "main", "commit": "7c4faa3540d0781a28588cafbd4dd187a28ac6e3" }, - "lazy.nvim": { "branch": "main", "commit": "85c7ff3711b730b4030d03144f6db6375044ae82" }, + "gitsigns.nvim": { "branch": "main", "commit": "0a80125bace82d82847d40bc2c38a22d62c6dc2d" }, + "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, + "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, + "nvim-dap": { "branch": "master", "commit": "a9d8cb68ee7184111dc66156c4a2ebabfbe01bc5" }, + "nvim-dap-ui": { "branch": "master", "commit": "f5b6673f374626515401c5bc51b005f784a4f252" }, + "nvim-nio": { "branch": "master", "commit": "21f5324bfac14e22ba26553caf69ec76ae8a7662" }, + "nvim-web-devicons": { "branch": "master", "commit": "c72328a5494b4502947a022fe69c0c47e53b6aa6" }, + "oil.nvim": { "branch": "master", "commit": "0fcc83805ad11cf714a949c98c605ed717e0b83e" }, "plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "6fea601bd2b694c6f2ae08a6c6fab14930c60e2c" }, "telescope.nvim": { "branch": "master", "commit": "5255aa27c422de944791318024167ad5d40aad20" } |