From 82602c3d0669f0510e4dc6b277dd21cbe47de428 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thea=20Sch=C3=B6bl?= Date: Sun, 26 Nov 2023 02:08:05 +0100 Subject: [PATCH] vim improvements --- programs/nixvim.nix | 36 ++++++++++++++---------------------- 1 file changed, 14 insertions(+), 22 deletions(-) diff --git a/programs/nixvim.nix b/programs/nixvim.nix index 1c576e5..9681c24 100644 --- a/programs/nixvim.nix +++ b/programs/nixvim.nix @@ -50,6 +50,8 @@ in termguicolors = true; + updatetime = 50; + fillchars.eob = " "; }; @@ -57,6 +59,16 @@ in { key = "u"; mode = "n"; action = ":UndotreeToggle"; } { key = "ft"; action = ":Neotree toggle"; } { key = "s"; action = ":SymbolsOutline"; } + + { key = "J"; mode = "v"; action = ":m '>+1gv=gv"; } + { key = "K"; mode = "v"; action = ":m '<-2gv=gv"; } + + { key = ""; mode = "n"; action = "zz"; } + { key = ""; mode = "n"; action = "zz"; } + + { key = "p"; mode = "x"; action = "\"_dP"; } + { key = "p"; mode = "n"; action = "\"_dP"; } + { key = "p"; mode = "v"; action = "\"_dP"; } ]; globals = { @@ -81,10 +93,8 @@ in ''; extraConfigLua = /* lua */ '' - require("scrollbar").setup() require("darkman").setup() - require("symbols-outline").setup() - + local Terminal = require('toggleterm.terminal').Terminal local lazygit = Terminal:new({ cmd = "lazygit", @@ -115,7 +125,6 @@ in dark = "frappe"; light = "latte"; }; - integrations.indent_blankline.colored_indent_levels = true; }; plugins = { @@ -129,21 +138,6 @@ in lualine_z = [ { name = "location"; separator = { right = ""; left = ""; }; } ]; }; }; - noice = { - enable = true; - lsp.override = { - "vim.lsp.util.convert_input_to_markdown_lines" = true; - "vim.lsp.util.stylize_markdown" = true; - "cmp.entry.get_documentation" = true; - }; - presets = { - bottom_search = true; - command_palette = true; - long_message_to_split = true; - inc_rename = false; - lsp_doc_border = false; - }; - }; auto-save = { enable = true; triggerEvents = [ "FocusLost" "CursorHold" "BufLeave" ]; @@ -154,7 +148,6 @@ in }; illuminate.enable = true; rainbow-delimiters.enable = true; - notify.enable = true; nvim-autopairs.enable = true; nvim-colorizer.enable = true; neo-tree = { @@ -273,8 +266,7 @@ in extraPackages = [ angular-ls pkgs.nodePackages.typescript-language-server ]; extraPlugins = with pkgs.vimPlugins; [ nvim-treesitter-angular + vim-startuptime darkman - nvim-scrollbar - symbols-outline-nvim ]; }