Some minor extra nvim config

This commit is contained in:
Emmet 2024-09-28 10:43:27 -05:00
parent e0d826c606
commit 3a4974b2c3
3 changed files with 14 additions and 1 deletions

View file

@ -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" <bar> edit', { nargs = 0})
vim.g.neovide_scale_factor = 1.0
-- bootstrap lazy and all plugins
local lazypath = vim.fn.stdpath "data" .. "/lazy/lazy.nvim"

View file

@ -37,6 +37,7 @@ map("n", "<leader>ws", "<cmd>split<cr>", { desc = "horizontal split" })
map("n", "<leader>wS", "<cmd>split<cr>", { desc = "horizontal split" })
map("n", "<leader>wv", "<cmd>vsplit<cr>", { desc = "vertical split" })
map("n", "<leader>wV", "<cmd>vsplit<cr>", { desc = "vertical split" })
map("n", "<A-p>", "<cmd>edit #<cr>", { desc = "edit previous" })
map({ "n", "t", "i", "v" }, "<A-f>", "<cmd>NvimTreeToggle<CR>", { desc = "nvimtree toggle window" })
map({ "n", "t", "i", "v" }, "<A-z>", function()
require("nvchad.term").toggle { pos = "sp", id = "htoggleTerm" }

View file

@ -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,
},
}