Skip to content

Commit 60312f6

Browse files
committed
Add neovim
1 parent 4db390e commit 60312f6

File tree

3 files changed

+52
-8
lines changed

3 files changed

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

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)