Skip to content

Commit

Permalink
feat: nvim config
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarow committed Jan 12, 2025
1 parent 09db5ff commit d54a7e1
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 13 deletions.
6 changes: 6 additions & 0 deletions modules/home-manager/golang/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -53,5 +53,11 @@ in {
"go.toolsManagement.autoUpdate" = true;
};
};

programs.nvf.settings.vim.languages = {
go = {
enable = true;
};
};
};
}
56 changes: 43 additions & 13 deletions modules/home-manager/neovim/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
lib,
config,
pkgs,
inputs,
...
}: let
Expand All @@ -21,20 +20,51 @@ in {
};
programs.nvf = {
enable = true;
settings = {
vim = {
globals = {
mapleader = " ";
maplocalleader = " ";
};
enableManpages = true;
settings.vim = {
options = {
autoindent = true;
tabstop = 4;
shiftwidth = 4;
};

globals = {
mapleader = " ";
maplocalleader = " ";
};

languages = {
enableLSP = true;
enableTreesitter = true;
};

lsp = {
enable = true;
formatOnSave = true;
};

lineNumberMode = "number";
preventJunkFiles = true;
useSystemClipboard = true;

binds = {
whichKey.enable = true;

cheatsheet.enable = true;
};
startPlugins = ["cheatsheet-nvim"];

statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
statusline.lualine.enable = true;
telescope.enable = true;
autocomplete.nvim-cmp.enable = true;
minimap.codewindow.enable = true;

languages = {
enableLSP = true;
enableTreesitter = true;
ui = {
colorizer.enable = true;
breadcrumbs = {
enable = true;
lualine.winbar.alwaysRender = true;
navbuddy.enable = true;
};
};
};
Expand Down

0 comments on commit d54a7e1

Please sign in to comment.