From 3a4974b2c35e1acfdb3221315f03a7034c74f448 Mon Sep 17 00:00:00 2001 From: Emmet Date: Sat, 28 Sep 2024 10:43:27 -0500 Subject: [PATCH] Some minor extra nvim config --- user/app/nvim/init.lua | 4 +++- user/app/nvim/lua/mappings.lua | 1 + user/app/nvim/lua/plugins/init.lua | 10 ++++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/user/app/nvim/init.lua b/user/app/nvim/init.lua index 67f609e..59737fc 100644 --- a/user/app/nvim/init.lua +++ b/user/app/nvim/init.lua @@ -16,11 +16,13 @@ if vim.g.neovide then vim.g.neovide_text_gamma = 0.8 vim.g.neovide_text_contrast = 0.1 vim.opt.termguicolors = true + vim.g.neovide_scale_factor = 1.0 end +vim.o.conceallevel = 2 + vim.api.nvim_create_user_command('W', 'execute "silent! write !sudo tee % >/dev/null" edit', { nargs = 0}) -vim.g.neovide_scale_factor = 1.0 -- bootstrap lazy and all plugins local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim" diff --git a/user/app/nvim/lua/mappings.lua b/user/app/nvim/lua/mappings.lua index 412948f..c0f9656 100644 --- a/user/app/nvim/lua/mappings.lua +++ b/user/app/nvim/lua/mappings.lua @@ -37,6 +37,7 @@ map("n", "ws", "split", { desc = "horizontal split" }) map("n", "wS", "split", { desc = "horizontal split" }) map("n", "wv", "vsplit", { desc = "vertical split" }) map("n", "wV", "vsplit", { desc = "vertical split" }) +map("n", "", "edit #", { desc = "edit previous" }) map({ "n", "t", "i", "v" }, "", "NvimTreeToggle", { desc = "nvimtree toggle window" }) map({ "n", "t", "i", "v" }, "", function() require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm" } diff --git a/user/app/nvim/lua/plugins/init.lua b/user/app/nvim/lua/plugins/init.lua index 69c205e..9af253e 100644 --- a/user/app/nvim/lua/plugins/init.lua +++ b/user/app/nvim/lua/plugins/init.lua @@ -26,6 +26,7 @@ return { { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make', lazy = false, }, { 'nvim-telescope/telescope-project.nvim', lazy = false, }, { 'natecraddock/workspaces.nvim', lazy = false, }, + { 'jghauser/follow-md-links.nvim', lazy = false, }, { "NeogitOrg/neogit", @@ -39,4 +40,13 @@ return { }, config = true }, + { + 'nvim-orgmode/orgmode', + event = 'VeryLazy', + ft = { 'org' }, + config = function() + -- Setup orgmode + require('orgmode').setup({}) + end, + }, }