mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-22 12:15:38 +00:00
switch to new neovim gruvbox
This commit is contained in:
parent
4f1c61bbe0
commit
5243003bad
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user