https://github.com/mamoruds/nvim-config
https://github.com/mamoruds/nvim-config
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mamoruds/nvim-config
- Owner: MamoruDS
- Created: 2021-01-23T12:24:27.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2025-03-09T13:40:37.000Z (3 months ago)
- Last Synced: 2025-04-09T19:07:55.611Z (2 months ago)
- Language: Lua
- Size: 178 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Deploy
```shell
git clone https://github.com/MamoruDS/nvim-config.git "${XDG_CONFIG_HOME:-$HOME/.config}/nvim-deploy"export NVIM_APPNAME=nvim-deploy nvim
```### Use in Home Manager
Add to your inputs:
```nix
nvim-config.url = "github:MamoruDS/nvim-config";
```Enable in your configuration:
```nix
{
imports = [inputs.nvim-config.hmModules.nvim-config];
nvim-config.enable = true;
}
```## Configuration
You can customize this Neovim configuration to suit your local setup.
It is recommended to define your changes in `nvim/lua/local/options.lua`:```lua
local config = require("dotfiles.config").configconfig.lsp_clients = {
nixd = {
config = {
settings = {
nixd = {
nixpkgs = { expr = "import { }" },
options = {
home_manager = {
expr = '(builtins.getFlake "/Users/mamoru/.config/home-manager").homeConfigurations.mamoru.options',
},
},
},
},
},
},
}```
### Config in Home Manager
```nix
{
nvim-config = {
enable = true;
appName = "nvim_test"; # use with `$NVIM_APPNAME`
extraConfig = ''
local config = require("dotfiles.config").configconfig.appearances.dark_mode = false
config.appearances.transparent_bg = true
-- ...
'';
};
}
```