Merge branch 'main' of git.clustercockpit.org:moebiusband/dotfiles

This commit is contained in:
Jan Eitzinger 2023-02-25 07:45:53 +01:00
commit 8b02a1313b
3 changed files with 11 additions and 20 deletions

View File

@ -1,4 +1,5 @@
README.md README.md
.config/nvim/README.md
LICENSE LICENSE
{{ if eq .chezmoi.os "darwin" }} {{ if eq .chezmoi.os "darwin" }}
.muttrc .muttrc

View File

@ -1,14 +0,0 @@
local ok, hop = pcall(require, 'hop')
if not ok then
return
end
hop.setup {
quit_key = '<SPC>',
uppercase_labels = true
}
local map = vim.keymap.set
map('n', 'f', function() hop.hint_char1({current_line_only = true }) end, {remap=true})
map('n', '<leader>s', function() hop.hint_char2() end, {remap=true})

View File

@ -42,7 +42,7 @@ require "paq" {
"kylechui/nvim-surround"; "kylechui/nvim-surround";
"windwp/nvim-autopairs"; "windwp/nvim-autopairs";
"numToStr/Comment.nvim"; "numToStr/Comment.nvim";
{ "phaazon/hop.nvim", branch = "v2" }; "ggandor/leap.nvim";
-- Fuzzy search -- Fuzzy search
{ "nvim-telescope/telescope-fzf-native.nvim", run = "gmake" }; { "nvim-telescope/telescope-fzf-native.nvim", run = "gmake" };
@ -74,6 +74,8 @@ require('nvim-autopairs').setup({
fast_wrap = {}, fast_wrap = {},
}) })
require('leap').add_default_mappings()
require 'colorizer'.setup { require 'colorizer'.setup {
filetypes = { filetypes = {
'css', 'css',
@ -288,3 +290,5 @@ map('n', '<leader>xx', '<cmd>TroubleToggle<cr>', { noremap = true, silent = true
map('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>', { noremap = true, silent = true }) map('n', '<leader>xd', '<cmd>TroubleToggle document_diagnostics<cr>', { noremap = true, silent = true })
map('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>', { noremap = true, silent = true }) map('n', '<leader>xl', '<cmd>TroubleToggle loclist<cr>', { noremap = true, silent = true })
map('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>', { noremap = true, silent = true }) map('n', '<leader>xq', '<cmd>TroubleToggle quickfix<cr>', { noremap = true, silent = true })
map('n', '<leader>g', '<cmd>vertical rightbelow Git<cr>', { noremap = true, silent = true })