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

View file

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

View file

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

View file

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

View file

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

3
pyrightconfig.json Normal file
View file

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