Compare commits

...

7 Commits

6 changed files with 93 additions and 4 deletions

View File

@ -15,7 +15,7 @@ local config = {
["`"] = { escape = true, close = true, pair = "``", disabled_filetypes = {} },
},
options = {
disabled_filetypes = { "text", "markdown" },
disabled_filetypes = { "text", "markdown", "norg" },
disable_when_touch = false,
pair_spaces = false,
auto_indent = true,

7
after/plugin/neorg.lua Normal file
View File

@ -0,0 +1,7 @@
-- Note keymaps
vim.keymap.set("n", "<leader>ni", ":Neorg index<CR>")
vim.keymap.set("n", "<leader>nr", ":Neorg return<CR>")
vim.keymap.set("n", "<leader>nj", ":Neorg journal custom<CR>")
vim.keymap.set("n", "<leader>nim", ":Neorg inject-metadata<CR>")
vim.keymap.set("n", "<leader>nis", ":Neorg inject-metadata<CR>")

44
after/plugin/oil.lua Normal file
View File

@ -0,0 +1,44 @@
require('oil').setup({
default_file_explorer = false,
columns = {
-- "icon",
-- "permissions",
-- "size",
-- "mtime",
},
float = {
-- Padding around the floating window
padding = 8,
max_width = 80,
max_height = 64,
border = "rounded",
win_options = {
winblend = 0,
},
-- This is the config that will be passed to nvim_open_win.
-- Change values here to customize the layout
override = function(conf)
return conf
end,
},
keymaps = {
["g?"] = "actions.show_help",
["<CR>"] = "actions.select",
["<C-s>"] = "actions.select_vsplit",
["<C-h>"] = "actions.select_split",
["<C-t>"] = "actions.select_tab",
["<C-p>"] = "actions.preview",
["<Esc>"] = "actions.close",
["<C-r>"] = "actions.refresh",
["-"] = "actions.parent",
["_"] = "actions.open_cwd",
["`"] = "actions.cd",
["~"] = "actions.tcd",
["g."] = "actions.toggle_hidden",
},
})
vim.keymap.set('n', '<leader>-', ":Oil --float <CR>")

View File

@ -37,6 +37,36 @@ return require('packer').startup(function(use)
requires = 'nvim-lua/plenary.nvim'
}
use { 'stevearc/oil.nvim' }
use {
"nvim-neorg/neorg",
tag = "*",
run = ":Neorg sync-parsers",
requires = "nvim-lua/plenary.nvim",
config = function ()
require('neorg').setup {
load = {
["core.defaults"] = {},
["core.concealer"] = {},
["core.summary"] = {},
["core.export"] = {},
["core.export.markdown"] = {},
["core.ui"] = {},
["core.ui.calendar"] = {},
["core.dirman"] = {
config = {
workspaces = {
notes = "~/Documents/Notes",
},
default_workspace = "notes",
},
},
},
}
end
}
use({
"kylechui/nvim-surround",
tag = "*", -- Use for stability; omit to use `main` branch for the latest features

View File

@ -3,6 +3,10 @@ vim.g.mapleader = " "
vim.keymap.set("n", "<leader>.", vim.cmd.Ex)
vim.keymap.set("n", "<C-b>", ":e #<CR>")
vim.keymap.set("n", "<C-b>w", ":wq<CR>")
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")

View File

@ -1,3 +1,5 @@
vim.g.mapleader = " "
vim.opt.nu = true
vim.opt.relativenumber = true
vim.opt.ignorecase = true
@ -9,14 +11,14 @@ vim.opt.expandtab = true
vim.opt.smartindent = true
vim.opt.wrap = false
vim.opt.wrap = true
vim.opt.swapfile = false
vim.opt.backup = false
vim.opt.undodir = os.getenv("HOME") .. "/.vim/undodir"
vim.opt.undofile = true
vim.opt.hlsearch = false
vim.opt.hlsearch = true
vim.opt.incsearch = true
vim.opt.termguicolors = true
@ -29,4 +31,6 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.g.mapleader = " "
vim.g.netrw_preview = 1
vim.g.netrw_liststyle = 3
vim.g.netrw_winsize = 30