From 235d3908a7d86ffeb18d54ec83045709f8e11742 Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Thu, 22 Feb 2024 18:30:29 -0500 Subject: [PATCH] add obsidian nvim plugin currently disabled cuz it sucks --- nvim/lazy-lock.json | 2 ++ nvim/lua/juancwu/plugins/lsp/init.lua | 1 + nvim/lua/juancwu/plugins/obsidian.lua | 34 +++++++++++++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 nvim/lua/juancwu/plugins/obsidian.lua diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index f05c3d2..57ff105 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -3,6 +3,7 @@ "LuaSnip": { "branch": "master", "commit": "57c9f5c31b3d712376c704673eac8e948c82e9c1" }, "catppuccin": { "branch": "main", "commit": "079500a625f3ae5aa6efb758f1a17fe4c7a57e52" }, "cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" }, + "conform.nvim": { "branch": "master", "commit": "8b407bb6175846cdc4c499e2a8d28109615a2089" }, "fzf": { "branch": "master", "commit": "d21d5c9510170d74a7f959309da720b6df72ca01" }, "fzf-lua": { "branch": "main", "commit": "a1a2d0f42eaec400cc6918a8e898fc1f9c4dbc5f" }, "git.nvim": { "branch": "main", "commit": "741696687486f25f8b73d9e4c76ab2ede9998f39" }, @@ -27,6 +28,7 @@ "nvim-ts-autotag": { "branch": "main", "commit": "8515e48a277a2f4947d91004d9aa92c29fdc5e18" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "1277b4a1f451b0f18c0790e1a7f12e1e5fdebfee" }, "nvim-web-devicons": { "branch": "master", "commit": "a1425903ab52a0a0460622519e827f224e5b4fee" }, + "obsidian.nvim": { "branch": "main", "commit": "b5945fb94db35220b85c7e3ea7bc58a0b11c2ebc" }, "onedark.nvim": { "branch": "master", "commit": "c5476a091b0f1b4e853db91c91ff941f848a1cdd" }, "plenary.nvim": { "branch": "master", "commit": "55d9fe89e33efd26f532ef20223e5f9430c8b0c0" }, "rose-pine": { "branch": "main", "commit": "92762f4fa2144c05db760ea254f4c399a56a7ef5" }, diff --git a/nvim/lua/juancwu/plugins/lsp/init.lua b/nvim/lua/juancwu/plugins/lsp/init.lua index 08be60a..7d94348 100644 --- a/nvim/lua/juancwu/plugins/lsp/init.lua +++ b/nvim/lua/juancwu/plugins/lsp/init.lua @@ -37,6 +37,7 @@ return { javascriptreact = { "prettierd" }, typescriptreact = { "prettierd" }, go = { "gofumpt" }, + python = { "autopep8" }, }, format_on_save = function(bufnr) if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then diff --git a/nvim/lua/juancwu/plugins/obsidian.lua b/nvim/lua/juancwu/plugins/obsidian.lua new file mode 100644 index 0000000..16af114 --- /dev/null +++ b/nvim/lua/juancwu/plugins/obsidian.lua @@ -0,0 +1,34 @@ +return { + "epwalsh/obsidian.nvim", + version = "*", -- recommended, use latest release instead of latest commit + lazy = true, + ft = "markdown", + enabled = false, + -- Replace the above line with this if you only want to load obsidian.nvim for markdown files in your vault: + -- event = { + -- -- If you want to use the home shortcut '~' here you need to call 'vim.fn.expand'. + -- -- E.g. "BufReadPre " .. vim.fn.expand "~" .. "/my-vault/**.md" + -- "BufReadPre path/to/my-vault/**.md", + -- "BufNewFile path/to/my-vault/**.md", + -- }, + dependencies = { + -- Required. + "nvim-lua/plenary.nvim", + + -- see below for full list of optional dependencies 👇 + }, + opts = { + workspaces = { + { + name = "personal", + path = "~/Documents/Obsidian Vault", + }, + { + name = "work", + path = "~/vaults/work", + }, + }, + + -- see below for full list of options 👇 + }, +}