nix: first updates
This commit is contained in:
parent
39643701c8
commit
0cadeb1031
10 changed files with 246 additions and 48 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{pkgs, ...}: {
|
||||
{...}: {
|
||||
programs.nixvim = {
|
||||
enable = true;
|
||||
globals.mapleader = " ";
|
||||
|
|
@ -8,36 +8,5 @@
|
|||
};
|
||||
|
||||
colorschemes.ayu.enable = true;
|
||||
|
||||
autoCmd = [
|
||||
{
|
||||
event = "BufWritePre";
|
||||
pattern = "*.nix";
|
||||
callback = {
|
||||
__raw = "function(args) require('conform').format({ bufnr = args.buf }) end";
|
||||
};
|
||||
}
|
||||
];
|
||||
|
||||
plugins.nix.enable = true;
|
||||
plugins.treesitter.enable = true;
|
||||
plugins.lspconfig.enable = true;
|
||||
plugins.blink-cmp.enable = true;
|
||||
plugins.telescope.enable = true;
|
||||
|
||||
plugins.conform-nvim = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
formatters_by_ft = {
|
||||
nix = ["alejandra"];
|
||||
};
|
||||
};
|
||||
};
|
||||
lsp.servers.nil_ls.enable = true;
|
||||
};
|
||||
|
||||
users.users.prever.packages = [
|
||||
pkgs.alejandra
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue