Compare commits
14 Commits
8576c77886
...
607a6fb01a
Author | SHA1 | Date | |
---|---|---|---|
607a6fb01a | |||
741fe78cad | |||
6d60071768 | |||
b83a2da4b5 | |||
63720ef6e8 | |||
587831d76f | |||
d3dbe17ecf | |||
ffa9646bcd | |||
3080f6957b | |||
a409554f1a | |||
835b0543d4 | |||
5101b0774b | |||
23316d5276 | |||
568ddda484 |
@ -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
7
after/plugin/neorg.lua
Normal 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
44
after/plugin/oil.lua
Normal 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>")
|
13
after/plugin/sessions.lua
Normal file
13
after/plugin/sessions.lua
Normal file
@ -0,0 +1,13 @@
|
||||
require("auto-session").setup {
|
||||
log_level = "error",
|
||||
auto_session_suppress_dirs = { "~/", "~/Projects", "~/Downloads", "/"},
|
||||
}
|
||||
|
||||
require('session-lens').setup({
|
||||
path_display = {'shorten'},
|
||||
theme_conf = { border = true },
|
||||
previewer = false,
|
||||
})
|
||||
|
||||
|
||||
vim.keymap.set('n', '<leader>ss', ":SearchSession<CR>")
|
@ -1,7 +1,7 @@
|
||||
-- parsing and highlighting
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- A list of parser names, or "all" (the five listed parsers should always be installed)
|
||||
ensure_installed = { "python", "javascript", "typescript", "php", "c", "rust", "bash", "lua", "vim", "vimdoc", "query" },
|
||||
ensure_installed = { "python", "javascript", "typescript", "c", "rust", "bash", "lua", "vim", "vimdoc", "query" },
|
||||
|
||||
-- Install parsers synchronously (only applied to `ensure_installed`)
|
||||
sync_install = false,
|
||||
|
@ -15,6 +15,13 @@ return require('packer').startup(function(use)
|
||||
|
||||
|
||||
-- useful
|
||||
use { 'rmagatti/auto-session' }
|
||||
|
||||
use {
|
||||
'rmagatti/session-lens',
|
||||
requires = {'rmagatti/auto-session', 'nvim-telescope/telescope.nvim'},
|
||||
}
|
||||
|
||||
use {
|
||||
'nvim-telescope/telescope.nvim', tag = '0.1.2',
|
||||
requires = 'nvim-lua/plenary.nvim'
|
||||
@ -30,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")
|
||||
|
||||
@ -17,4 +21,4 @@ vim.keymap.set("n", "<leader>y", "\"+y")
|
||||
vim.keymap.set("v", "<leader>y", "\"+y")
|
||||
vim.keymap.set("n", "<leader>Y", "\"+Y")
|
||||
|
||||
|
||||
vim.keymap.set("n", "<F5>", ":make")
|
||||
|
@ -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("LOCALAPPDATA") .. "\\nvim-data\\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 = "95"
|
||||
|
||||
vim.g.mapleader = " "
|
||||
vim.g.netrw_preview = 1
|
||||
vim.g.netrw_liststyle = 3
|
||||
vim.g.netrw_winsize = 30
|
||||
|
Loading…
x
Reference in New Issue
Block a user