Switched from alejandra to nixfmt(-rfc-style)
Also re-formatted nix files
This commit is contained in:
parent
ea90b0356f
commit
ddb857e6ac
7 changed files with 66 additions and 52 deletions
|
@ -1,4 +1,5 @@
|
|||
{...}: {
|
||||
{ ... }:
|
||||
{
|
||||
# Import all your configuration modules here
|
||||
# imports = [./bufferline.nix];
|
||||
imports = [
|
||||
|
@ -44,13 +45,13 @@
|
|||
|
||||
autoCmd = [
|
||||
{
|
||||
event = ["BufEnter"];
|
||||
pattern = ["*"];
|
||||
event = [ "BufEnter" ];
|
||||
pattern = [ "*" ];
|
||||
command = "setlocal cursorline";
|
||||
}
|
||||
{
|
||||
event = ["BufLeave"];
|
||||
pattern = ["*"];
|
||||
event = [ "BufLeave" ];
|
||||
pattern = [ "*" ];
|
||||
command = "setlocal nocursorline";
|
||||
}
|
||||
];
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
plugins.cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
completion = {keyword_length = 2;};
|
||||
completion = {
|
||||
keyword_length = 2;
|
||||
};
|
||||
|
||||
mapping = {
|
||||
"<C-n>" = "cmp.mapping.select_next_item()";
|
||||
|
@ -22,12 +24,12 @@
|
|||
'';
|
||||
|
||||
sources = [
|
||||
{name = "nvim_lsp";}
|
||||
{name = "buffer";}
|
||||
{name = "cmdline";}
|
||||
{name = "cmp-clippy";}
|
||||
{name = "luasnip";}
|
||||
{name = "path";}
|
||||
{ name = "nvim_lsp"; }
|
||||
{ name = "buffer"; }
|
||||
{ name = "cmdline"; }
|
||||
{ name = "cmp-clippy"; }
|
||||
{ name = "luasnip"; }
|
||||
{ name = "path"; }
|
||||
];
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
|
||||
|
@ -74,7 +75,7 @@
|
|||
# nix
|
||||
nixd = {
|
||||
enable = true;
|
||||
settings.formatting.command = ["${pkgs.alejandra}/bin/alejandra"];
|
||||
settings.formatting.command = [ "${pkgs.nixfmt-rfc-style}/bin/nixfmt" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,16 +1,17 @@
|
|||
{pkgs, ...}: {
|
||||
extraPlugins = with pkgs.vimPlugins; [rhubarb];
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
extraPlugins = with pkgs.vimPlugins; [ rhubarb ];
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<cmd>GBrowse<CR>";
|
||||
key = "<leader>bro";
|
||||
mode = ["n"];
|
||||
mode = [ "n" ];
|
||||
}
|
||||
{
|
||||
action = ":GBrowse<CR>";
|
||||
key = "<leader>bro";
|
||||
mode = ["v"];
|
||||
mode = [ "v" ];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
@ -11,8 +11,12 @@
|
|||
};
|
||||
settings.defaults.mappings = {
|
||||
"i" = {
|
||||
"<C-n>" = {__raw = "require('telescope.actions').cycle_history_next";};
|
||||
"<C-p>" = {__raw = "require('telescope.actions').cycle_history_prev";};
|
||||
"<C-n>" = {
|
||||
__raw = "require('telescope.actions').cycle_history_next";
|
||||
};
|
||||
"<C-p>" = {
|
||||
__raw = "require('telescope.actions').cycle_history_prev";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
{pkgs, ...}: {
|
||||
{ pkgs, ... }:
|
||||
{
|
||||
extraPlugins = [
|
||||
(pkgs.vimUtils.buildVimPlugin {
|
||||
name = "vim-obsession";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue