diff --git a/dot_config/nvim/lua/config/autocmds.lua b/dot_config/nvim/lua/config/autocmds.lua index 27e9e06..5f87d5a 100644 --- a/dot_config/nvim/lua/config/autocmds.lua +++ b/dot_config/nvim/lua/config/autocmds.lua @@ -1,3 +1,10 @@ -- Autocmds are automatically loaded on the VeryLazy event -- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua -- Add any additional autocmds here +vim.api.nvim_create_autocmd("FileType", { + pattern = { "norg" }, + callback = function() + vim.opt_local.wrap = true + vim.opt_local.spell = true + end, +}) diff --git a/dot_config/nvim/lua/config/options.lua b/dot_config/nvim/lua/config/options.lua index 94c8568..0bd805a 100644 --- a/dot_config/nvim/lua/config/options.lua +++ b/dot_config/nvim/lua/config/options.lua @@ -6,4 +6,16 @@ if vim.g.neovide then vim.g.neovide_cursor_animation_length = 0 vim.o.guifont = "BrutalistMono Nerd Font Regular:h16" vim.g.neovide_theme = "dark" + vim.keymap.set("n", "", ":w") -- Save + vim.keymap.set("v", "", '"+y') -- Copy + vim.keymap.set("n", "", '"+P') -- Paste normal mode + vim.keymap.set("v", "", '"+P') -- Paste visual mode + vim.keymap.set("c", "", "+") -- Paste command mode + vim.keymap.set("i", "", 'l"+Pli') -- Paste insert mode end + +-- Allow clipboard copy paste in neovim +vim.api.nvim_set_keymap("", "", "+p", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("!", "", "+", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("t", "", "+", { noremap = true, silent = true }) +vim.api.nvim_set_keymap("v", "", "+", { noremap = true, silent = true }) diff --git a/dot_config/nvim/lua/plugins/notes.lua b/dot_config/nvim/lua/plugins/notes.lua index be1da5c..cff6e3a 100644 --- a/dot_config/nvim/lua/plugins/notes.lua +++ b/dot_config/nvim/lua/plugins/notes.lua @@ -81,17 +81,32 @@ return { { "nvim-neorg/neorg", build = ":Neorg sync-parsers", - dependencies = { "nvim-lua/plenary.nvim" }, + dependencies = { { "nvim-lua/plenary.nvim" }, { "nvim-neorg/neorg-telescope" } }, opts = { load = { ["core.defaults"] = {}, - ["core.concealer"] = {}, -- Adds pretty icons to your documents + ["core.concealer"] = {}, + ["core.completion"] = { + config = { + engine = "nvim-cmp", + name = "[Norg]", + }, + }, + ["core.integrations.nvim-cmp"] = {}, + ["core.integrations.telescope"] = {}, + ["core.esupports.metagen"] = { + config = { + type = "auto", + }, + }, ["core.dirman"] = { -- Manages Neorg workspaces config = { workspaces = { notes = "~/doc/notes/private", work = "~/doc/notes/work", }, + default_workspace = "work", + index = "index.norg", }, }, }, diff --git a/dot_tmux.conf.tmpl b/dot_tmux.conf.tmpl index e09694c..e0898ce 100644 --- a/dot_tmux.conf.tmpl +++ b/dot_tmux.conf.tmpl @@ -3,8 +3,8 @@ set -g prefix C-a bind C-a send-prefix set -g base-index 1 -set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' -set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' +set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm' # undercurl support +set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m' # underscore colours - needs tmux-3.0 # Basic functions bind -n M-n new-window @@ -52,7 +52,7 @@ set -g display-time 4000 set -g status-interval 5 # upgrade $TERM -set -g default-terminal "screen-256color" +set -g default-terminal "tmux-256color" set-option -sa terminal-features ',{{ .term }}:RGB' # emacs key bindings in tmux command prompt (prefix + :) are better than