Compare commits
2 Commits
7f6429312c
...
ea9e351c83
| Author | SHA1 | Date | |
|---|---|---|---|
| ea9e351c83 | |||
| ac4759406c |
15
init.lua
15
init.lua
@@ -1,5 +1,6 @@
|
|||||||
-- Set mapleader
|
-- Set mapleader
|
||||||
vim.g.mapleader = "<Space>"
|
vim.g.mapleader = "<Space>"
|
||||||
|
vim.g.maplocalleader = ","
|
||||||
|
|
||||||
-- Lazy
|
-- Lazy
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
@@ -59,7 +60,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 +74,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,
|
|
||||||
})
|
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ vim.opt.rtp:prepend(lazypath)
|
|||||||
-- loading lazy.nvim so that mappings are correct.
|
-- loading lazy.nvim so that mappings are correct.
|
||||||
-- This is also a good place to setup other settings (vim.opt)
|
-- This is also a good place to setup other settings (vim.opt)
|
||||||
vim.g.mapleader = " "
|
vim.g.mapleader = " "
|
||||||
vim.g.maplocalleader = "\\"
|
|
||||||
|
|
||||||
-- Setup lazy.nvim
|
-- Setup lazy.nvim
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
@@ -29,6 +28,7 @@ require("lazy").setup({
|
|||||||
{ import = "plugins.completion" },
|
{ import = "plugins.completion" },
|
||||||
{ import = "plugins.ui" },
|
{ import = "plugins.ui" },
|
||||||
{ import = "plugins.functional" },
|
{ import = "plugins.functional" },
|
||||||
|
{ import = "plugins.functional.neorg" },
|
||||||
},
|
},
|
||||||
-- Configure any other settings here. See the documentation for more details.
|
-- Configure any other settings here. See the documentation for more details.
|
||||||
-- colorscheme that will be used when installing plugins.
|
-- colorscheme that will be used when installing plugins.
|
||||||
|
|||||||
@@ -1,18 +1,29 @@
|
|||||||
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",
|
||||||
|
"norg_meta",
|
||||||
|
"markdown",
|
||||||
|
"markdown_inline",
|
||||||
|
"python",
|
||||||
|
"query",
|
||||||
|
"regex",
|
||||||
|
"tsx",
|
||||||
|
"typescript",
|
||||||
|
"vim",
|
||||||
|
"yaml",
|
||||||
},
|
},
|
||||||
}
|
|
||||||
end,
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,9 @@ return {
|
|||||||
file = ".session",
|
file = ".session",
|
||||||
force = { read = false, write = true, delete = true },
|
force = { read = false, write = true, delete = true },
|
||||||
})
|
})
|
||||||
require("mini.notify").setup() -- Better Notifications
|
require("mini.notify").setup({
|
||||||
|
window = { winblend = 0 },
|
||||||
|
}) -- Better Notifications
|
||||||
require("mini.surround").setup() -- Suround selections with characters
|
require("mini.surround").setup() -- Suround selections with characters
|
||||||
require("mini.move").setup({
|
require("mini.move").setup({
|
||||||
mappings = {
|
mappings = {
|
||||||
|
|||||||
1
lua/plugins/functional/neorg/neorg-telescope.lua
Normal file
1
lua/plugins/functional/neorg/neorg-telescope.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
return { "nvim-neorg/neorg-telescope" }
|
||||||
33
lua/plugins/functional/neorg/neorg.lua
Normal file
33
lua/plugins/functional/neorg/neorg.lua
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
return {
|
||||||
|
"nvim-neorg/neorg",
|
||||||
|
lazy = false,
|
||||||
|
version = "*",
|
||||||
|
dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-neorg/neorg-telescope" } },
|
||||||
|
config = function()
|
||||||
|
require("neorg").setup({
|
||||||
|
load = {
|
||||||
|
["core.defaults"] = {},
|
||||||
|
["core.concealer"] = {},
|
||||||
|
["core.dirman"] = {
|
||||||
|
config = {
|
||||||
|
workspaces = {
|
||||||
|
notes = "~/Notes",
|
||||||
|
},
|
||||||
|
default_workspace = "notes",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
["core.integrations.telescope"] = {
|
||||||
|
config = {
|
||||||
|
insert_file_link = {
|
||||||
|
-- Whether to show the title preview in telescope. Affects performance with a large
|
||||||
|
-- number of files.
|
||||||
|
show_title_preview = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
||||||
|
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",
|
||||||
|
|||||||
11
lua/plugins/ui/noice.lua
Normal file
11
lua/plugins/ui/noice.lua
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
return {
|
||||||
|
"folke/noice.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
opts = {
|
||||||
|
-- add any options here
|
||||||
|
},
|
||||||
|
dependencies = {
|
||||||
|
-- if you lazy-load any plugin below, make sure to add proper `module="..."` entries
|
||||||
|
"MunifTanjim/nui.nvim",
|
||||||
|
},
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user