This commit is contained in:
cswimr 2025-03-06 18:42:06 -06:00
parent 58800c1a05
commit 1d5712d898
Signed by: cswimr
GPG key ID: 0EC431A8DA8F8087
24 changed files with 253 additions and 278 deletions

View file

@ -3,7 +3,6 @@
imports = [
./keymaps.nix
./settings.nix
./neovide.nix
./plugins/autoclose.nix
./plugins/cmp.nix
@ -21,6 +20,7 @@
./plugins/neo-tree.nix
./plugins/profile.nix
./plugins/rooter.nix
./plugins/remote-nvim.nix
./plugins/snacks.nix
./plugins/surround.nix
./plugins/telescope.nix

View file

@ -1,16 +0,0 @@
{
programs.nixvim = {
extraConfigLua = # lua
''
if vim.g.neovide then
vim.keymap.set('v', '<C-S-c>', '"+y') -- Copy
vim.keymap.set('n', '<C-S-v>', '"+P') -- Paste normal mode
vim.keymap.set('v', '<C-S-v>', '"+P') -- Paste visual mode
vim.keymap.set('c', '<C-S-v>', '<C-R>+') -- Paste command mode
vim.keymap.set('i', '<C-S-v>', '<ESC>l"+Pli') -- Paste insert mode
vim.o.mousemoveevent = true -- only enable when using neovide, because it sucks in terminal for some reason
end
'';
};
}

View file

@ -9,6 +9,10 @@
name = "copilot";
group_index = 2;
}
{
name = "luasnip";
group_index = 2;
}
{
name = "nvim_lsp";
group_index = 2;

View file

@ -50,6 +50,7 @@
yaml = prettier;
json = prettier;
jsonc = prettier;
json5 = prettier;
svelte = prettier;
html = prettier;
css = prettier;

View file

@ -3,6 +3,9 @@
plugins.neo-tree = {
enable = true;
enableGitStatus = true;
filesystem = {
hijackNetrwBehavior = "disabled";
};
sources = [
"filesystem"
"git_status"

View file

@ -0,0 +1,46 @@
{ lib, pkgs, ... }:
{
virtualisation.docker = {
enable = true;
};
programs.nixvim = {
extraPackages = with pkgs; [
devpod
openssh
];
plugins = {
remote-nvim = {
enable = true;
settings = {
ssh_config = {
ssh_binary = "${lib.getExe' pkgs.openssh "ssh"}";
scp_binary = "${lib.getExe' pkgs.openssh "scp"}";
};
devpod = {
binary = "${lib.getExe pkgs.devpod}";
docker_binary = "${lib.getExe pkgs.docker}";
};
remote = {
copy_dirs = {
data = {
base = {
__raw = "vim.fn.stdpath (\"data\")";
};
compression = {
additional_opts = [
"--exclude-vcs"
];
enabled = true;
};
dirs = [
"lazy"
];
};
};
};
};
};
};
};
}

View file

@ -55,6 +55,7 @@
javascript
json
jsonc
java
lua
python
regex

View file

@ -87,6 +87,7 @@
''
InitPath = debug.getinfo(1, "S").source:sub(2)
print("Neovim init file location: " .. InitPath)
vim.o.exrc = true
'';
extraConfigVim = ''
set number " enable number lines