Compare commits

..

1 Commits

Author SHA1 Message Date
palkx 1202857417 feat: add python-dap 2026-04-16 15:06:53 +03:00
10 changed files with 167 additions and 114 deletions
+5 -1
View File
@@ -6,18 +6,22 @@
./modules/plugins/lsp ./modules/plugins/lsp
./modules/plugins/airline.nix
./modules/plugins/blink-cmp.nix ./modules/plugins/blink-cmp.nix
./modules/plugins/bufferline.nix ./modules/plugins/bufferline.nix
./modules/plugins/conform-nvim.nix ./modules/plugins/conform-nvim.nix
./modules/plugins/dap.nix
./modules/plugins/fzf-lua.nix ./modules/plugins/fzf-lua.nix
./modules/plugins/gitsigns.nix ./modules/plugins/gitsigns.nix
./modules/plugins/lualine.nix
./modules/plugins/mini.nix ./modules/plugins/mini.nix
./modules/plugins/oil.nix ./modules/plugins/oil.nix
./modules/plugins/snacks.nix ./modules/plugins/snacks.nix
./modules/plugins/tmux-navigator.nix
./modules/plugins/treesitter.nix ./modules/plugins/treesitter.nix
./modules/plugins/undotree.nix
./modules/plugins/venv-selector.nix ./modules/plugins/venv-selector.nix
./modules/plugins/which-key.nix ./modules/plugins/which-key.nix
# ./modules/plugins/neotree.nix
]; ];
performance.byteCompileLua.enable = true; performance.byteCompileLua.enable = true;
+33
View File
@@ -0,0 +1,33 @@
{
plugins.dap = {
enable = true;
luaConfig.post = ''
local dap = require('dap')
dap.configurations.python = {
{
type = 'python',
request = 'attach',
name = 'Attach Remote (prompt for path)',
connect = {
host = '127.0.0.1',
port = 5678,
},
pathMappings = function()
local remoteRoot = vim.fn.input('Remote root path: ', '/app')
return {
{
localRoot = vim.fn.getcwd(),
remoteRoot = remoteRoot,
},
}
end,
},
}
'';
};
plugins.dap-ui.enable = true;
plugins.dap-python.enable = true;
keymaps = [ ];
}
-9
View File
@@ -1,9 +0,0 @@
{
plugins.lightline = {
enable = true;
settings = {
colorscheme = "catppuccin";
tabline = false;
};
};
}
-8
View File
@@ -1,8 +0,0 @@
{
plugins.lualine = {
enable = true;
settings.options = {
globalstatus = true;
};
};
}
+1
View File
@@ -5,6 +5,7 @@
modules = { modules = {
icons = { }; icons = { };
comment = { }; comment = { };
diff = { };
}; };
}; };
} }
+6 -13
View File
@@ -4,14 +4,14 @@
enable = true; enable = true;
settings = { settings = {
bigfile.enabled = true; bigfile.enabled = true;
notifier.enabled = true;
quickfile.enabled = true;
statuscolumn.enabled = true; statuscolumn.enabled = true;
words.enabled = true;
lazygit.enabled = true; lazygit.enabled = true;
picker = { picker.enabled = true;
enabled = true; indent.enabled = true;
matcher = { scope.enabled = true;
frecency = true;
};
};
}; };
}; };
@@ -436,13 +436,6 @@
desc = "Delete Buffer"; desc = "Delete Buffer";
}; };
} }
{
key = "<leader>bo";
action = lib.nixvim.mkRaw "function() Snacks.bufdelete.other() end";
options = {
desc = "Delete Other Buffers";
};
}
{ {
key = "<leader>cR"; key = "<leader>cR";
action = lib.nixvim.mkRaw "function() Snacks.rename.rename_file() end"; action = lib.nixvim.mkRaw "function() Snacks.rename.rename_file() end";
+6 -38
View File
@@ -3,6 +3,7 @@
plugins = { plugins = {
treesitter = { treesitter = {
enable = true; enable = true;
settings = { settings = {
indent = { indent = {
enable = true; enable = true;
@@ -16,48 +17,12 @@
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars; grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
}; };
# Show sticky context window at top
treesitter-context = { treesitter-context = {
enable = true; enable = false;
settings = {
max_lines = 5;
mode = "topline";
trim_scope = "outer";
};
};
# highlight scoped function
indent-blankline = {
enable = true;
settings = {
exclude = {
buftypes = [
"terminal"
"quickfix"
];
filetypes = [
""
"checkhealth"
"help"
"lspinfo"
"packer"
"TelescopePrompt"
"TelescopeResults"
];
};
indent = {
char = "";
};
scope = {
show_end = false;
show_exact_scope = true;
show_start = true;
};
};
}; };
treesitter-textobjects = { treesitter-textobjects = {
enable = false; enable = true;
settings = { settings = {
select = { select = {
enable = true; enable = true;
@@ -66,4 +31,7 @@
}; };
}; };
}; };
extraConfigLua = ''
local parser_config = require("nvim-treesitter.parsers").get_parser_configs()
'';
} }
-14
View File
@@ -62,15 +62,6 @@
scrolloff = 5; scrolloff = 5;
}; };
# Enable limit colomn
opts.colorcolumn = "80,120";
opts.wrap = false;
# This info is displayed in lightline
opts.showmode = false;
# UK keymap
opts.langmap = "йq,цw,уe,кr,еt,нy,гu,шi,щo,зp,х[,ї],фa,іs,вd,аf,пg,рh,оj,лk,дl,ж\\;,є',яz,чx,сc,мv,иb,тn,ьm,б\\,,ю.,ЙQ,ЦW,УE,КR,ЕT,НY,ГU,ШI,ЩO,ЗP,Х{,Ї},ФA,ІS,ВD,АF,ПG,РH,ОJ,ЛK,ДL,Ж:,Є\",ЯZ,ЧX,СC,МV,ИB,ТN,ЬM,Б<,Ю>,ґ`,Ґ~";
diagnostic.settings = { diagnostic.settings = {
update_in_insert = true; update_in_insert = true;
severity_sort = true; severity_sort = true;
@@ -121,9 +112,4 @@
# Comment.underline = true; # Comment.underline = true;
# Comment.bold = true; # Comment.bold = true;
# }; # };
withNodeJs = false;
withPerl = false;
withPython3 = false;
withRuby = false;
} }
Generated
+114 -29
View File
@@ -5,11 +5,11 @@
"nixpkgs-lib": "nixpkgs-lib" "nixpkgs-lib": "nixpkgs-lib"
}, },
"locked": { "locked": {
"lastModified": 1778716662, "lastModified": 1765835352,
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", "narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", "rev": "a34fae9c08a15ad73f295041fec82323541400a9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -26,11 +26,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1778716662, "lastModified": 1765835352,
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=", "narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
"owner": "hercules-ci", "owner": "hercules-ci",
"repo": "flake-parts", "repo": "flake-parts",
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb", "rev": "a34fae9c08a15ad73f295041fec82323541400a9",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -39,29 +39,75 @@
"type": "github" "type": "github"
} }
}, },
"nixpkgs": { "flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": { "locked": {
"lastModified": 1750134718, "lastModified": 1731533236,
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=", "narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "NixOS", "owner": "numtide",
"repo": "nixpkgs", "repo": "flake-utils",
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c", "rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "numtide",
"ref": "nixos-unstable", "repo": "flake-utils",
"type": "github"
}
},
"ixx": {
"inputs": {
"flake-utils": [
"nixvim",
"nuschtosSearch",
"flake-utils"
],
"nixpkgs": [
"nixvim",
"nuschtosSearch",
"nixpkgs"
]
},
"locked": {
"lastModified": 1754860581,
"narHash": "sha256-EM0IE63OHxXCOpDHXaTyHIOk2cNvMCGPqLt/IdtVxgk=",
"owner": "NuschtOS",
"repo": "ixx",
"rev": "babfe85a876162c4acc9ab6fb4483df88fa1f281",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"ref": "v0.1.1",
"repo": "ixx",
"type": "github"
}
},
"nixpkgs": {
"locked": {
"lastModified": 1771903837,
"narHash": "sha256-sdaqdnsQCv3iifzxwB22tUwN/fSHoN7j2myFW5EIkGk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "e764fc9a405871f1f6ca3d1394fb422e0a0c3951",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
}, },
"nixpkgs-lib": { "nixpkgs-lib": {
"locked": { "locked": {
"lastModified": 1777168982, "lastModified": 1765674936,
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=", "narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixpkgs.lib", "repo": "nixpkgs.lib",
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14", "rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85",
"type": "github" "type": "github"
}, },
"original": { "original": {
@@ -72,16 +118,16 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1750134718, "lastModified": 1771903837,
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=", "narHash": "sha256-sdaqdnsQCv3iifzxwB22tUwN/fSHoN7j2myFW5EIkGk=",
"owner": "NixOS", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c", "rev": "e764fc9a405871f1f6ca3d1394fb422e0a0c3951",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "NixOS", "owner": "nixos",
"ref": "nixos-unstable", "ref": "nixos-25.11",
"repo": "nixpkgs", "repo": "nixpkgs",
"type": "github" "type": "github"
} }
@@ -90,29 +136,53 @@
"inputs": { "inputs": {
"flake-parts": "flake-parts_2", "flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_2", "nixpkgs": "nixpkgs_2",
"systems": "systems" "nuschtosSearch": "nuschtosSearch",
"systems": "systems_2"
}, },
"locked": { "locked": {
"lastModified": 1780214453, "lastModified": 1766849711,
"narHash": "sha256-Bfq9y0X6Vs4UPb67u7hN3jt7fJKHtl3+g0lBSDebRNg=", "narHash": "sha256-gtLBwhgjERca1UCzGkFplD5epIVRiNkePHVVtyFr73g=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "167da56c3ab1e51751a6ae4a997ed66587f9edae", "rev": "cae79c48e93bd61e478dfc12456bf68b1ce66074",
"type": "github" "type": "github"
}, },
"original": { "original": {
"owner": "nix-community", "owner": "nix-community",
"ref": "nixos-26.05", "ref": "nixos-25.11",
"repo": "nixvim", "repo": "nixvim",
"type": "github" "type": "github"
} }
}, },
"nuschtosSearch": {
"inputs": {
"flake-utils": "flake-utils",
"ixx": "ixx",
"nixpkgs": [
"nixvim",
"nixpkgs"
]
},
"locked": {
"lastModified": 1761730856,
"narHash": "sha256-t1i5p/vSWwueZSC0Z2BImxx3BjoUDNKyC2mk24krcMY=",
"owner": "NuschtOS",
"repo": "search",
"rev": "e29de6db0cb3182e9aee75a3b1fd1919d995d85b",
"type": "github"
},
"original": {
"owner": "NuschtOS",
"repo": "search",
"type": "github"
}
},
"root": { "root": {
"inputs": { "inputs": {
"flake-parts": "flake-parts", "flake-parts": "flake-parts",
"nixpkgs": "nixpkgs", "nixpkgs": "nixpkgs",
"nixvim": "nixvim", "nixvim": "nixvim",
"systems": "systems_2" "systems": "systems_3"
} }
}, },
"systems": { "systems": {
@@ -144,6 +214,21 @@
"repo": "default", "repo": "default",
"type": "github" "type": "github"
} }
},
"systems_3": {
"locked": {
"lastModified": 1681028828,
"narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
"owner": "nix-systems",
"repo": "default",
"rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
"type": "github"
},
"original": {
"owner": "nix-systems",
"repo": "default",
"type": "github"
}
} }
}, },
"root": "root", "root": "root",
+2 -2
View File
@@ -2,9 +2,9 @@
description = "Neovim configuration, declaratively written using nix"; description = "Neovim configuration, declaratively written using nix";
inputs = { inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-26.05"; nixpkgs.url = "github:nixos/nixpkgs/nixos-25.11";
nixvim.url = "github:nix-community/nixvim/nixos-26.05"; nixvim.url = "github:nix-community/nixvim/nixos-25.11";
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";