Neovim: Update neovim module
This commit is contained in:
@ -486,38 +486,43 @@ in {
|
|||||||
autosave = true;
|
autosave = true;
|
||||||
autoload = false;
|
autoload = false;
|
||||||
follow_cwd = true;
|
follow_cwd = true;
|
||||||
};
|
ignored_dirs = [
|
||||||
};
|
"/"
|
||||||
|
"~/"
|
||||||
_project = {
|
"~/Projects/"
|
||||||
name = "project";
|
|
||||||
pkg = pkgs.vimPlugins.project-nvim;
|
|
||||||
dependencies = [telescope];
|
|
||||||
lazy = true;
|
|
||||||
config = ''
|
|
||||||
function(_, opts)
|
|
||||||
require("project_nvim").setup(opts)
|
|
||||||
end
|
|
||||||
'';
|
|
||||||
opts = {
|
|
||||||
manual_mode = false;
|
|
||||||
|
|
||||||
detection_methods = [
|
|
||||||
"lsp"
|
|
||||||
"pattern"
|
|
||||||
];
|
|
||||||
|
|
||||||
# exclude_dirs = [];
|
|
||||||
|
|
||||||
patterns = [
|
|
||||||
".git"
|
|
||||||
"Makefile"
|
|
||||||
"CMakeLists.txt"
|
|
||||||
"flake.nix"
|
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# _project = {
|
||||||
|
# name = "project";
|
||||||
|
# pkg = pkgs.vimPlugins.project-nvim;
|
||||||
|
# dependencies = [telescope];
|
||||||
|
# lazy = true;
|
||||||
|
# config = ''
|
||||||
|
# function(_, opts)
|
||||||
|
# require("project_nvim").setup(opts)
|
||||||
|
# end
|
||||||
|
# '';
|
||||||
|
# opts = {
|
||||||
|
# manual_mode = false;
|
||||||
|
#
|
||||||
|
# detection_methods = [
|
||||||
|
# "lsp"
|
||||||
|
# "pattern"
|
||||||
|
# ];
|
||||||
|
#
|
||||||
|
# # exclude_dirs = [];
|
||||||
|
#
|
||||||
|
# patterns = [
|
||||||
|
# ".git"
|
||||||
|
# "Makefile"
|
||||||
|
# "CMakeLists.txt"
|
||||||
|
# "flake.nix"
|
||||||
|
# ];
|
||||||
|
# };
|
||||||
|
# };
|
||||||
|
|
||||||
dashboard = {
|
dashboard = {
|
||||||
name = "dashboard";
|
name = "dashboard";
|
||||||
pkg = pkgs.vimPlugins.dashboard-nvim;
|
pkg = pkgs.vimPlugins.dashboard-nvim;
|
||||||
@ -525,7 +530,7 @@ in {
|
|||||||
_web-devicons
|
_web-devicons
|
||||||
# _persistence
|
# _persistence
|
||||||
_persisted
|
_persisted
|
||||||
_project
|
# _project
|
||||||
];
|
];
|
||||||
lazy = false;
|
lazy = false;
|
||||||
config = ''
|
config = ''
|
||||||
@ -540,12 +545,12 @@ in {
|
|||||||
|
|
||||||
config = {
|
config = {
|
||||||
center = [
|
center = [
|
||||||
{
|
# {
|
||||||
action = "Telescope projects";
|
# action = "Telescope projects";
|
||||||
desc = " Open Project";
|
# desc = " Open Project";
|
||||||
icon = " ";
|
# icon = " ";
|
||||||
key = "p";
|
# key = "p";
|
||||||
}
|
# }
|
||||||
{
|
{
|
||||||
action = "Telescope persisted";
|
action = "Telescope persisted";
|
||||||
desc = " Restore Session";
|
desc = " Restore Session";
|
||||||
@ -1293,7 +1298,49 @@ in {
|
|||||||
name = "rustaceanvim";
|
name = "rustaceanvim";
|
||||||
pkg = pkgs.vimPlugins.rustaceanvim;
|
pkg = pkgs.vimPlugins.rustaceanvim;
|
||||||
lazy = false; # Recommended by author
|
lazy = false; # Recommended by author
|
||||||
|
|
||||||
# Don't call setup!
|
# Don't call setup!
|
||||||
|
|
||||||
|
# TODO: Configure this in depth
|
||||||
|
init = ''
|
||||||
|
function()
|
||||||
|
vim.g.rustaceanvim = {
|
||||||
|
tools = {
|
||||||
|
enable_clippy = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
server = {
|
||||||
|
default_settings = {
|
||||||
|
["rust-analyzer"] = {
|
||||||
|
cargo = {
|
||||||
|
allFeatures = true,
|
||||||
|
-- features = "all",
|
||||||
|
-- loadOutDirsFromCheck = true,
|
||||||
|
-- runBuildScripts = true,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- lint-nvim doesn't support clippy
|
||||||
|
checkOnSave = {
|
||||||
|
allFeatures = true,
|
||||||
|
allTargets = true,
|
||||||
|
command = "clippy",
|
||||||
|
extraArgs = {
|
||||||
|
"--",
|
||||||
|
"--no-deps",
|
||||||
|
"-Dclippy::pedantic",
|
||||||
|
"-Dclippy::nursery",
|
||||||
|
"-Dclippy::unwrap_used",
|
||||||
|
"-Dclippy::enum_glob_use",
|
||||||
|
"-Dclippy::complexity",
|
||||||
|
"-Dclippy::perf",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
end
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
sandwich = {
|
sandwich = {
|
||||||
@ -1673,6 +1720,32 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
winshift = {
|
||||||
|
name = "winshift";
|
||||||
|
pkg = pkgs.vimPlugins.winshift-nvim;
|
||||||
|
lazy = true;
|
||||||
|
cmd = ["WinShift"];
|
||||||
|
config = ''
|
||||||
|
function(_, opts)
|
||||||
|
require("winshift").setup(opts)
|
||||||
|
end
|
||||||
|
'';
|
||||||
|
opts = {
|
||||||
|
highlight_moving_win = true;
|
||||||
|
|
||||||
|
keymaps = {
|
||||||
|
disable_defaults = true;
|
||||||
|
|
||||||
|
win_move_mode = {
|
||||||
|
"h" = "left";
|
||||||
|
"j" = "down";
|
||||||
|
"k" = "up";
|
||||||
|
"l" = "right";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
yanky = {
|
yanky = {
|
||||||
name = "yanky"; # TODO: Bindings
|
name = "yanky"; # TODO: Bindings
|
||||||
pkg = pkgs.vimPlugins.yanky-nvim;
|
pkg = pkgs.vimPlugins.yanky-nvim;
|
||||||
@ -1742,6 +1815,7 @@ in {
|
|||||||
ufo
|
ufo
|
||||||
vimtex
|
vimtex
|
||||||
which-key
|
which-key
|
||||||
|
winshift
|
||||||
yanky
|
yanky
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
@ -492,6 +492,13 @@
|
|||||||
action = "<C-w>p";
|
action = "<C-w>p";
|
||||||
options.desc = "Goto other window";
|
options.desc = "Goto other window";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
mode = "n";
|
||||||
|
key = "<leader>wm";
|
||||||
|
action = "<cmd>WinShift<cr>";
|
||||||
|
options.desc = "Move window";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
leader-toggles = [
|
leader-toggles = [
|
||||||
|
Reference in New Issue
Block a user