format with nixfmt

This commit is contained in:
megit 2024-08-07 09:08:11 +08:00
parent 89382ce25e
commit 9c77d8a217
22 changed files with 847 additions and 826 deletions

View file

@ -55,5 +55,4 @@ require('onedark').load()
-- END custom setup for onedark
----------------------------------
'';
}

View file

@ -1,5 +1,3 @@
# The line beneath this is called `modeline`. See `:help modeline`
# vim: ts=4:sts=0:sw=0:tw=78:noet
{
# Import all your configuration modules here
imports = [

View file

@ -1,10 +1,11 @@
# The line beneath this is called `modeline`. See `:help modeline`
# vim: ts=4:sts=0:sw=0:tw=78:noet
{
keymaps = [
{
# vim.keymap.set({ "n", "v" }, "\\y", '"+y', {noremap=true, silent=true})
mode = [ "n" "v" ];
mode = [
"n"
"v"
];
key = "\\y";
action = "\"+y";
options = {

View file

@ -1,6 +1,4 @@
{ pkgs
, ...}:{
extraPlugins = with pkgs.vimPlugins; [
vim-rhubarb
];
{ pkgs, ... }:
{
extraPlugins = with pkgs.vimPlugins; [ vim-rhubarb ];
}

View file

@ -1,6 +1,4 @@
{ pkgs
, ...}:{
extraPlugins = with pkgs.vimPlugins; [
vim-sleuth
];
{ pkgs, ... }:
{
extraPlugins = with pkgs.vimPlugins; [ vim-sleuth ];
}

View file

@ -5,24 +5,40 @@
};
keymaps = [
{
mode = [ "n" "x" "o" ];
mode = [
"n"
"x"
"o"
];
key = "<leader>ss";
action = "function() require('leap').leap {} end";
lua = true;
# action = "require('leap').leap";
}
{
mode = [ "n" "x" "o" ];
mode = [
"n"
"x"
"o"
];
key = "<leader>sS";
action = "<Plug>(leap-backward-to)";
}
{
mode = [ "n" "x" "o" ];
mode = [
"n"
"x"
"o"
];
key = "<leader>sx";
action = "<Plug>(leap-forward-till)";
}
{
mode = [ "n" "x" "o" ];
mode = [
"n"
"x"
"o"
];
key = "<leader>sX";
action = "<Plug>(leap-backward-till)";
}

View file

@ -59,7 +59,9 @@
# };
# };
};
clangd = {enable = true;};
clangd = {
enable = true;
};
lua-ls = {
enable = true;
extraOptions = {
@ -71,15 +73,24 @@
telemetry = {
enabled = false;
};
hint = {enable = true;};
hint = {
enable = true;
};
};
};
};
nil_ls = {enable = true;};
};
nil_ls = {
enable = true;
};
tsserver = {
enable = false;
filetypes = ["javascript" "javascriptreact" "typescript" "typescriptreact"];
filetypes = [
"javascript"
"javascriptreact"
"typescript"
"typescriptreact"
];
extraOptions = {
settings = {
javascript = {
@ -107,9 +118,15 @@
};
};
};
eslint = {enable = true;};
pyright = {enable = true;};
ruff-lsp = {enable = true;};
eslint = {
enable = true;
};
pyright = {
enable = true;
};
ruff-lsp = {
enable = true;
};
rust-analyzer = {
enable = true;

View file

@ -1,8 +1,4 @@
# vim: ts=4:sts=0:sw=0:noet
{
pkgs
, pkgs-stable
, ... }:
{ pkgs, pkgs-stable, ... }:
{
plugins = {
neorg = {

View file

@ -1,5 +1,3 @@
# The line beneath this is called `modeline`. See `:help modeline`
# vim: ts=4:sts=0:sw=0:noet
{
config = {
globals = {