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 -- 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 # Import all your configuration modules here
imports = [ 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 = [ keymaps = [
{ {
# vim.keymap.set({ "n", "v" }, "\\y", '"+y', {noremap=true, silent=true}) # vim.keymap.set({ "n", "v" }, "\\y", '"+y', {noremap=true, silent=true})
mode = [ "n" "v" ]; mode = [
"n"
"v"
];
key = "\\y"; key = "\\y";
action = "\"+y"; action = "\"+y";
options = { options = {

View file

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

View file

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

View file

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

View file

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

View file

@ -1,8 +1,4 @@
# vim: ts=4:sts=0:sw=0:noet { pkgs, pkgs-stable, ... }:
{
pkgs
, pkgs-stable
, ... }:
{ {
plugins = { plugins = {
neorg = { 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 = { config = {
globals = { globals = {