omg neorg works nowww

This commit is contained in:
2026-02-13 20:13:08 +00:00
parent 7f6429312c
commit ac4759406c
4 changed files with 45 additions and 30 deletions

View File

@@ -1,18 +1,28 @@
return {
"nvim-treesitter/nvim-treesitter",
lazy = false,
branch = "master",
build = ":TSUpdate",
config = function()
vim.api.nvim_create_autocmd("User", {
pattern = "TSUpdate",
callback = function()
require("nvim-treesitter.parsers").norg = {
install_info = {
url = "https://github.com/nvim-neorg/tree-sitter-norg",
revision = "HEAD",
},
}
end,
require("nvim-treesitter.configs").setup({
highlight = { enable = true },
ensure_installed = {
"bash",
"html",
"javascript",
"json",
"lua",
"norg",
"markdown",
"markdown_inline",
"python",
"query",
"regex",
"tsx",
"typescript",
"vim",
"yaml",
},
})
end,
}

View File

@@ -0,0 +1,23 @@
return {
"nvim-neorg/neorg",
lazy = false,
version = "*",
config = function()
require("neorg").setup({
load = {
["core.defaults"] = {},
["core.concealer"] = {},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/notes",
},
default_workspace = "notes",
},
},
},
})
vim.wo.foldlevel = 99
vim.wo.conceallevel = 2
end,
}

View File

@@ -1,18 +1,12 @@
return {
"nvim-telescope/telescope.nvim",
tag = "0.1.8",
dependencies = { "nvim-lua/plenary.nvim" },
dependencies = { "nvim-lua/plenary.nvim", { "nvim-telescope/telescope-fzf-native.nvim", build = "make" } },
config = function()
require("telescope").setup({
defaults = {
file_ignore_patterns = { ".git", ".node_modules" },
},
pickers = {
find_files = {
-- `hidden = true` will still show the inside of `.git/` as it's not `.gitignore`d.
find_command = { "rg", "--files", "--hidden", "--glob", "!**/.git/*", "-L" },
},
},
extensions = {
file_browser = {
theme = "ivy",