nvf getting better

This commit is contained in:
Charlie Root 2024-07-06 18:17:02 +02:00
commit bae12c442c
12 changed files with 24 additions and 41 deletions

View file

@ -4,10 +4,11 @@
# General
"<leader>fd".action = ":lua vim.g.formatsave = not vim.g.formatsave<CR>";
"<leader>zt".action = ":<C-U>let g:default_terminal = v:count1<CR>";
"<leader>e".action = ":NvimTreeToggle<CR>";
"<leader>e".action = ":<leader>tf";
"<leader>ld".action = ":lua vim.diagnostic.setqflist({open = true})<CR>";
"<leader>lf".action = ":lua vim.lsp.buf.format()<CR>";
"<leader>li".action = ":lua vim.lsp.buf.implementation()<CR>";
"<leader>;".action = "A;<esc>"; # Append #
# Diffview
"<leader>gdq".action = ":DiffviewClose<CR>";
@ -27,6 +28,11 @@
"<leader>gD".action = "<cmd>Gitsigns diffthis HEAD<CR>";
"<leader>gw".action = "<cmd>Gitsigns toggle_word_diff<CR>";
# Movement
"<C-h>".action = "<C-W>h";
"<C-j>".action = "<C-W>j";
"<C-k>".action = "<C-W>k";
"<C-l>".action = "<C-W>l";
# Telescope
"<M-f>".action = ":Telescope resume<CR>";
"<leader>fq".action = ":Telescope quickfix<CR>";

View file

@ -1,6 +1,4 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
assistant.copilot = {
enable = true;

View file

@ -1,6 +1,4 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
autocomplete = {
enable = true;
@ -12,6 +10,7 @@ in {
previous = "<C-p>";
scrollDocsDown = "<C-j>";
scrollDocsUp = "<C-k>";
};
};
};

View file

@ -1,10 +1,8 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
binds = {
whichKey.enable = true;
cheatsheet.enable = false;
cheatsheet.enable = true;
};
};
}

View file

@ -8,7 +8,7 @@ in {
openOnSetup = true;
mappings = {
toggle = "<C-w>";
#toggle = "<C-w>";
};
setupOpts = {

View file

@ -1,6 +1,4 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
git = {
enable = true;

View file

@ -1,11 +1,4 @@
{
config,
pkgs,
lib,
...
}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
languages = {
enableLSP = true;
@ -14,7 +7,6 @@ in {
enableExtraDiagnostics = true;
markdown.enable = true;
nix.enable = true;
html.enable = true;
css.enable = true;
tailwind.enable = true;
@ -33,6 +25,10 @@ in {
lsp.neodev.enable = true;
};
nix = {
enable = true;
lsp.enable = true;
};
rust = {
enable = true;
crates.enable = true;

View file

@ -1,6 +1,4 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
lsp = {
formatOnSave = true;

View file

@ -1,6 +1,4 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_: {
programs.neovim-flake.settings.vim = {
telescope.enable = true;
};

View file

@ -1,6 +1,4 @@
{config, ...}: let
inherit (config.modules.other.system) username;
in {
_:{
programs.neovim-flake.settings.vim = {
terminal = {
toggleterm = {
@ -12,6 +10,7 @@ in {
lazygit = {
enable = true;
direction = "tab";
mappings.open = "<leader>gg";
};
};
};