holy nvim configs
This commit is contained in:
parent
95ac8522db
commit
b29ed1d480
6 changed files with 58 additions and 52 deletions
|
@ -10,12 +10,22 @@
|
||||||
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 =
|
||||||
|
let
|
||||||
|
prettier = {
|
||||||
|
__unkeyed-1 = "prettierd";
|
||||||
|
__unkeyed_2 = "prettier";
|
||||||
|
timeout_ms = "2000";
|
||||||
|
stop_after_first = "true";
|
||||||
|
};
|
||||||
|
in
|
||||||
|
{
|
||||||
bash = [
|
bash = [
|
||||||
"shellcheck"
|
"shellcheck"
|
||||||
"shellharden"
|
"shellharden"
|
||||||
|
@ -32,17 +42,17 @@
|
||||||
csharp = [ "csharpier" ];
|
csharp = [ "csharpier" ];
|
||||||
lua = [ "stylua" ];
|
lua = [ "stylua" ];
|
||||||
nix = [ "nixfmt" ];
|
nix = [ "nixfmt" ];
|
||||||
javascript = [ "prettier" ];
|
javascript = prettier;
|
||||||
javascriptreact = [ "prettier" ];
|
javascriptreact = prettier;
|
||||||
typescript = [ "prettier" ];
|
typescript = prettier;
|
||||||
typescriptreact = [ "prettier" ];
|
typescriptreact = prettier;
|
||||||
markdown = [ "prettier" ];
|
markdown = prettier;
|
||||||
yaml = [ "prettier" ];
|
yaml = prettier;
|
||||||
json = [ "prettier" ];
|
json = prettier;
|
||||||
svelte = [ "prettier" ];
|
svelte = prettier;
|
||||||
html = [ "prettier" ];
|
html = prettier;
|
||||||
css = [ "prettier" ];
|
css = prettier;
|
||||||
graphql = [ "prettier" ];
|
graphql = prettier;
|
||||||
"_" = [
|
"_" = [
|
||||||
"trim_whitespace"
|
"trim_whitespace"
|
||||||
"trim_newlines"
|
"trim_newlines"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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";
|
||||||
|
|
|
@ -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;
|
||||||
|
|
|
@ -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
3
pyrightconfig.json
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
{
|
||||||
|
"typeCheckingMode": "off"
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue