omg neorg works nowww
This commit is contained in:
14
init.lua
14
init.lua
@@ -59,7 +59,7 @@ vim.keymap.set("n", "<down>", '<cmd>echo "Use j to move!!"<CR>')
|
|||||||
vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true })
|
vim.keymap.set("i", "<C-BS>", "<C-W>", { noremap = true })
|
||||||
|
|
||||||
-- Keybinds for MiniSessions
|
-- Keybinds for MiniSessions
|
||||||
vim.keymap.set("n", "<leader>qs", function() -- quit and save session local
|
vim.keymap.set("n", "<leader>qj", function() -- quit and save session local
|
||||||
MiniSessions.write(".session")
|
MiniSessions.write(".session")
|
||||||
vim.cmd("wqa")
|
vim.cmd("wqa")
|
||||||
end, { noremap = true })
|
end, { noremap = true })
|
||||||
@@ -73,15 +73,3 @@ vim.keymap.set("n", "<leader>qd", function() -- quit and delete session
|
|||||||
MiniSessions.delete(".session")
|
MiniSessions.delete(".session")
|
||||||
vim.cmd("wqa")
|
vim.cmd("wqa")
|
||||||
end, { noremap = true })
|
end, { noremap = true })
|
||||||
|
|
||||||
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,
|
|
||||||
})
|
|
||||||
|
|||||||
@@ -1,18 +1,28 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
lazy = false,
|
lazy = false,
|
||||||
|
branch = "master",
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
config = function()
|
config = function()
|
||||||
vim.api.nvim_create_autocmd("User", {
|
require("nvim-treesitter.configs").setup({
|
||||||
pattern = "TSUpdate",
|
highlight = { enable = true },
|
||||||
callback = function()
|
ensure_installed = {
|
||||||
require("nvim-treesitter.parsers").norg = {
|
"bash",
|
||||||
install_info = {
|
"html",
|
||||||
url = "https://github.com/nvim-neorg/tree-sitter-norg",
|
"javascript",
|
||||||
revision = "HEAD",
|
"json",
|
||||||
|
"lua",
|
||||||
|
"norg",
|
||||||
|
"markdown",
|
||||||
|
"markdown_inline",
|
||||||
|
"python",
|
||||||
|
"query",
|
||||||
|
"regex",
|
||||||
|
"tsx",
|
||||||
|
"typescript",
|
||||||
|
"vim",
|
||||||
|
"yaml",
|
||||||
},
|
},
|
||||||
}
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
23
lua/plugins/functional/neorg.lua
Normal file
23
lua/plugins/functional/neorg.lua
Normal 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,
|
||||||
|
}
|
||||||
@@ -1,18 +1,12 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
tag = "0.1.8",
|
tag = "0.1.8",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
dependencies = { "nvim-lua/plenary.nvim", { "nvim-telescope/telescope-fzf-native.nvim", build = "make" } },
|
||||||
config = function()
|
config = function()
|
||||||
require("telescope").setup({
|
require("telescope").setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
file_ignore_patterns = { ".git", ".node_modules" },
|
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 = {
|
extensions = {
|
||||||
file_browser = {
|
file_browser = {
|
||||||
theme = "ivy",
|
theme = "ivy",
|
||||||
|
|||||||
Reference in New Issue
Block a user