Migrate nvim from dotter to home-manager
This commit is contained in:
parent
ec6be592cb
commit
eafd193306
@ -1,2 +1,2 @@
|
|||||||
includes = [".dotter/laptop.toml"]
|
includes = [".dotter/laptop.toml"]
|
||||||
packages = ["nvim", "emacs", "i3", "starship", "zsh"]
|
packages = ["emacs", "i3", "starship", "zsh"]
|
||||||
|
@ -9,9 +9,12 @@
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
# Code formatters for use with doom emacs
|
# Code formatters for use with doom emacs
|
||||||
nixfmt
|
nixfmt # nix
|
||||||
dockfmt
|
dockfmt # docker
|
||||||
google-java-format
|
google-java-format # java
|
||||||
|
|
||||||
|
# Lsps for use with doom emacs
|
||||||
|
# neocmakelsp # cmake
|
||||||
|
|
||||||
# Rust setup
|
# Rust setup
|
||||||
rustc
|
rustc
|
||||||
@ -28,6 +31,56 @@
|
|||||||
# '')
|
# '')
|
||||||
];
|
];
|
||||||
|
|
||||||
|
programs = {
|
||||||
|
neovim = let
|
||||||
|
toLua = str: ''
|
||||||
|
lua << EOF
|
||||||
|
${str}
|
||||||
|
EOF
|
||||||
|
'';
|
||||||
|
in {
|
||||||
|
# https://www.youtube.com/watch?v=YZAnJ0rwREA
|
||||||
|
enable = true;
|
||||||
|
viAlias = true;
|
||||||
|
vimAlias = true;
|
||||||
|
# vimdiffAlias = true;
|
||||||
|
|
||||||
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
{
|
||||||
|
plugin = dracula-nvim;
|
||||||
|
config = "colorscheme dracula";
|
||||||
|
}
|
||||||
|
{
|
||||||
|
plugin = comment-nvim;
|
||||||
|
config = toLua ''require("Comment").setup()'';
|
||||||
|
}
|
||||||
|
|
||||||
|
# nix file support
|
||||||
|
vim-nix
|
||||||
|
|
||||||
|
# Syntax highlighting
|
||||||
|
(nvim-treesitter.withPlugins (p: [
|
||||||
|
p.tree-sitter-nix
|
||||||
|
p.tree-sitter-vim
|
||||||
|
p.tree-sitter-bash
|
||||||
|
p.tree-sitter-lua
|
||||||
|
p.tree-sitter-python
|
||||||
|
p.tree-sitter-json
|
||||||
|
p.tree-sitter-cpp
|
||||||
|
p.tree-sitter-rust
|
||||||
|
]))
|
||||||
|
];
|
||||||
|
|
||||||
|
# extraLuaConfig = "\n";
|
||||||
|
|
||||||
|
extraLuaConfig = ''
|
||||||
|
vim.o.termguicolors = true
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
|
};
|
||||||
|
|
||||||
home.file = {
|
home.file = {
|
||||||
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
# # Building this configuration will create a copy of 'dotfiles/screenrc' in
|
||||||
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
# # the Nix store. Activating the configuration will then make '~/.screenrc' a
|
||||||
|
Loading…
x
Reference in New Issue
Block a user