Compare commits
7 Commits
835b0543d4
...
b83a2da4b5
Author | SHA1 | Date |
---|---|---|
Lord Of Nougate | b83a2da4b5 | |
Lord Of Nougate | 63720ef6e8 | |
Lord Of Nougate | 587831d76f | |
Lord Of Nougate | d3dbe17ecf | |
Lord Of Nougate | ffa9646bcd | |
Lord Of Nougate | 3080f6957b | |
Lord Of Nougate | a409554f1a |
|
@ -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,
|
||||
|
|
|
@ -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>")
|
|
@ -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>")
|
|
@ -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
|
||||
|
|
|
@ -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")
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue