Compare commits
No commits in common. "ddb232fba93f2466217705a17ba45601409e1b17" and "8ace9ff9b4886e8fcd3ffed48381f23d7b06100b" have entirely different histories.
ddb232fba9
...
8ace9ff9b4
1 changed files with 10 additions and 72 deletions
|
|
@ -19,7 +19,6 @@
|
||||||
lualine.enable = lib.mkOption { default = true; };
|
lualine.enable = lib.mkOption { default = true; };
|
||||||
luasnip.enable = lib.mkOption { default = false; };
|
luasnip.enable = lib.mkOption { default = false; };
|
||||||
nvimcmp.enable = lib.mkOption { default = true; };
|
nvimcmp.enable = lib.mkOption { default = true; };
|
||||||
opencode.enable = lib.mkOption { default = true; };
|
|
||||||
telescope = {
|
telescope = {
|
||||||
enable = lib.mkOption { default = true; };
|
enable = lib.mkOption { default = true; };
|
||||||
fzf.enable = lib.mkOption { default = true; };
|
fzf.enable = lib.mkOption { default = true; };
|
||||||
|
|
@ -75,67 +74,16 @@
|
||||||
mode = "n";
|
mode = "n";
|
||||||
action = mkRaw "vim.diagnostic.open_float";
|
action = mkRaw "vim.diagnostic.open_float";
|
||||||
}
|
}
|
||||||
{
|
# -- Easy Split Navigation
|
||||||
key = "<C-J>";
|
# -- nnoremap <C-J> <C-W><C-J>
|
||||||
mode = "n";
|
# -- nnoremap <C-K> <C-W><C-K>
|
||||||
action = "<C-W><C-J>";
|
# -- nnoremap <C-L> <C-W><C-L>
|
||||||
}
|
# -- nnoremap <C-H> <C-W><C-H>
|
||||||
{
|
#
|
||||||
key = "<C-K>";
|
# -- Easy copy and pasting to external programs
|
||||||
mode = "n";
|
# -- map <C-y> "+yy
|
||||||
action = "<C-W><C-K>";
|
# -- map <C-p> "+P
|
||||||
}
|
];
|
||||||
{
|
|
||||||
key = "<C-L>";
|
|
||||||
mode = "n";
|
|
||||||
action = "<C-W><C-L>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-H>";
|
|
||||||
mode = "n";
|
|
||||||
action = "<C-W><C-H>";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-y>";
|
|
||||||
mode = "x";
|
|
||||||
action = "\"+y";
|
|
||||||
options.remap = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-y>";
|
|
||||||
mode = "n";
|
|
||||||
action = "\"+yy";
|
|
||||||
options.remap = true;
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<C-p>";
|
|
||||||
mode = "n";
|
|
||||||
action = "\"+P";
|
|
||||||
options.remap = true;
|
|
||||||
}
|
|
||||||
] ++ lib.lists.optionals config.neovim.plugins.opencode.enable (let
|
|
||||||
ocFunc = cmd: let raw = "function() require('opencode').${cmd} end";
|
|
||||||
in (config.lib.nixvim.mkRaw raw);
|
|
||||||
in [
|
|
||||||
{
|
|
||||||
key = "<leader>ot";
|
|
||||||
action = ocFunc "toggle()";
|
|
||||||
mode = [ "n" "x" ];
|
|
||||||
options.desc = "Toggle opencode";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>oa";
|
|
||||||
action = ocFunc "ask('', { submit = true })";
|
|
||||||
mode = [ "n" "x" ];
|
|
||||||
options.desc = "Ask opencode...";
|
|
||||||
}
|
|
||||||
{
|
|
||||||
key = "<leader>or";
|
|
||||||
action = ocFunc "operator('@this ')";
|
|
||||||
mode = [ "n" "x" ];
|
|
||||||
options.desc = "Add range to opencode";
|
|
||||||
}
|
|
||||||
]);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.nixvim.colorschemes = with config.neovim.themes; {
|
programs.nixvim.colorschemes = with config.neovim.themes; {
|
||||||
|
|
@ -178,16 +126,6 @@
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
opencode = {
|
|
||||||
enable = opencode.enable;
|
|
||||||
settings = {
|
|
||||||
input.enabled = true;
|
|
||||||
lsp.enabled = true;
|
|
||||||
events.permissions.enabled = false;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
snacks.enable = opencode.enable;
|
|
||||||
|
|
||||||
telescope = {
|
telescope = {
|
||||||
enable = telescope.enable;
|
enable = telescope.enable;
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue