switch to new neovim gruvbox

This commit is contained in:
Noah Masur 2022-07-10 22:17:19 +00:00
parent 4f1c61bbe0
commit 5243003bad
3 changed files with 17 additions and 10 deletions

View File

@ -23,17 +23,10 @@
M.packer = function(use)
use({
"morhetz/gruvbox",
"lifepillar/vim-gruvbox8",
config = function()
vim.g.gruvbox_italic = 1
-- vim.api.nvim_create_autocmd("ColorScheme", {
-- pattern = "*",
-- command = "colorscheme gruvbox",
-- })
vim.cmd([[
autocmd ColorScheme * highlight Normal ctermbg=NONE guibg=NONE
colorscheme gruvbox
]])
vim.g.gruvbox_italicize_strings = 0
vim.cmd("colorscheme gruvbox8")
end,
})
end

View File

@ -61,6 +61,10 @@ key("n", "<Leader>gs", telescope.git_status)
-- key("n", "<C-H>", "gT")
-- key("i", "<C-H>", "<Esc>gT")
-- Swap buffers
key("n", "L", ":bnext<CR>")
key("n", "H", ":bprevious<CR>")
-- LSP
key("n", "gd", vim.lsp.buf.definition, { silent = true })
key("n", "gT", vim.lsp.buf.type_definition, { silent = true })
@ -111,6 +115,12 @@ key("i", ".", ".<C-g>u")
key("i", "!", "!<C-g>u")
key("i", "?", "?<C-g>u")
-- Resize with arrows
key("n", "<C-Up>", ":resize +2<CR>", { silent = true })
key("n", "<C-Down>", ":resize -2<CR>", { silent = true })
key("n", "<C-Left>", ":vertical resize -2<CR>", { silent = true })
key("n", "<C-Right>", ":vertical resize +2<CR>", { silent = true })
-- Other
key("t", "<A-CR>", "<C-\\><C-n>") --- Exit terminal mode
key("n", "<A-CR>", ":noh<CR>", { silent = true }) --- Clear search in VimWiki

View File

@ -4,6 +4,10 @@
location = { provider = lib.mkForce "manual"; };
services.localtimed.enable = lib.mkForce false;
# Used by NeoVim for clipboard sharing with Windows
# home-manager.users.${config.user}.home.sessionPath =
# [ "/mnt/c/Program Files/win32yank/" ];
# Replace config directory with our repo
system.activationScripts.configDir.text = ''
rm -rf /etc/nixos