update some vim stuff
Some checks failed
/ lint (push) Failing after 28s

This commit is contained in:
Jana Dönszelmann 2026-03-31 09:24:32 +02:00
parent ae9854f178
commit ca66e8d7b2
No known key found for this signature in database
13 changed files with 171 additions and 157 deletions

View file

@ -13,24 +13,7 @@ inputs@{ machine, ... }:
...
}:
let
nvim_mime_types = [
"application/x-zerosize"
"text/english"
"text/plain"
"text/x-makefile"
"text/x-c++hdr"
"text/x-c++src"
"text/x-chdr"
"text/x-csrc"
"text/x-java"
"text/x-moc"
"text/x-pascal"
"text/x-tcl"
"text/x-tex"
"application/x-shellscript"
"text/x-c"
"text/x-c++"
];
nvim_mime_types = (import ../xdg/mimemap.nix).text;
desktop-entry-name = "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaanvim";
desktop-entry = pkgs.makeDesktopItem {
name = desktop-entry-name;
@ -55,6 +38,14 @@ inputs@{ machine, ... }:
packages = with pkgs-unstable; [
tree-sitter
(pkgs.stdenv.mkDerivation {
name = "editor-hax";
src = ./.;
installPhase = ''
mkdir -p $out/bin
cp ./editor-hax.py $out/bin/editor-hax
'';
})
];
};

View file

@ -24,6 +24,7 @@ in
# pickers
(luamap "n" "<leader><leader>" "${telescope}.find_files()")
(luamap "n" "<leader>f" "${telescope}.live_grep()")
(luamap "n" "<leader>F" "${telescope}.find_files()")
(luamap "n" "<leader>t" "${telescope}.lsp_document_symbols()")
(luamap "n" "<leader>T" "${telescope}.lsp_dynamic_workspace_symbols()")
(luamap "n" "<leader>/" "${telescope}.current_buffer_fuzzy_find()")

View file

@ -158,6 +158,7 @@ in
};
};
};
rainbow-delimiters.enable = true;
vim-surround.enable = true;
lsp-format.enable = true;
@ -179,6 +180,9 @@ in
settings = {
completion.completeopt = "noselect";
preselect = "None";
view.entries = {
selection_order = "near_cursor";
};
sources =
let
@ -727,6 +731,7 @@ in
ui-select.enable = true;
fzf-native.enable = true;
frecency.enable = true;
# ast-grep.enable = true;
};
settings = {
@ -739,11 +744,17 @@ in
"^target/"
];
defaults = {
path_display = [ "smart" ];
path_display = {
"filename_first" = {
reverse_directories = true;
};
};
dynamic_preview_title = true;
layout_strategy = "flex";
layout_config = {
width = 0.99;
height = 0.99;
prompt_position = "top";
};
};
};