From 4ffa2095b1337af405eacbf220179ec098ef7c16 Mon Sep 17 00:00:00 2001 From: LarsZauberer Date: Mon, 15 Apr 2024 10:51:11 +0200 Subject: [PATCH] added some things in neovim config --- modules/tui/neovim.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/tui/neovim.nix b/modules/tui/neovim.nix index e87674d..1b99f54 100644 --- a/modules/tui/neovim.nix +++ b/modules/tui/neovim.nix @@ -82,6 +82,7 @@ in { java-language-server.enable = true; #pylyzer.enable = true; rnix-lsp.enable = true; + pyright.enable = true; }; #onAttach = '' # vim.api.nvim_buf_set_option(bufnr, 'omnifunc', 'v:lua.vim.lsp.omnifunc') @@ -159,11 +160,36 @@ in { enable = true; settings.theme = "dark"; }; + }; extraPlugins = with pkgs.vimPlugins; [ zen-mode-nvim + lazygit-nvim ]; + + keymaps = [ + { + mode = "n"; + key = "pv"; + action = "Explore"; + } + { + mode = "n"; + key = "w"; + action = "w"; + } + { + mode = "n"; + key = "q"; + action = "q"; + } + { + mode = "n"; + key = "gg"; + action = "LazyGit"; + } + ]; }; }; };