Skip to content

Commit 42fa026

Browse files
committed
Add neovim
1 parent d98ec40 commit 42fa026

File tree

3 files changed

+54
-8
lines changed

3 files changed

+54
-8
lines changed

.config/home-manager/home.nix

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,24 @@
3737
enableZshIntegration = true;
3838
};
3939

40+
# Neovim
41+
programs.neovim = {
42+
enable = true;
43+
plugins = with pkgs.vimPlugins; [
44+
lazy-nvim
45+
];
46+
extraLuaConfig = builtins.readFile "${builtins.getEnv "HOME"}/.codespaces/.config/nvim/init.lua";
47+
};
48+
4049
# Zsh
4150
programs.zsh = {
4251
enable = true;
4352
enableCompletion = true;
44-
enableAutosuggestions = true;
53+
autosuggestion.enable = true;
4554
syntaxHighlighting.enable = true;
4655
historySubstringSearch.enable = true;
4756
shellAliases = userConfig.alias;
48-
initExtra = ''
57+
initContent = ''
4958
. "${pkgs.asdf-vm}/share/asdf-vm/asdf.sh"
5059
. "${pkgs.asdf-vm}/share/asdf-vm/completions/asdf.bash"
5160
'';

.config/nvim/init.lua

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
require("lazy").setup({
2+
spec = {
3+
-- add LazyVim and import its plugins
4+
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
5+
-- import/override with your plugins
6+
{ import = "plugins" },
7+
},
8+
defaults = {
9+
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
10+
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
11+
lazy = false,
12+
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
13+
-- have outdated releases, which may break your Neovim install.
14+
version = false, -- always use the latest git commit
15+
-- version = "*", -- try installing the latest stable version for plugins that support semver
16+
},
17+
install = { colorscheme = { "tokyonight", "habamax" } },
18+
checker = {
19+
enabled = true, -- check for plugin updates periodically
20+
notify = false, -- notify on update
21+
}, -- automatically check for plugin updates
22+
performance = {
23+
rtp = {
24+
-- disable some rtp plugins
25+
disabled_plugins = {
26+
"gzip",
27+
-- "matchit",
28+
-- "matchparen",
29+
-- "netrwPlugin",
30+
"tarPlugin",
31+
"tohtml",
32+
"tutor",
33+
"zipPlugin",
34+
},
35+
},
36+
},
37+
})

flake.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)