Add obsidian support

This commit is contained in:
2025-02-05 21:01:20 +02:00
parent 0110e31a7d
commit 464e342e58
10 changed files with 170 additions and 51 deletions

View File

@@ -79,12 +79,32 @@ vim.api.nvim_create_autocmd({ "BufWinEnter" }, {
end,
}) ]]
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
group = vim.api.nvim_create_augroup("AutoReloadConfig", { clear = true }),
pattern = { "**/eww.yuck", "**/eww.scss" },
callback = function()
vim.fn.system("eww reload")
end,
})
vim.filetype.add({
pattern = {
[".*/hypr/.*%.conf"] = "hyprlang",
},
})
-- Hyprlang LSP
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
pattern = { "*.hl", "hypr*.conf" },
callback = function(_)
vim.lsp.start({
name = "hyprlang",
cmd = { "hyprls" },
root_dir = vim.fn.getcwd(),
})
end,
})
vim.api.nvim_create_autocmd({ "VimEnter" }, {
callback = function()
if vim.env.TMUX_PLUGIN_MANAGER_PATH then