woohoo
This commit is contained in:
parent
58800c1a05
commit
1d5712d898
24 changed files with 253 additions and 278 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
};
|
||||
}
|
|
@ -9,6 +9,10 @@
|
|||
name = "copilot";
|
||||
group_index = 2;
|
||||
}
|
||||
{
|
||||
name = "luasnip";
|
||||
group_index = 2;
|
||||
}
|
||||
{
|
||||
name = "nvim_lsp";
|
||||
group_index = 2;
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
yaml = prettier;
|
||||
json = prettier;
|
||||
jsonc = prettier;
|
||||
json5 = prettier;
|
||||
svelte = prettier;
|
||||
html = prettier;
|
||||
css = prettier;
|
||||
|
|
|
@ -3,6 +3,9 @@
|
|||
plugins.neo-tree = {
|
||||
enable = true;
|
||||
enableGitStatus = true;
|
||||
filesystem = {
|
||||
hijackNetrwBehavior = "disabled";
|
||||
};
|
||||
sources = [
|
||||
"filesystem"
|
||||
"git_status"
|
||||
|
|
46
nixos/nvim/plugins/remote-nvim.nix
Normal file
46
nixos/nvim/plugins/remote-nvim.nix
Normal 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"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -55,6 +55,7 @@
|
|||
javascript
|
||||
json
|
||||
jsonc
|
||||
java
|
||||
lua
|
||||
python
|
||||
regex
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue