holy nvim configs

This commit is contained in:
cswimr 2025-02-04 11:39:52 -06:00
parent 95ac8522db
commit b29ed1d480
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
6 changed files with 58 additions and 52 deletions

View file

@ -10,44 +10,54 @@
nixfmt-rfc-style
clang-tools
csharpier
prettierd
];
plugins = {
conform-nvim = {
enable = true;
settings = {
formatters_by_ft = {
bash = [
"shellcheck"
"shellharden"
"shfmt"
];
python = [
"ruff_fix"
"ruff_format"
"ruff_organize_imports"
];
c = [ "clang-format" ];
cpp = [ "clang-format" ];
cs = [ "csharpier" ];
csharp = [ "csharpier" ];
lua = [ "stylua" ];
nix = [ "nixfmt" ];
javascript = [ "prettier" ];
javascriptreact = [ "prettier" ];
typescript = [ "prettier" ];
typescriptreact = [ "prettier" ];
markdown = [ "prettier" ];
yaml = [ "prettier" ];
json = [ "prettier" ];
svelte = [ "prettier" ];
html = [ "prettier" ];
css = [ "prettier" ];
graphql = [ "prettier" ];
"_" = [
"trim_whitespace"
"trim_newlines"
];
};
formatters_by_ft =
let
prettier = {
__unkeyed-1 = "prettierd";
__unkeyed_2 = "prettier";
timeout_ms = "2000";
stop_after_first = "true";
};
in
{
bash = [
"shellcheck"
"shellharden"
"shfmt"
];
python = [
"ruff_fix"
"ruff_format"
"ruff_organize_imports"
];
c = [ "clang-format" ];
cpp = [ "clang-format" ];
cs = [ "csharpier" ];
csharp = [ "csharpier" ];
lua = [ "stylua" ];
nix = [ "nixfmt" ];
javascript = prettier;
javascriptreact = prettier;
typescript = prettier;
typescriptreact = prettier;
markdown = prettier;
yaml = prettier;
json = prettier;
svelte = prettier;
html = prettier;
css = prettier;
graphql = prettier;
"_" = [
"trim_whitespace"
"trim_newlines"
];
};
log_level = "warn";
notify_on_error = true;
notify_no_formatters = true;

View file

@ -22,7 +22,12 @@
"branch"
];
lualine_c = [
"filename"
{
__unkeyed-1 = "filename";
newfile_status = true;
path = 3;
shorting_target = 150;
}
"diff"
];
lualine_x = [
@ -47,9 +52,6 @@
end
'';
};
color = {
fg = "#ffffff";
};
icon = "";
}
"encoding"

View file

@ -83,15 +83,6 @@
}
];
keymaps = [
{
mode = "n";
key = "<leader>t";
action = ":Telescope<CR>";
options = {
desc = "Telescope";
silent = true;
};
}
{
mode = "n";
key = "<leader>tf";
@ -112,7 +103,7 @@
}
{
mode = "n";
key = "<leader>tg";
key = "<leader>tr";
action = ":Telescope live_grep<CR>";
options = {
desc = "Live Grep";
@ -139,7 +130,7 @@
}
{
mode = "n";
key = "<leader>fc";
key = "<leader>tt";
action = ":Telescope colorscheme<CR>";
options = {
desc = "Color Schemes";

View file

@ -4,7 +4,7 @@
plugins = {
treesitter-refactor = {
enable = true;
highlightCurrentScope.enable = true;
highlightCurrentScope.enable = false;
highlightDefinitions.enable = true;
navigation = {
enable = true;

View file

@ -3,8 +3,8 @@
programs.nixvim = {
extraPackages = with pkgs; [ fd ];
enable = true;
viAlias = true;
vimAlias = true;
viAlias = false;
vimAlias = false;
clipboard.register = [
"unnamed"
"unnamedplus"
@ -35,7 +35,6 @@
aerial.enable = true;
direnv.enable = true;
web-devicons.enable = true;
#bufferline.enable = true;
glow.enable = true;
gitblame.enable = true;
git-conflict.enable = true;
@ -50,6 +49,7 @@
comment.enable = true;
dotnet.enable = true;
sqlite-lua.enable = true;
lazydev.enable = true;
};
extraConfigVim = ''
set number " enable number lines

3
pyrightconfig.json Normal file
View file

@ -0,0 +1,3 @@
{
"typeCheckingMode": "off"
}