Compare commits

..

No commits in common. "6f0048ce70cc3c6f0f7a7ad44fe0aafde5006bad" and "a58443e9e5b6afdaa2d23a54d6abe81c6496b3a6" have entirely different histories.

3 changed files with 27 additions and 36 deletions

View file

@ -1,24 +0,0 @@
return {
"stevearc/conform.nvim",
config = function()
require("conform").setup({
formatters_by_ft = {
lua = { "stylua" },
python = function(bufnr)
if require("conform").get_formatter_info("ruff_format", bufnr).available then
return { "ruff_fix", "ruff_format" }
else
return { "isort", "black", "flake8" }
end
end,
scala = { "scalafmt" },
swift = { "swift_format" },
["*"] = { "trim_whitespace", "trim_newlines" },
},
format_on_save = {
timeout_ms = 500,
lsp_fallback = true,
},
})
end,
}

27
lua/plugins/obsidian.lua Normal file
View file

@ -0,0 +1,27 @@
return {
"epwalsh/obsidian.nvim",
lazy = true,
event = {
"BufReadPre " .. vim.fn.expand "~" .. "/obsidian",
"BufNewFile " .. vim.fn.expand "~" .. "/obsidian",
},
dependencies = {
"nvim-lua/plenary.nvim",
},
keys = {
{ "<leader>no", "<cmd>ObsidianQuickSwitch<cr>", desc = "Obsidian Quick Switch (Telescope)" },
{ "<leader>nn", "<cmd>ObsidianNew<cr>", desc = "Create a new obsidian note" },
{ "<leader>ns", "<cmd>ObsidianSearch<cr>", desc = "Obsidian Search" },
{ "<leader>nd", "<cmd>ObsidianToday<cr>", desc = "Obsidian new daily note" },
},
opts = {
workspaces = {
{
name = "personal",
path = "~/obsidian",
},
},
use_advanced_uri = false,
},
}

View file

@ -1,12 +0,0 @@
return {
"folke/todo-comments.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
keys = {
{ "<leader>t", "<cmd>TodoTelescope<cr>", desc = "To Do Comments" },
},
opts = {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
}