Compare commits

...

6 commits

Author SHA1 Message Date
Bruno BELANYI 77e53c1643 home: vim: null-ls: prefer 'pflake8' if available
All checks were successful
continuous-integration/drone/push Build is passing
2022-03-11 14:30:27 +01:00
Bruno BELANYI 2690dbf352 overlays: add vim-plugins-overrides 2022-03-11 14:28:09 +01:00
Bruno BELANYI e32ce32860 home: git: use 'zdiff3' merge conflict markers
See GitHub's presentation about this feature [1].

[1]: https://github.blog/2022-01-24-highlights-from-git-2-35/
2022-03-11 14:11:32 +01:00
Bruno BELANYI 0af000e52e home: vim: telescope: add 'which-key' mapping
This opens a little preview window with different mappings for
telescope.
2022-03-11 14:11:07 +01:00
Bruno BELANYI 0fd5fb86b1 home: vim: telescope: disable scrolling up 2022-03-11 14:03:18 +01:00
Bruno BELANYI b8406735ba home: vim: set 'termguicolors'
For once, I like the look *with* 24-bit colors better on this current
color-scheme.
2022-03-11 14:02:01 +01:00
6 changed files with 41 additions and 1 deletions

View file

@ -120,6 +120,10 @@ in
defaultBranch = "main";
};
merge = {
conflictStyle = "zdiff3";
};
pull = {
# Avoid useless merge commits
rebase = true;

View file

@ -82,6 +82,8 @@ set background=dark
let g:gruvbox_plugin_hi_groups=1
" Include filetype integration
let g:gruvbox_filetype_hi_groups=1
" 24 bit colors
set termguicolors
" Use my preferred colorscheme
colorscheme gruvbox8
" }}}

View file

@ -38,8 +38,14 @@ null_ls.register({
-- Python
null_ls.register({
null_ls.builtins.diagnostics.flake8.with({
-- Only used if available, but prefer pflake8 if available
condition = function()
return utils.is_executable("flake8") and not utils.is_executable("pflake8")
end,
}),
null_ls.builtins.diagnostics.pyproject_flake8.with({
-- Only used if available
condition = utils.is_executable_condition("flake8"),
condition = utils.is_executable_condition("pflake8"),
}),
null_ls.builtins.diagnostics.mypy.with({
-- Only used if available

View file

@ -2,6 +2,15 @@ lua << EOF
local telescope = require("telescope")
telescope.setup({
defaults = {
mappings = {
i = {
["<C-h>"] = "which_key",
-- I want the normal readline mappings rather than scrolling
["<C-u>"] = false,
}
}
},
extensions = {
fzf = {
fuzzy = true,

View file

@ -1,4 +1,6 @@
{
null-ls-update = import ./vim-plugins-overrides;
sabnzbd-fix-missing-packages = import ./sabnzbd-fix-missing-dependencies;
transgui-fix-duplicate-status = import ./transgui-fix-duplicate-status;

View file

@ -0,0 +1,17 @@
final: prev:
let
in
{
# FIXME: update null-ls
vimPlugins = prev.vimPlugins.extend (self: super: {
null-ls-nvim = super.null-ls-nvim.overrideAttrs (old: {
version = "2022-03-11";
src = final.fetchFromGitHub {
owner = "jose-elias-alvarez";
repo = "null-ls.nvim";
rev = "1ee1da4970b3c94bed0d0250a353bff633901cd1";
sha256 = "sha256-db9d2djNUCZzxIkycUn8Kcu4TS33w55eWxUn2OzcLas=";
};
});
});
}