vim: add lsp_signature, set exrc remove pylsp-mypy package (broken)
All checks were successful
update the nix flake lock automatically every week / update (push) Successful in 30s

This commit is contained in:
2026-07-09 13:50:14 +02:00
parent 69915d089d
commit ec8b9eb1b8
5 changed files with 44 additions and 35 deletions

30
flake.lock generated
View File

@ -5,11 +5,11 @@
"nixpkgs": "nixpkgs" "nixpkgs": "nixpkgs"
}, },
"locked": { "locked": {
"lastModified": 1783068397, "lastModified": 1783587400,
"narHash": "sha256-B31MxW5os40h6NlnCUd+8fxresmVJlMnpYv2Kht0uWI=", "narHash": "sha256-UEZ8LIavX5HFjtvSkj34ZBM30cWNpqJfXujm+B4rY1k=",
"owner": "catppuccin", "owner": "catppuccin",
"repo": "nix", "repo": "nix",
"rev": "e3adb9b4815a3f934626626e6d6d1d8518717903", "rev": "b69e0494705aaf50cb2c6e0e005639b632044c6d",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -49,11 +49,11 @@
}, },
"locked": { "locked": {
"dir": "pkgs/firefox-addons", "dir": "pkgs/firefox-addons",
"lastModified": 1783224161, "lastModified": 1783569760,
"narHash": "sha256-SaSOAG03FE9FC0GV7uPPeyb7CHS59Yw9n0Go1gioidc=", "narHash": "sha256-debpliOeMVTrO3IpmFmqfSO/mgYVYxhPmxGwDrBpknU=",
"owner": "rycee", "owner": "rycee",
"repo": "nur-expressions", "repo": "nur-expressions",
"rev": "3a074d910fc151b9fcfb67dff99b844d6ee530dd", "rev": "32cdec83ac1c9d5219dbb2278b9d4e3f2f6b5dc3",
"type": "gitlab" "type": "gitlab"
}, },
"original": { "original": {
@ -86,11 +86,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1783222121, "lastModified": 1783550008,
"narHash": "sha256-E/ElL373TO8lQ2aMvYyzN+k4xkVaUGoRqoa8AtM71tI=", "narHash": "sha256-qbbZUk9IG9dLNwCPwdPBs6I5clxwugRpP+1YU+GPK20=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "a1645f40777620c4bd2b6d854b290c2fc354a266", "rev": "f4d01c1d87c7c2ec909549165d5a8338f1bd3315",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -105,11 +105,11 @@
"nixpkgs": "nixpkgs_3" "nixpkgs": "nixpkgs_3"
}, },
"locked": { "locked": {
"lastModified": 1782562157, "lastModified": 1783582157,
"narHash": "sha256-a7+T6QSeowynwZ1ZJJbP8T8ntAytvrui8kFGJmIZt2c=", "narHash": "sha256-EteIu2AVVbxzkBnBKjrbdknbpjxBkWTMNg02rXj4mgU=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixos-hardware", "repo": "nixos-hardware",
"rev": "a9cf7546a938c737b079e738de73934a13de9784", "rev": "968980fba2c290b5529025636474eae8457b854c",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -163,11 +163,11 @@
}, },
"nixpkgs_4": { "nixpkgs_4": {
"locked": { "locked": {
"lastModified": 1783309530, "lastModified": 1783590188,
"narHash": "sha256-ccD51WkEPHDgcvgJtS/qvQ6rY9A9RmYZOyDwuWLxZKU=", "narHash": "sha256-HBiI4+CVgAwwF8gg0s7QqUSFrBq2B10L7aXClJPX45k=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "6258c89d88bc4ca97f955b7b47b8f828d091ecdc", "rev": "05995407f5df6f8259dbb09c789d11abcb22ef5f",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -23,6 +23,7 @@
qt.style.name = "kvantum"; qt.style.name = "kvantum";
home.pointerCursor = { home.pointerCursor = {
enable = true;
gtk.enable = true; gtk.enable = true;
package = pkgs.bibata-cursors; package = pkgs.bibata-cursors;
name = "Bibata-Modern-Classic"; name = "Bibata-Modern-Classic";

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2026/06/14 19:22:40 by tomoron #+# #+# # # Created: 2026/06/14 19:22:40 by tomoron #+# #+# #
# Updated: 2026/06/14 19:32:07 by tomoron ### ########.fr # # Updated: 2026/07/07 20:00:29 by tom ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -31,26 +31,27 @@
local cmp = require'cmp' local cmp = require'cmp'
cmp.setup({ cmp.setup({
snippet = { experimental = { ghost_text = true },
expand = function(args) snippet = {
vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users. expand = function(args)
end, vim.fn["vsnip#anonymous"](args.body) -- For `vsnip` users.
}, end,
},
window = { window = {
completion = cmp.config.window.bordered(), completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(),
}, },
mapping = cmp.mapping.preset.insert({ mapping = cmp.mapping.preset.insert({
['<C-b>'] = cmp.mapping.scroll_docs(-4), ['<C-b>'] = cmp.mapping.scroll_docs(-4),
['<C-f>'] = cmp.mapping.scroll_docs(4), ['<C-f>'] = cmp.mapping.scroll_docs(4),
['<C-Space>'] = cmp.mapping.complete(), ['<C-Space>'] = cmp.mapping.complete(),
['<C-e>'] = cmp.mapping.abort(), ['<C-e>'] = cmp.mapping.abort(),
['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items. ['<CR>'] = cmp.mapping.confirm({ select = true }), -- Accept currently selected item. Set `select` to `false` to only confirm explicitly selected items.
}), }),
sources = cmp.config.sources({ sources = cmp.config.sources({
{ name = 'nvim_lsp' }, { name = 'nvim_lsp' },
{ name = 'vsnip' }, { name = 'vsnip' },
}, { }, {
@ -58,6 +59,7 @@
}) })
}) })
cmp.setup.cmdline({ '/', '?' }, { cmp.setup.cmdline({ '/', '?' }, {
mapping = cmp.mapping.preset.cmdline(), mapping = cmp.mapping.preset.cmdline(),
sources = { sources = {
@ -125,6 +127,8 @@
vim.keymap.set("n", "<leader>9m", function() vim.keymap.set("n", "<leader>9m", function()
require("99.extensions.telescope").select_model() require("99.extensions.telescope").select_model()
end) end)
require "lsp_signature".setup(cfg)
''; '';
programs.neovim.extraConfig = '' programs.neovim.extraConfig = ''
@ -174,6 +178,7 @@
Plug 'hrsh7th/cmp-path' Plug 'hrsh7th/cmp-path'
Plug 'hrsh7th/cmp-cmdline' Plug 'hrsh7th/cmp-cmdline'
Plug 'hrsh7th/nvim-cmp' Plug 'hrsh7th/nvim-cmp'
Plug 'ray-x/lsp_signature.nvim'
Plug 'hrsh7th/cmp-vsnip' Plug 'hrsh7th/cmp-vsnip'
Plug 'hrsh7th/vim-vsnip' Plug 'hrsh7th/vim-vsnip'
@ -182,6 +187,7 @@
colorscheme catppuccin-mocha colorscheme catppuccin-mocha
set signcolumn=auto set signcolumn=auto
set exrc
nnoremap <leader>ff <cmd>Telescope find_files<cr> nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr> nnoremap <leader>fg <cmd>Telescope live_grep<cr>

View File

@ -9,7 +9,7 @@
opencode opencode
(pkgs.python3.withPackages (ps: with ps; [ (pkgs.python3.withPackages (ps: with ps; [
python-lsp-server python-lsp-server
pylsp-mypy # pylsp-mypy #tests broken
python-lsp-ruff python-lsp-ruff
pycodestyle pycodestyle
])) ]))

View File

@ -6,7 +6,7 @@
# By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ # # By: tomoron <tomoron@student.42angouleme.fr> +#+ +:+ +#+ #
# +#+#+#+#+#+ +#+ # # +#+#+#+#+#+ +#+ #
# Created: 2025/09/05 23:42:18 by tomoron #+# #+# # # Created: 2025/09/05 23:42:18 by tomoron #+# #+# #
# Updated: 2026/06/22 15:42:08 by tomoron ### ########.fr # # Updated: 2026/07/07 17:49:04 by tomoron ### ########.fr #
# # # #
# **************************************************************************** # # **************************************************************************** #
@ -18,6 +18,8 @@
"libvirtd" # can use libvirtd "libvirtd" # can use libvirtd
"dialout" # can use serial devices "dialout" # can use serial devices
"wireshark" # can use wireshask "wireshark" # can use wireshask
"plugdev" #some esp things
]; ];
}; };
users.groups.plugdev = {};
} }