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/airline.nix
./modules/plugins/blink-cmp.nix
./modules/plugins/bufferline.nix
./modules/plugins/conform-nvim.nix
./modules/plugins/dap.nix
./modules/plugins/fzf-lua.nix
./modules/plugins/gitsigns.nix
./modules/plugins/lualine.nix
./modules/plugins/mini.nix
./modules/plugins/oil.nix
./modules/plugins/snacks.nix
./modules/plugins/tmux-navigator.nix
./modules/plugins/treesitter.nix
./modules/plugins/undotree.nix
./modules/plugins/venv-selector.nix
./modules/plugins/which-key.nix
# ./modules/plugins/neotree.nix
];
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 = {
icons = { };
comment = { };
diff = { };
};
};
}
+6 -13
View File
@@ -4,14 +4,14 @@
enable = true;
settings = {
bigfile.enabled = true;
notifier.enabled = true;
quickfile.enabled = true;
statuscolumn.enabled = true;
words.enabled = true;
lazygit.enabled = true;
picker = {
enabled = true;
matcher = {
frecency = true;
};
};
picker.enabled = true;
indent.enabled = true;
scope.enabled = true;
};
};
@@ -436,13 +436,6 @@
desc = "Delete Buffer";
};
}
{
key = "<leader>bo";
action = lib.nixvim.mkRaw "function() Snacks.bufdelete.other() end";
options = {
desc = "Delete Other Buffers";
};
}
{
key = "<leader>cR";
action = lib.nixvim.mkRaw "function() Snacks.rename.rename_file() end";
+6 -38
View File
@@ -3,6 +3,7 @@
plugins = {
treesitter = {
enable = true;
settings = {
indent = {
enable = true;
@@ -16,48 +17,12 @@
grammarPackages = pkgs.vimPlugins.nvim-treesitter.allGrammars;
};
# Show sticky context window at top
treesitter-context = {
enable = true;
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;
};
};
enable = false;
};
treesitter-textobjects = {
enable = false;
enable = true;
settings = {
select = {
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;
};
# 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 = {
update_in_insert = true;
severity_sort = true;
@@ -121,9 +112,4 @@
# Comment.underline = 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"
},
"locked": {
"lastModified": 1778716662,
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
"lastModified": 1765835352,
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
"type": "github"
},
"original": {
@@ -26,11 +26,11 @@
]
},
"locked": {
"lastModified": 1778716662,
"narHash": "sha256-m1Yf0wZ8j1OHjTc2UwHwyQRSnNeSgLJOd7q5Y45hzi4=",
"lastModified": 1765835352,
"narHash": "sha256-XswHlK/Qtjasvhd1nOa1e8MgZ8GS//jBoTqWtrS1Giw=",
"owner": "hercules-ci",
"repo": "flake-parts",
"rev": "f7c1a2d347e4c52d5fb8d10cb4d94b5884e546fb",
"rev": "a34fae9c08a15ad73f295041fec82323541400a9",
"type": "github"
},
"original": {
@@ -39,29 +39,75 @@
"type": "github"
}
},
"nixpkgs": {
"flake-utils": {
"inputs": {
"systems": "systems"
},
"locked": {
"lastModified": 1780453794,
"narHash": "sha256-bXMRa9VTsHSPXL4Cw8R6JJLQeY3Y/IP4+YJCYVmQ7FY=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6b316287bae2ee04c9b93c8c858d930fd07d7338",
"lastModified": 1731533236,
"narHash": "sha256-l0KFg5HjrsfsO/JpG+r7fRrqm12kzFHyUHqHCVpMMbI=",
"owner": "numtide",
"repo": "flake-utils",
"rev": "11707dc2f618dd54ca8739b309ec4fc024de578b",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-26.05",
"owner": "numtide",
"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",
"type": "github"
}
},
"nixpkgs-lib": {
"locked": {
"lastModified": 1777168982,
"narHash": "sha256-GOkGPcboWE9BmGCRMLX3worL4EMnsnG8MyKmXNeYuhQ=",
"lastModified": 1765674936,
"narHash": "sha256-k00uTP4JNfmejrCLJOwdObYC9jHRrr/5M/a/8L2EIdo=",
"owner": "nix-community",
"repo": "nixpkgs.lib",
"rev": "f5901329dade4a6ea039af1433fb087bd9c1fe14",
"rev": "2075416fcb47225d9b68ac469a5c4801a9c4dd85",
"type": "github"
},
"original": {
@@ -72,16 +118,16 @@
},
"nixpkgs_2": {
"locked": {
"lastModified": 1780453794,
"narHash": "sha256-bXMRa9VTsHSPXL4Cw8R6JJLQeY3Y/IP4+YJCYVmQ7FY=",
"owner": "NixOS",
"lastModified": 1771903837,
"narHash": "sha256-sdaqdnsQCv3iifzxwB22tUwN/fSHoN7j2myFW5EIkGk=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "6b316287bae2ee04c9b93c8c858d930fd07d7338",
"rev": "e764fc9a405871f1f6ca3d1394fb422e0a0c3951",
"type": "github"
},
"original": {
"owner": "NixOS",
"ref": "nixos-26.05",
"owner": "nixos",
"ref": "nixos-25.11",
"repo": "nixpkgs",
"type": "github"
}
@@ -90,29 +136,53 @@
"inputs": {
"flake-parts": "flake-parts_2",
"nixpkgs": "nixpkgs_2",
"systems": "systems"
"nuschtosSearch": "nuschtosSearch",
"systems": "systems_2"
},
"locked": {
"lastModified": 1780214453,
"narHash": "sha256-Bfq9y0X6Vs4UPb67u7hN3jt7fJKHtl3+g0lBSDebRNg=",
"lastModified": 1766849711,
"narHash": "sha256-gtLBwhgjERca1UCzGkFplD5epIVRiNkePHVVtyFr73g=",
"owner": "nix-community",
"repo": "nixvim",
"rev": "167da56c3ab1e51751a6ae4a997ed66587f9edae",
"rev": "cae79c48e93bd61e478dfc12456bf68b1ce66074",
"type": "github"
},
"original": {
"owner": "nix-community",
"ref": "nixos-26.05",
"ref": "nixos-25.11",
"repo": "nixvim",
"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": {
"inputs": {
"flake-parts": "flake-parts",
"nixpkgs": "nixpkgs",
"nixvim": "nixvim",
"systems": "systems_2"
"systems": "systems_3"
}
},
"systems": {
@@ -144,6 +214,21 @@
"repo": "default",
"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",
+2 -2
View File
@@ -2,9 +2,9 @@
description = "Neovim configuration, declaratively written using nix";
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";