added comment.nvim but need to fix visual mode

This commit is contained in:
foxora 2026-02-22 00:01:08 +00:00
parent bf1706b0fa
commit 2c76f1f6ef
3 changed files with 246 additions and 205 deletions

View file

@ -0,0 +1,23 @@
return {
{
"comment.nvim",
event = { "BufReadPost", "BufNewFile" },
after = function(plugin)
require("Comment").setup({
toggler = {
line = "<leader>cc",
block = "<leader>bc",
},
opLeader = {
line = "<leader>c",
block = "<leader>b",
},
extra = {
above = "<leader>c0",
below = "<leader>bo",
eol = "<leader>cA",
},
})
end,
},
}

View file

@ -5,4 +5,5 @@ require("lze").load({
{ import = "plugins.fyler" },
{ import = "plugins.mini-hipatterns" },
{ import = "plugins.format" },
{ import = "plugins.comment" },
})

View file

@ -5,12 +5,13 @@
spkgs,
mpkgs,
...
}: let
inherit
(inputs.nixcats)
}:
let
inherit (inputs.nixcats)
utils
;
in {
in
{
imports = [
inputs.nixcats.homeModule
];
@ -25,22 +26,21 @@ in {
# add any plugins in inputs named "plugins-pluginName" to pkgs.neovimPlugins
# It will not apply to overall system, just nixCats.
addOverlays =
/*
(import ./overlays inputs) ++
*/
# (import ./overlays inputs) ++
[
(utils.standardPluginOverlay inputs)
];
# see the packageDefinitions below.
# This says which of those to install.
packageNames = ["auroranvim"];
packageNames = [ "auroranvim" ];
luaPath = "${./.}";
# the .replace vs .merge options are for modules based on existing configurations,
# they refer to how multiple categoryDefinitions get merged together by the module.
# for useage of this section, refer to :h nixCats.flake.outputs.categories
categoryDefinitions.replace = {
categoryDefinitions.replace =
{
pkgs,
settings,
categories,
@ -48,16 +48,17 @@ in {
name,
mkNvimPlugin,
...
} @ packageDef: {
lspsAndRuntimeDeps = {
general = with pkgs; [
}@packageDef:
{
lspsAndRuntimeDeps = with pkgs; {
general = [
ripgrep
fd
];
treesitter = with pkgs; [
treesitter = [
tree-sitter
];
lang = with pkgs; {
lang = {
lua = {
lsp = [ lua-language-server ];
format = [ stylua ];
@ -97,8 +98,8 @@ in {
};
};
startupPlugins = {
general = with pkgs.vimPlugins; [
startupPlugins = with pkgs.vimPlugins; {
general = [
lze
plenary-nvim
nvim-notify
@ -106,33 +107,34 @@ in {
base16-nvim
mini-nvim
];
treesitter = with pkgs.vimPlugins; [
treesitter = [
nvim-treesitter-textobjects
nvim-treesitter.withAllGrammars
];
};
optionalPlugins = {
general = with pkgs.vimPlugins; [
optionalPlugins = with pkgs.vimPlugins; {
general = [
];
ui = with pkgs.vimPlugins; [
ui = [
dressing-nvim
];
qol = with pkgs.vimPlugins; [
qol = [
undotree
mini-hipatterns
];
telescope = with pkgs.vimPlugins; [
telescope = [
telescope-nvim
telescope-fzf-native-nvim
telescope-ui-select-nvim
];
fyler = with pkgs.vimPlugins; [
fyler = [
fyler-nvim
];
lsp = with pkgs.vimPlugins; [
lsp = [
nvim-lspconfig
];
completion = with pkgs.vimPlugins; [
completion = [
blink-cmp
nvim-cmp
luasnip
@ -147,10 +149,13 @@ in {
cmp-cmdline-history
lspkind-nvim
];
format = with pkgs.vimPlugins; [
format = [
conform-nvim
];
lang = with pkgs.vimPlugins; {
comment = [
comment-nvim
];
lang = {
java = [
nvim-jdtls
];
@ -164,6 +169,7 @@ in {
# libgit2
];
};
environmentVariables = {
lang = {
rust.lsp = {
@ -181,6 +187,7 @@ in {
};
};
};
extraWrapperArgs = {
test = [
''--set CATTESTVAR2 "It worked again!"''
@ -194,11 +201,11 @@ in {
# vim.g.python3_host_prog
# or run from nvim terminal via :!<packagename>-python3
extraPython3Packages = {
test = _: [];
test = _: [ ];
};
# populates $LUA_PATH and $LUA_CPATH
extraLuaPackages = {
test = [(_: [])];
test = [ (_: [ ]) ];
};
};
@ -206,14 +213,23 @@ in {
packageDefinitions.replace = {
# these are the names of your packages
# you can include as many as you wish.
auroranvim = {pkgs, ...}: {
auroranvim =
{ pkgs, ... }:
{
# they contain a settings set defined above
# see :help nixCats.flake.outputs.settings
settings = {
wrapRc = true;
# IMPORTANT:
# your alias may not conflict with your other packages.
aliases = ["auroravim" "auravim" "foxyvim" "avix" "fvix" "auim"];
aliases = [
"auroravim"
"auravim"
"foxyvim"
"avix"
"fvix"
"auim"
];
};
# and a set of categories that you want
# (and other information to pass to lua)
@ -226,8 +242,9 @@ in {
fyler = true;
lsp = true;
completion = true;
format = true;
treesitter = true;
format = true;
comment = true;
lang = {
lua = {