nixvim plugins
install all currently wanted plugins
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
{ inputs, pkgs, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
./plugins
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
extraPackages = with pkgs; [
|
||||
texliveFull
|
||||
texlivePackages.standalone
|
||||
texlivePackages.relsize # needed for BA
|
||||
# papis-nvim
|
||||
];
|
||||
extraConfigVim = ''
|
||||
filetype plugin on
|
||||
set nocompatible
|
||||
syntax on
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -1,7 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
aerial.enable = true;
|
||||
};
|
||||
}
|
||||
@@ -1,13 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
nvim-autopairs = {
|
||||
enable = true;
|
||||
settings = {
|
||||
check_ts = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,68 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
bullets = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enabled_file_types = [
|
||||
"markdown"
|
||||
"text"
|
||||
"gitcommit"
|
||||
];
|
||||
set_mappings = 0;
|
||||
checkbox_markers = " -X";
|
||||
custom_mappings = [
|
||||
[
|
||||
"nmap"
|
||||
"o"
|
||||
"<Plug>(bullets-newline)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
"gN"
|
||||
"<Plug>(bullets-renumber)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
"gN"
|
||||
"<Plug>(bullets-renumber)"
|
||||
]
|
||||
[
|
||||
"imap"
|
||||
"<C-t>"
|
||||
"<Plug>(bullets-demote)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
">>"
|
||||
"<Plug>(bullets-demote)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
">"
|
||||
"<Plug>(bullets-demote)"
|
||||
]
|
||||
[
|
||||
"imap"
|
||||
"<C-d>"
|
||||
"<Plug>(bullets-promote)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
"<<"
|
||||
"<Plug>(bullets-promote)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
"<"
|
||||
"<Plug>(bullets-promote)"
|
||||
]
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
settings = {
|
||||
keymap = {
|
||||
preset = "default";
|
||||
};
|
||||
snippets = {
|
||||
preset = "luasnip";
|
||||
};
|
||||
completion = {
|
||||
accept = {
|
||||
auto_brackets = {
|
||||
enabled = true;
|
||||
kind_resolution = {
|
||||
enabled = true;
|
||||
};
|
||||
semantic_token_resolution = {
|
||||
enabled = true;
|
||||
timeout_ms = 400;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
sources = {
|
||||
per_filetype = {
|
||||
yaml = [ "papis" ];
|
||||
};
|
||||
providers = {
|
||||
spell = {
|
||||
module = "blink-cmp-spell";
|
||||
name = "Spell";
|
||||
score_offset = 100;
|
||||
opts = { };
|
||||
};
|
||||
vimtex = {
|
||||
name = "vimtex";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
dap = {
|
||||
name = "dap";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
mkdnflow = {
|
||||
name = "mkdnflow";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
};
|
||||
default = [
|
||||
"lsp"
|
||||
"mkdnflow"
|
||||
"path"
|
||||
"snippets"
|
||||
# "dap"
|
||||
"vimtex"
|
||||
"buffer"
|
||||
"spell"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
blink-cmp-spell.enable = true;
|
||||
blink-compat.enable = true;
|
||||
cmp-vimtex.enable = true;
|
||||
# cmp-dap.enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
comment = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mappings = {
|
||||
basic = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,54 +0,0 @@
|
||||
{
|
||||
imports = [
|
||||
./aerial.nix
|
||||
./autopairs.nix
|
||||
./barbar.nix
|
||||
./bullets.nix
|
||||
./cmp.nix
|
||||
./comment-box.nix
|
||||
./comment.nix
|
||||
./conform.nix
|
||||
./dap.nix
|
||||
./diffview.nix
|
||||
./dynomark.nix
|
||||
./edgy.nix
|
||||
./gitsigns.nix
|
||||
./haskell-tools.nix
|
||||
./knap.nix
|
||||
./leap.nix
|
||||
./lsp.nix
|
||||
./ltex-extra.nix
|
||||
./lualine.nix
|
||||
./markdown-preview.nix
|
||||
./mkdnflow.nix
|
||||
./neoscroll.nix
|
||||
./neotree.nix
|
||||
./noice.nix
|
||||
./notify.nix
|
||||
./oil.nix
|
||||
./openscad.nix
|
||||
./otter.nix
|
||||
./papis.nix
|
||||
./peek.nix
|
||||
./markdown-preview.nix
|
||||
./smart-splits.nix
|
||||
./snippets.nix
|
||||
./sniprun.nix
|
||||
./startup.nix
|
||||
./surround.nix
|
||||
./telescope.nix
|
||||
./texpresso.nix
|
||||
./todo-comments.nix
|
||||
./toggleterm.nix
|
||||
./treesitter.nix
|
||||
./trouble.nix
|
||||
./typst-preview.nix
|
||||
./typst-vim.nix
|
||||
./undotree.nix
|
||||
./vimtex.nix
|
||||
./web-devicons.nix
|
||||
./which-key.nix
|
||||
./yanky.nix
|
||||
./zk.nix
|
||||
];
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
leap = {
|
||||
enable = true;
|
||||
settings = {
|
||||
case_sensitive = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "s";
|
||||
action = "<Plug>(leap)";
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
}
|
||||
{
|
||||
key = "S";
|
||||
action = "<Plug>(leap-from-window)";
|
||||
mode = [ "n" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,102 +0,0 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
tofu-ls
|
||||
zuban
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
plugins.lsp.enable = true;
|
||||
|
||||
lsp = {
|
||||
luaConfig = {
|
||||
post = ''
|
||||
vim.lsp.enable('tofu_ls')
|
||||
vim.lsp.enable('prolog_ls')
|
||||
'';
|
||||
};
|
||||
servers = {
|
||||
nixd = {
|
||||
enable = false;
|
||||
};
|
||||
rust_analyzer = {
|
||||
enable = true;
|
||||
};
|
||||
leanls = {
|
||||
enable = true;
|
||||
};
|
||||
nil_ls = {
|
||||
enable = !config.programs.nixvim.plugins.lsp.servers.nixd.enable;
|
||||
config = {
|
||||
nil = {
|
||||
formatting = {
|
||||
command = [
|
||||
"nixfmt"
|
||||
];
|
||||
};
|
||||
diagnostics = {
|
||||
ignored = [ ];
|
||||
};
|
||||
nix = {
|
||||
flake = {
|
||||
autoArchive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
nushell = {
|
||||
enable = true;
|
||||
};
|
||||
pylsp = {
|
||||
enable = true;
|
||||
};
|
||||
pylyzer = {
|
||||
enable = false;
|
||||
};
|
||||
pyright = {
|
||||
enable = true;
|
||||
};
|
||||
clangd = {
|
||||
enable = true;
|
||||
};
|
||||
zk = {
|
||||
enable = true;
|
||||
};
|
||||
elixirls = {
|
||||
enable = true;
|
||||
};
|
||||
marksman = {
|
||||
enable = true;
|
||||
};
|
||||
texlab = {
|
||||
enable = true;
|
||||
};
|
||||
lua_ls = {
|
||||
enable = true;
|
||||
};
|
||||
ltex_plus = {
|
||||
enable = true;
|
||||
package = pkgs.ltex-ls-plus;
|
||||
config = {
|
||||
ltex = {
|
||||
language = "en-US";
|
||||
enabled = [
|
||||
"latex"
|
||||
"tex"
|
||||
"bibtex"
|
||||
"markdown"
|
||||
"typst"
|
||||
"quarto"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
tinymist = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
ltex-extra = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,48 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
lualine = {
|
||||
enable = true;
|
||||
# settings = {
|
||||
# sections = {
|
||||
# lualine_c = [
|
||||
# {
|
||||
# __unkeyed-1 = {
|
||||
# __raw = ''
|
||||
# function()
|
||||
# require("trouble").statusline({
|
||||
# mode = "lsp_document_symbols",
|
||||
# groups = {},
|
||||
# title = false,
|
||||
# filter = { range = true },
|
||||
# format = "{kind_icon}{symbol.name:Normal}",
|
||||
# -- The following line is needed to fix the background color
|
||||
# -- Set it to the lualine section you want to use
|
||||
# hl_group = "lualine_c_normal",
|
||||
# }
|
||||
# ).get
|
||||
# end
|
||||
# '';
|
||||
# };
|
||||
# cond = {
|
||||
# __raw = ''
|
||||
# require("trouble").statusline({
|
||||
# mode = "lsp_document_symbols",
|
||||
# groups = {},
|
||||
# title = false,
|
||||
# filter = { range = true },
|
||||
# format = "{kind_icon}{symbol.name:Normal}",
|
||||
# -- The following line is needed to fix the background color
|
||||
# -- Set it to the lualine section you want to use
|
||||
# hl_group = "lualine_c_normal",
|
||||
# }).has
|
||||
# '';
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
markdown-preview = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,14 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
neo-tree = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enable_git_status = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,22 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
noice = {
|
||||
enable = true;
|
||||
settings = {
|
||||
lsp.override = {
|
||||
"vim.lsp.util.convert_input_to_markdown_lines" = true;
|
||||
"vim.lsp.util.stylize_markdown" = true;
|
||||
};
|
||||
prests = {
|
||||
bottom_search = true;
|
||||
command_palette = true;
|
||||
inc_rename = false;
|
||||
long_message_to_split = true;
|
||||
lsp_doc_border = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
notify = {
|
||||
enable = true;
|
||||
settings = {
|
||||
render = "wrapped-compact";
|
||||
};
|
||||
};
|
||||
};
|
||||
opts = {
|
||||
termguicolors = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
oil = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
otter = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
papis = {
|
||||
enable = true;
|
||||
settings = {
|
||||
yq_bin = "${pkgs.yq-go}/bin/yq";
|
||||
search = {
|
||||
provider = "telescope";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>pp";
|
||||
action = "<CMD>Papis search<CR>";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Papis";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,29 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [ python312Packages.pylatexenc ];
|
||||
|
||||
programs.nixvim.plugins = {
|
||||
render-markdown = {
|
||||
enable = true;
|
||||
settings = {
|
||||
ft = [
|
||||
"markdown"
|
||||
"quarto"
|
||||
];
|
||||
latex = {
|
||||
enabled = false;
|
||||
};
|
||||
completions = {
|
||||
lsp = {
|
||||
enabled = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
web-devicons = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,104 +0,0 @@
|
||||
{ ... }:
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
smart-splits = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
programs.nixvim.keymaps = [
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_left";
|
||||
key = "<C-S-p>h";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_right";
|
||||
key = "<C-S-p>l";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_down";
|
||||
key = "<C-S-p>j";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_up";
|
||||
key = "<C-S-p>k";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_left";
|
||||
key = "<C-S-r>h";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_right";
|
||||
key = "<C-S-r>l";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_down";
|
||||
key = "<C-S-r>j";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_up";
|
||||
key = "<C-S-r>k";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ launch --location=hsplit<CR>";
|
||||
key = "<C-S-p>s";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ launch --location=vsplit<CR>";
|
||||
key = "<C-S-p>v";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ launch --location=hsplit --cwd=current --bias=35<CR>";
|
||||
key = "<C-S-p>p";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ close-window<CR>";
|
||||
key = "<C-S-p>q";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ action layout_action rotate<CR>";
|
||||
key = "<C-S-p>r";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ action toggle_layout stack<CR>";
|
||||
key = "<C-S-p>f";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -1,28 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
sniprun = {
|
||||
enable = true;
|
||||
settings = {
|
||||
display = [ "VirtualLine" ];
|
||||
snipruncolors = {
|
||||
SniprunVirtualTextOk = {
|
||||
bg = "#91d7e3";
|
||||
fg = "#000000";
|
||||
ctermbg = "Cyan";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
SniprunVirtualTextErr = {
|
||||
bg = "#ee99a0";
|
||||
fg = "#000000";
|
||||
ctermbg = "DarkRed";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,71 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
startup = {
|
||||
enable = true;
|
||||
settings = {
|
||||
theme = "dashboard";
|
||||
sections = {
|
||||
body = {
|
||||
align = "center";
|
||||
content = [
|
||||
[
|
||||
" Find File"
|
||||
"Telescope find_files"
|
||||
"<leader>ff"
|
||||
]
|
||||
[
|
||||
" Find Word"
|
||||
"Telescope live_grep"
|
||||
"<leader>lg"
|
||||
]
|
||||
[
|
||||
" Recent Files"
|
||||
"Telescope oldfiles"
|
||||
"<leader>of"
|
||||
]
|
||||
[
|
||||
" File Browser"
|
||||
"Telescope file_browser"
|
||||
"<leader>fb"
|
||||
]
|
||||
[
|
||||
" Colorschemes"
|
||||
"Telescope colorscheme"
|
||||
"<leader>cs"
|
||||
]
|
||||
[
|
||||
" New File"
|
||||
"lua require'startup'.new_file()"
|
||||
"<leader>nf"
|
||||
]
|
||||
];
|
||||
defaultColor = "";
|
||||
foldSection = true;
|
||||
highlight = "String";
|
||||
margin = 5;
|
||||
oldfilesAmount = 0;
|
||||
title = "Basic Commands";
|
||||
type = "mapping";
|
||||
};
|
||||
header = {
|
||||
align = "center";
|
||||
content = {
|
||||
__raw = "require('startup.headers').hydra_header";
|
||||
};
|
||||
defaultColor = "";
|
||||
foldSection = false;
|
||||
highlight = "Statement";
|
||||
margin = 5;
|
||||
oldfilesAmount = 0;
|
||||
title = "Header";
|
||||
type = "text";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,162 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
nvim-surround = {
|
||||
enable = true;
|
||||
luaConfig.post = # lua
|
||||
''
|
||||
local M = {}
|
||||
|
||||
M.get_input = function(prompt)
|
||||
local input = require("nvim-surround.input")
|
||||
return input.get_input(prompt)
|
||||
end
|
||||
|
||||
M.get_selection = function(args)
|
||||
if args.char then
|
||||
return M.get_find(args.char)(args.char)
|
||||
elseif args.motion then
|
||||
return require("nvim-surround.motions").get_selection(args.motion)
|
||||
elseif args.node then
|
||||
return require("nvim-surround.treesitter").get_selection(args.node)
|
||||
elseif args.pattern then
|
||||
return require("nvim-surround.patterns").get_selection(args.pattern)
|
||||
elseif args.query then
|
||||
return require("nvim-surround.queries").get_selection(args.query.capture, args.query.type)
|
||||
else
|
||||
vim.notify("Invalid key provided for `:h nvim-surround.config.get_selection()`.", vim.log.levels.ERROR)
|
||||
end
|
||||
end
|
||||
|
||||
surrounds = {
|
||||
["("] = {
|
||||
add = { "( ", " )" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a(" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
[")"] = {
|
||||
add = { "(", ")" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a)" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
["{"] = {
|
||||
add = { "{ ", " }" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a{" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
["}"] = {
|
||||
add = { "{", "}" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a}" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
["<"] = {
|
||||
add = { "< ", " >" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a<" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
[">"] = {
|
||||
add = { "<", ">" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a>" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
["["] = {
|
||||
add = { "[ ", " ]" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a[" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
["]"] = {
|
||||
add = { "[", "]" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a]" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
["'"] = {
|
||||
add = { "'", "'" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a'" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
['"'] = {
|
||||
add = { '"', '"' },
|
||||
find = function()
|
||||
return M.get_selection({ motion = 'a"' })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
["`"] = {
|
||||
add = { "`", "`" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a`" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
["i"] = {
|
||||
add = function()
|
||||
local left_delimiter = M.get_input("Enter the left delimiter: ")
|
||||
local right_delimiter = left_delimiter and M.get_input("Enter the right delimiter: ")
|
||||
if right_delimiter then
|
||||
return { { left_delimiter }, { right_delimiter } }
|
||||
end
|
||||
end,
|
||||
find = function() end,
|
||||
delete = function() end,
|
||||
},
|
||||
}
|
||||
'';
|
||||
settings = {
|
||||
aliases = {
|
||||
"a" = ">";
|
||||
"b" = ")";
|
||||
"B" = "}";
|
||||
"r" = "]";
|
||||
"q" = [
|
||||
"\""
|
||||
"'"
|
||||
"`"
|
||||
];
|
||||
"Q" = "''";
|
||||
"s" = [
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
">"
|
||||
"\""
|
||||
"'"
|
||||
"`"
|
||||
];
|
||||
};
|
||||
keymaps = {
|
||||
insert = "<C-g>s";
|
||||
insert_line = "<C-g>S";
|
||||
normal = "ys";
|
||||
normal_cur = "yss";
|
||||
normal_line = "yS";
|
||||
normal_cur_line = "ySS";
|
||||
visual = "S";
|
||||
visual_line = "gS";
|
||||
delete = "ds";
|
||||
# TODO: This keymap clashed with comment boxses
|
||||
change = "cs";
|
||||
change_line = "cS";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
ripgrep
|
||||
fd
|
||||
];
|
||||
programs.nixvim.plugins = {
|
||||
telescope = {
|
||||
enable = true;
|
||||
extensions = {
|
||||
fzf-native.enable = true;
|
||||
ui-select.enable = true;
|
||||
undo.enable = true;
|
||||
file-browser = {
|
||||
enable = true;
|
||||
settings = {
|
||||
hijack_netrw = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
keymaps = {
|
||||
"<leader>ff" = {
|
||||
action = "find_files";
|
||||
options.desc = "List Files";
|
||||
};
|
||||
"<leader>fb" = {
|
||||
action = "file_browser path=%:p:h select_buffer=true";
|
||||
options.desc = "File Browser";
|
||||
};
|
||||
"<leader>fs" = {
|
||||
action = "buffers";
|
||||
options.desc = "List Open Buffers";
|
||||
};
|
||||
"<leader>fu" = {
|
||||
action = "undo";
|
||||
options.desc = "Undo Tree";
|
||||
};
|
||||
};
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>f";
|
||||
group = "Telescope";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,30 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
# TODO: Make filetype keybindings work
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
texpresso = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
files = {
|
||||
"ftplugin/latex.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>Texpresso %<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Start Texpresso";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,38 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
typst-preview = {
|
||||
enable = true;
|
||||
lazyLoad = {
|
||||
settings = {
|
||||
ft = "typst";
|
||||
cmd = "TypstPreview";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
open_command = "qutebrowser --target tab %s";
|
||||
};
|
||||
};
|
||||
};
|
||||
files = {
|
||||
"ftplugin/typst.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>TypstPreview<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Typst Preview";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
# TODO: coneal does not work
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
typst-vim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
conceal = 1;
|
||||
conceal_math = 1;
|
||||
conceal_emoji = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -1,40 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
vimtex = {
|
||||
enable = true;
|
||||
settings = {
|
||||
view_automatic = false;
|
||||
mappings_disable = {
|
||||
"n" = [ "K" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
autoGroups = {
|
||||
"lazyvim_vimtex_conceal" = {
|
||||
clear = true;
|
||||
};
|
||||
};
|
||||
|
||||
autoCmd = [
|
||||
{
|
||||
event = [ "FileType" ];
|
||||
group = "lazyvim_vimtex_conceal";
|
||||
pattern = [
|
||||
"bib"
|
||||
"tex"
|
||||
];
|
||||
callback.__raw = # lua
|
||||
''
|
||||
function ()
|
||||
vim.wo.conceallevel = 2
|
||||
end
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
45
home/programs/nixvim/plugins/aerial.nix
Normal file
45
home/programs/nixvim/plugins/aerial.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
aerial = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = [
|
||||
"AerialToggle"
|
||||
"AerialNavToggle"
|
||||
];
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>a";
|
||||
group = "Aerial";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>at";
|
||||
action = "<cmd>AerialToggle<cr>";
|
||||
options.desc = "Aerial tab";
|
||||
}
|
||||
{
|
||||
key = "<leader>an";
|
||||
action = "<cmd>AerialNavToggle<cr>";
|
||||
options.desc = "Aerial navgation";
|
||||
}
|
||||
{
|
||||
key = "<leader>a.";
|
||||
action = "<cmd>AerialNext<cr>";
|
||||
options.desc = "Aerial next";
|
||||
}
|
||||
{
|
||||
key = "<leader>a,";
|
||||
action = "<cmd>AerialPrev<cr>";
|
||||
options.desc = "Aerial previous";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
10
home/programs/nixvim/plugins/autopairs.nix
Normal file
10
home/programs/nixvim/plugins/autopairs.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.nvim-autopairs = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.check_ts = true;
|
||||
};
|
||||
}
|
||||
@@ -3,9 +3,9 @@
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
barbar = {
|
||||
enable = true;
|
||||
};
|
||||
barbar.enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>b";
|
||||
@@ -22,62 +22,49 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>BufferPrevious<CR>";
|
||||
key = "<leader>,";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Tab ";
|
||||
};
|
||||
options.desc = "Tab ";
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferNext<CR>";
|
||||
key = "<leader>.";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Tab ";
|
||||
};
|
||||
options.desc = "Tab ";
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferMovePrevious<CR>";
|
||||
key = "<leader>b<";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Re-Order ";
|
||||
};
|
||||
options.desc = "Re-Order ";
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferMoveNext<CR>";
|
||||
key = "<leader>b>";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Re-Order ";
|
||||
};
|
||||
options.desc = "Re-Order ";
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferClose<CR>";
|
||||
key = "<leader>bc";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Close";
|
||||
};
|
||||
options.desc = "Close";
|
||||
}
|
||||
{
|
||||
action = "<CMD>tabnew +Telescope\\ file_browser<CR>";
|
||||
action = "<CMD>tabnew +Telescope\\ yazi<CR>"; # TODO: does not work
|
||||
key = "<leader>bn";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Create";
|
||||
};
|
||||
options.desc = "Create";
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferPick<CR>";
|
||||
key = "<leader>bp";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Pick Tab";
|
||||
};
|
||||
options.desc = "Pick Tab";
|
||||
}
|
||||
];
|
||||
};
|
||||
65
home/programs/nixvim/plugins/bullets.nix
Normal file
65
home/programs/nixvim/plugins/bullets.nix
Normal file
@@ -0,0 +1,65 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.bullets = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" "txt" "gitcommit" ];
|
||||
|
||||
settings = {
|
||||
enabled_file_types = [
|
||||
"markdown"
|
||||
"text"
|
||||
"gitcommit"
|
||||
];
|
||||
set_mappings = 0;
|
||||
checkbox_markers = " -X";
|
||||
custom_mappings = [
|
||||
[
|
||||
"nmap"
|
||||
"<leader>mn"
|
||||
"<Plug>(bullets-newline)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
"<leader>mr"
|
||||
"<Plug>(bullets-renumber)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
"<leader>mr"
|
||||
"<Plug>(bullets-renumber)"
|
||||
]
|
||||
[
|
||||
"imap"
|
||||
"<C-t>"
|
||||
"<Plug>(bullets-demote)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
">>"
|
||||
"<Plug>(bullets-demote)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
">"
|
||||
"<Plug>(bullets-demote)"
|
||||
]
|
||||
[
|
||||
"imap"
|
||||
"<C-d>"
|
||||
"<Plug>(bullets-promote)"
|
||||
]
|
||||
[
|
||||
"nmap"
|
||||
"<<"
|
||||
"<Plug>(bullets-promote)"
|
||||
]
|
||||
[
|
||||
"vmap"
|
||||
"<"
|
||||
"<Plug>(bullets-promote)"
|
||||
]
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
70
home/programs/nixvim/plugins/cmp.nix
Normal file
70
home/programs/nixvim/plugins/cmp.nix
Normal file
@@ -0,0 +1,70 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
keymap.preset = "default";
|
||||
snippets.preset = "luasnip";
|
||||
|
||||
completion.accept = {
|
||||
auto_brackets = {
|
||||
enabled = true;
|
||||
kind_resolution.enabled = true;
|
||||
|
||||
semantic_token_resolution = {
|
||||
enabled = true;
|
||||
timeout_ms = 400;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
sources = {
|
||||
per_filetype.yaml = [ "papis" ];
|
||||
|
||||
providers = {
|
||||
spell = {
|
||||
module = "blink-cmp-spell";
|
||||
name = "Spell";
|
||||
score_offset = 100;
|
||||
opts = { };
|
||||
};
|
||||
|
||||
vimtex = {
|
||||
name = "vimtex";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
|
||||
dap = {
|
||||
name = "dap";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
|
||||
mkdnflow = {
|
||||
name = "mkdnflow";
|
||||
module = "blink.compat.source";
|
||||
};
|
||||
};
|
||||
|
||||
default = [
|
||||
"lsp"
|
||||
"mkdnflow"
|
||||
"path"
|
||||
"snippets"
|
||||
# "dap"
|
||||
"vimtex"
|
||||
"buffer"
|
||||
"spell"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
blink-cmp-spell.enable = true;
|
||||
blink-compat.enable = true;
|
||||
cmp-vimtex.enable = true;
|
||||
# cmp-dap.enable = true;
|
||||
};
|
||||
}
|
||||
15
home/programs/nixvim/plugins/colorizor.nix
Normal file
15
home/programs/nixvim/plugins/colorizor.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.colorizer = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [
|
||||
"css"
|
||||
"scss"
|
||||
"less"
|
||||
"sass"
|
||||
"html"
|
||||
"svg"
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -5,7 +5,9 @@
|
||||
plugins = {
|
||||
comment-box = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>c";
|
||||
@@ -14,41 +16,32 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>cb";
|
||||
action = "<Cmd>CBccbox<CR>";
|
||||
options = {
|
||||
desc = "Box Title";
|
||||
};
|
||||
options.desc = "Box Title";
|
||||
}
|
||||
{
|
||||
key = "<leader>ct";
|
||||
action = "<Cmd>CBllline<CR>";
|
||||
options = {
|
||||
desc = "Titled Line";
|
||||
};
|
||||
options.desc = "Titled Line";
|
||||
}
|
||||
{
|
||||
key = "<leader>cl";
|
||||
action = "<Cmd>CBline<CR>";
|
||||
options = {
|
||||
desc = "Simple Line";
|
||||
};
|
||||
options.desc = "Simple Line";
|
||||
}
|
||||
{
|
||||
key = "<leader>cm";
|
||||
action = "<Cmd>CBllbox14<CR>";
|
||||
options = {
|
||||
desc = "Marked";
|
||||
};
|
||||
options.desc = "Marked";
|
||||
}
|
||||
{
|
||||
key = "<leader>cd";
|
||||
action = "<Cmd>CBd<CR>";
|
||||
options = {
|
||||
desc = "Remove a Box";
|
||||
};
|
||||
options.desc = "Remove a Box";
|
||||
}
|
||||
];
|
||||
};
|
||||
10
home/programs/nixvim/plugins/comment.nix
Normal file
10
home/programs/nixvim/plugins/comment.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.comment = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.mappings.basic = true;
|
||||
};
|
||||
}
|
||||
@@ -21,13 +21,13 @@
|
||||
programs.nixvim.plugins = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
formatters_by_ft = {
|
||||
lua = [ "stylua" ];
|
||||
rust = [ "rustfmt" ];
|
||||
python = [
|
||||
"black"
|
||||
];
|
||||
python = [ "black" ];
|
||||
haskell = [ "fourmolu" ];
|
||||
terraform = [ "hcl" ];
|
||||
elixir = [ "mix" ];
|
||||
@@ -47,9 +47,7 @@
|
||||
yaml = [ "prettierd" ];
|
||||
nu = [ "topiary_nu" ];
|
||||
nix = [ "nixfmt" ];
|
||||
tex = [
|
||||
"tex-fmt"
|
||||
];
|
||||
tex = [ "tex-fmt" ];
|
||||
"_" = [
|
||||
"squeeze_blanks"
|
||||
"trim_whitespace"
|
||||
@@ -94,9 +92,7 @@
|
||||
"2"
|
||||
];
|
||||
};
|
||||
tex-fmt = {
|
||||
command = "tex-fmt";
|
||||
};
|
||||
tex-fmt.command = "tex-fmt";
|
||||
};
|
||||
};
|
||||
};
|
||||
@@ -1,8 +0,0 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.vim-css-color = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "css" ];
|
||||
};
|
||||
}
|
||||
49
home/programs/nixvim/plugins/csvview.nix
Normal file
49
home/programs/nixvim/plugins/csvview.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
csvview = {
|
||||
enable = true;
|
||||
lazyLoad.settings.cmd = [
|
||||
"CsvViewEnable"
|
||||
"CsvViewToggle"
|
||||
];
|
||||
|
||||
settings = {
|
||||
parser.async_chunksize = 30;
|
||||
view = {
|
||||
display_mode = "border";
|
||||
spacing = 2;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>z";
|
||||
group = "CSV";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>ze";
|
||||
action = "<Cmd>CsvViewEnable<CR>";
|
||||
options.desc = "Csv enable preview";
|
||||
}
|
||||
{
|
||||
key = "<leader>zd";
|
||||
action = "<Cmd>CsvViewDisable<CR>";
|
||||
options.desc = "Csv disable preview";
|
||||
}
|
||||
{
|
||||
key = "<leader>zt";
|
||||
action = "<Cmd>CsvViewToggle<CR>";
|
||||
options.desc = "Csv toggle preview";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, pkgs, ... }:
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
@@ -13,10 +13,13 @@
|
||||
plugins = {
|
||||
dap-python = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
dap = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
luaConfig.post = ''
|
||||
local dap, dapui = require("dap"), require("dapui")
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
@@ -32,11 +35,13 @@
|
||||
dapui.close()
|
||||
end
|
||||
'';
|
||||
|
||||
adapters = {
|
||||
executables = {
|
||||
lldb = {
|
||||
command = "${pkgs.lldb_19}/bin/lldb-dap";
|
||||
};
|
||||
|
||||
gdb = {
|
||||
command = "${pkgs.gdb}/bin/gdb";
|
||||
args = [
|
||||
@@ -45,6 +50,7 @@
|
||||
"set print pretty on"
|
||||
];
|
||||
};
|
||||
|
||||
rust-gdb = {
|
||||
command = "${pkgs.rustc}/bin/rust-gdb";
|
||||
args = [
|
||||
@@ -55,9 +61,8 @@
|
||||
};
|
||||
};
|
||||
};
|
||||
signs = {
|
||||
dapBreakpoint.text = "";
|
||||
};
|
||||
|
||||
signs.dapBreakpoint.text = "";
|
||||
configurations = {
|
||||
cpp = [
|
||||
{
|
||||
@@ -104,6 +109,7 @@
|
||||
cwd = "\${workspaceFolder}";
|
||||
}
|
||||
];
|
||||
|
||||
c = [
|
||||
{
|
||||
name = "Launch file";
|
||||
@@ -136,6 +142,7 @@
|
||||
args = { };
|
||||
}
|
||||
];
|
||||
|
||||
rust = [
|
||||
{
|
||||
name = "Launch";
|
||||
@@ -182,12 +189,17 @@
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
dap-ui = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
dap-virtual-text = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>d";
|
||||
@@ -196,70 +208,55 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>dt";
|
||||
action.__raw = "function() require('dap').toggle_breakpoint() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Toggle Breakpoint";
|
||||
};
|
||||
options.desc = "Toggle Breakpoint";
|
||||
}
|
||||
{
|
||||
key = "<leader>dc";
|
||||
action.__raw = "function() require('dap').continue() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Continue";
|
||||
};
|
||||
options.desc = "Continue";
|
||||
}
|
||||
{
|
||||
key = "<leader>dc";
|
||||
action.__raw = "function() require('dap').continue() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Continue";
|
||||
};
|
||||
options.desc = "Continue";
|
||||
}
|
||||
{
|
||||
key = "<leader>di";
|
||||
action.__raw = "function() require('dap').step_into() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Step Into";
|
||||
};
|
||||
options.desc = "Step Into";
|
||||
}
|
||||
{
|
||||
key = "<leader>do";
|
||||
action.__raw = "function() require('dap').step_over() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Step Over";
|
||||
};
|
||||
options.desc = "Step Over";
|
||||
}
|
||||
{
|
||||
key = "<leader>du";
|
||||
action.__raw = "function() require('dap').step_out() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Step Out";
|
||||
};
|
||||
options.desc = "Step Out";
|
||||
}
|
||||
{
|
||||
key = "<leader>dr";
|
||||
action.__raw = "function() require('dap').repl.open() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Open REPL";
|
||||
};
|
||||
options.desc = "Open REPL";
|
||||
}
|
||||
{
|
||||
key = "<leader>dl";
|
||||
action.__raw = "function() require('dap').run_last() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Run Last";
|
||||
};
|
||||
options.desc = "Run Last";
|
||||
}
|
||||
{
|
||||
key = "<leader>dq";
|
||||
@@ -272,27 +269,21 @@
|
||||
end
|
||||
'';
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Terminate";
|
||||
};
|
||||
options.desc = "Terminate";
|
||||
}
|
||||
{
|
||||
key = "<leader>db";
|
||||
action.__raw = "function() require('dap').list_breakpoints() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "List Breakpoints";
|
||||
};
|
||||
options.desc = "List Breakpoints";
|
||||
|
||||
}
|
||||
{
|
||||
key = "<leader>de";
|
||||
action.__raw = "function() require('dap').set_exception_breakpoints({ ' all ' }) end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Set Exception Breakpoints";
|
||||
};
|
||||
options.desc = "Set Exception Breakpoints";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,21 +1,54 @@
|
||||
{
|
||||
imports = [
|
||||
./css-color.nix
|
||||
./aerial.nix
|
||||
./autopairs.nix
|
||||
./barbar.nix
|
||||
./bullets.nix
|
||||
./cmp.nix
|
||||
./colorizor.nix
|
||||
./comment-box.nix
|
||||
./comment.nix
|
||||
./conform.nix
|
||||
./csvview.nix
|
||||
./dap.nix
|
||||
./dynomark.nix
|
||||
./edgy.nix
|
||||
./gitsigns.nix
|
||||
./img-clip.nix
|
||||
./knap.nix
|
||||
./lualine.nix
|
||||
./lsp.nix
|
||||
./lz-n.nix
|
||||
./markdown-preview.nix
|
||||
./mkdnflow.nix
|
||||
./neoscroll.nix
|
||||
./neotree.nix
|
||||
./noice.nix
|
||||
./notify.nix
|
||||
./oil.nix
|
||||
./otter.nix
|
||||
./papis.nix
|
||||
./rainbow.nix
|
||||
./render-markdown.nix
|
||||
./rustaceanvim.nix
|
||||
./smart-splits.nix
|
||||
./snippets.nix
|
||||
./sniprun.nix
|
||||
./startup.nix
|
||||
./surround.nix
|
||||
./todo-comments.nix
|
||||
./toggleterm.nix
|
||||
./treesitter.nix
|
||||
./trouble.nix
|
||||
./typst-preview.nix
|
||||
./typst-vim.nix
|
||||
./undotree.nix
|
||||
./unified.nix
|
||||
./vimtex.nix
|
||||
./web-devicons.nix
|
||||
./which-key.nix
|
||||
./wilder.nix
|
||||
./yazi.nix
|
||||
./yuck.nix
|
||||
|
||||
./vimtex.nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -14,11 +14,7 @@ let
|
||||
in
|
||||
{
|
||||
programs.nixvim = {
|
||||
|
||||
extraPlugins = [
|
||||
dynomark-nvim
|
||||
];
|
||||
|
||||
extraPlugins = [ dynomark-nvim ];
|
||||
extraConfigLua = "require('dynomark').setup({})";
|
||||
|
||||
keymaps = [
|
||||
@@ -26,17 +22,13 @@ in
|
||||
key = "<leader>v";
|
||||
action = "<Plug>(DynomarkToggle)";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Toggle Dynomark";
|
||||
};
|
||||
options.desc = "Toggle Dynomark";
|
||||
}
|
||||
{
|
||||
key = "<leader>V";
|
||||
action = "<Plug>(DynomarkRun)";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Run Dynomark query under cursor";
|
||||
};
|
||||
options.desc = "Run Dynomark query under cursor";
|
||||
}
|
||||
];
|
||||
};
|
||||
@@ -9,10 +9,12 @@
|
||||
# To prevent this, set `splitkeep` to either `screen` or `topline`.
|
||||
splitkeep = "screen";
|
||||
};
|
||||
|
||||
plugins = {
|
||||
edgy = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
bottom.__raw = ''
|
||||
{
|
||||
@@ -37,6 +39,7 @@
|
||||
}
|
||||
}
|
||||
'';
|
||||
|
||||
left.__raw = ''
|
||||
{
|
||||
-- Neo-tree filesystem always takes half the screen height
|
||||
@@ -77,4 +80,3 @@
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
8
home/programs/nixvim/plugins/gitsigns.nix
Normal file
8
home/programs/nixvim/plugins/gitsigns.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.gitsigns = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
}
|
||||
@@ -12,8 +12,6 @@
|
||||
haskellPackages.ghci-dap
|
||||
];
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
haskell-tools-nvim
|
||||
];
|
||||
extraPlugins = with pkgs.vimPlugins; [ haskell-tools-nvim ];
|
||||
};
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# TODO: Make filetype keybindings work
|
||||
let
|
||||
keys = [
|
||||
{
|
||||
@@ -11,9 +10,7 @@ let
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Close Viewer (knap)";
|
||||
};
|
||||
options.desc = "Close Viewer (knap)";
|
||||
}
|
||||
{
|
||||
action.__raw = "function() require('knap').toggle_autopreviewing() end";
|
||||
@@ -23,9 +20,7 @@ let
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Toggle Auto-Processing (knap)";
|
||||
};
|
||||
options.desc = "Toggle Auto-Processing (knap)";
|
||||
}
|
||||
{
|
||||
action.__raw = "function() require('knap').forward_jump() end";
|
||||
@@ -35,9 +30,7 @@ let
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "SyncTeX Forward Search (Knap)";
|
||||
};
|
||||
options.desc = "SyncTeX Forward Search (Knap)";
|
||||
}
|
||||
];
|
||||
in
|
||||
@@ -47,22 +40,18 @@ in
|
||||
texliveFull
|
||||
rubber
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [ knap ];
|
||||
globals = {
|
||||
knap_settings = {
|
||||
htmltohtmlviewerlaunch = "luakit %outputfile%";
|
||||
mdtohtmlviewerlaunch = "luakit %outputfile%";
|
||||
markdowntohtmlviewerlaunch = "luakit %outputfile%";
|
||||
};
|
||||
globals.knap_settings = {
|
||||
htmltohtmlviewerlaunch = "luakit %outputfile%";
|
||||
mdtohtmlviewerlaunch = "luakit %outputfile%";
|
||||
markdowntohtmlviewerlaunch = "luakit %outputfile%";
|
||||
};
|
||||
|
||||
files = {
|
||||
"ftplugin/latex.lua" = {
|
||||
keymaps = keys;
|
||||
};
|
||||
"ftplugin/markdown.lua" = {
|
||||
keymaps = keys;
|
||||
};
|
||||
"ftplugin/latex.lua".keymaps = keys;
|
||||
"ftplugin/markdown.lua".keymaps = keys;
|
||||
};
|
||||
};
|
||||
}
|
||||
67
home/programs/nixvim/plugins/lsp.nix
Normal file
67
home/programs/nixvim/plugins/lsp.nix
Normal file
@@ -0,0 +1,67 @@
|
||||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
tofu-ls
|
||||
zuban
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
plugins.lsp = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
lsp = {
|
||||
luaConfig = {
|
||||
post = ''
|
||||
vim.lsp.enable('tofu_ls')
|
||||
vim.lsp.enable('prolog_ls')
|
||||
'';
|
||||
};
|
||||
servers = {
|
||||
nixd.enable = false;
|
||||
rust_analyzer.enable = true;
|
||||
leanls.enable = true;
|
||||
nil_ls = {
|
||||
enable = !config.programs.nixvim.plugins.lsp.servers.nixd.enable;
|
||||
config = {
|
||||
nil = {
|
||||
formatting.command = [ "nixfmt" ];
|
||||
diagnostics.ignored = [ ];
|
||||
nix.flake.autoArchive = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
nushell.enable = true;
|
||||
pylsp.enable = true;
|
||||
pylyzer.enable = false;
|
||||
pyright.enable = true;
|
||||
clangd.enable = true;
|
||||
zk.enable = true;
|
||||
elixirls.enable = true;
|
||||
marksman.enable = true;
|
||||
texlab.enable = true;
|
||||
lua_ls.enable = true;
|
||||
ltex_plus = {
|
||||
enable = true;
|
||||
package = pkgs.ltex-ls-plus;
|
||||
config = {
|
||||
ltex = {
|
||||
language = "en-US";
|
||||
enabled = [
|
||||
"latex"
|
||||
"tex"
|
||||
"bibtex"
|
||||
"markdown"
|
||||
"typst"
|
||||
"quarto"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
tinymist.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
8
home/programs/nixvim/plugins/lualine.nix
Normal file
8
home/programs/nixvim/plugins/lualine.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.lualine = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
}
|
||||
8
home/programs/nixvim/plugins/markdown-preview.nix
Normal file
8
home/programs/nixvim/plugins/markdown-preview.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.markdown-preview = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" ];
|
||||
};
|
||||
}
|
||||
@@ -2,13 +2,13 @@
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraConfigLua = ''
|
||||
vim.api.nvim_create_autocmd("FileType", {pattern = "markdown", command = "set awa"})
|
||||
'';
|
||||
extraConfigLua = ''vim.api.nvim_create_autocmd("FileType", {pattern = "markdown", command = "set awa"})'';
|
||||
|
||||
plugins = {
|
||||
mkdnflow = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "md" ];
|
||||
|
||||
settings = {
|
||||
links = {
|
||||
style = "wiki";
|
||||
@@ -31,6 +31,7 @@
|
||||
end
|
||||
'';
|
||||
};
|
||||
|
||||
modules = {
|
||||
conceal = true;
|
||||
cursor = true;
|
||||
@@ -42,10 +43,12 @@
|
||||
tables = true;
|
||||
yaml = true;
|
||||
};
|
||||
|
||||
filetypes = {
|
||||
markdown = true;
|
||||
qmd = true;
|
||||
};
|
||||
|
||||
to_do = {
|
||||
symbols = [
|
||||
" "
|
||||
@@ -54,6 +57,7 @@
|
||||
];
|
||||
status_propagation.up = true;
|
||||
};
|
||||
|
||||
foldtext = {
|
||||
title_transformer.__raw = ''
|
||||
function()
|
||||
@@ -104,6 +108,7 @@
|
||||
middle = "─";
|
||||
};
|
||||
};
|
||||
|
||||
mappings = {
|
||||
MkdnEnter = [
|
||||
[
|
||||
@@ -165,6 +170,7 @@
|
||||
"<C-Space>"
|
||||
];
|
||||
};
|
||||
|
||||
create_dirs = true;
|
||||
new_file_template = {
|
||||
use_template = true;
|
||||
@@ -173,10 +179,14 @@
|
||||
date = "os_date";
|
||||
};
|
||||
template = ''
|
||||
---
|
||||
---
|
||||
title: {{ title }}
|
||||
description:
|
||||
published: true
|
||||
date: {{ date }}
|
||||
tags: []
|
||||
tags: private
|
||||
editor: markdown
|
||||
dateCreated: {{ date }}
|
||||
---
|
||||
# {{ title }}
|
||||
'';
|
||||
@@ -4,6 +4,8 @@
|
||||
programs.nixvim.plugins = {
|
||||
neoscroll = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
cursor_scrolls_alone = true;
|
||||
easing_function = "quadratic";
|
||||
@@ -22,7 +24,6 @@
|
||||
respect_scrolloff = false;
|
||||
stop_eof = true;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
10
home/programs/nixvim/plugins/neotree.nix
Normal file
10
home/programs/nixvim/plugins/neotree.nix
Normal file
@@ -0,0 +1,10 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.neo-tree = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.enable_git_status = true;
|
||||
};
|
||||
}
|
||||
23
home/programs/nixvim/plugins/noice.nix
Normal file
23
home/programs/nixvim/plugins/noice.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.noice = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
lsp.override = {
|
||||
"vim.lsp.util.convert_input_to_markdown_lines" = true;
|
||||
"vim.lsp.util.stylize_markdown" = true;
|
||||
};
|
||||
|
||||
prests = {
|
||||
bottom_search = true;
|
||||
command_palette = true;
|
||||
inc_rename = false;
|
||||
long_message_to_split = true;
|
||||
lsp_doc_border = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
14
home/programs/nixvim/plugins/notify.nix
Normal file
14
home/programs/nixvim/plugins/notify.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.notify = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings.render = "wrapped-compact";
|
||||
};
|
||||
|
||||
opts.termguicolors = true;
|
||||
};
|
||||
}
|
||||
8
home/programs/nixvim/plugins/oil.nix
Normal file
8
home/programs/nixvim/plugins/oil.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.oil = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
}
|
||||
@@ -3,6 +3,8 @@
|
||||
{
|
||||
programs.nixvim.plugins.openscad = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetype = [ "scad" ];
|
||||
|
||||
luaConfig.post = ''
|
||||
vim.g.openscad_fuzzy_finder = 'skim'
|
||||
-- when the pdf_command is run, the last argument will be the pdf filename
|
||||
8
home/programs/nixvim/plugins/otter.nix
Normal file
8
home/programs/nixvim/plugins/otter.nix
Normal file
@@ -0,0 +1,8 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.otter = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
}
|
||||
24
home/programs/nixvim/plugins/papis.nix
Normal file
24
home/programs/nixvim/plugins/papis.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.papis = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
yq_bin = "${pkgs.yq-go}/bin/yq";
|
||||
search.provider = "telescope";
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>pp";
|
||||
action = "<CMD>Papis search<CR>";
|
||||
mode = [ "n" ];
|
||||
options.desc = "Papis";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,98 +1,75 @@
|
||||
{ pkgs, ... }:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
rainbow = {
|
||||
enable = true;
|
||||
lazyLoad.settings.event = [
|
||||
"BufReadPost"
|
||||
"BufNewFile"
|
||||
];
|
||||
programs.nixvim.plugins.rainbow = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
active = 1;
|
||||
conf = {
|
||||
guifgs = [
|
||||
"#f5c2e7"
|
||||
"#eba0ac"
|
||||
"#a6e3a1"
|
||||
"#74c7ec"
|
||||
"#f5e0dc"
|
||||
"#cba6f7"
|
||||
"#fab387"
|
||||
"#94e2d5"
|
||||
"#89b4fa"
|
||||
"#f2cdcd"
|
||||
"#f38ba8"
|
||||
"#f9e2af"
|
||||
"#89dceb"
|
||||
"#b4befe"
|
||||
];
|
||||
operators = "_,_";
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\\begin/ end=/\\end/ fold"
|
||||
];
|
||||
separately = {
|
||||
"*" = {
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
];
|
||||
};
|
||||
css = 0;
|
||||
haskell = {
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/\[/ end=/\]/ fold"
|
||||
"start=/\v\{\ze[^-]/ end=/}/ fold"
|
||||
];
|
||||
};
|
||||
lisp = {
|
||||
guifgs = [
|
||||
"#f5c2e7"
|
||||
"#eba0ac"
|
||||
"#a6e3a1"
|
||||
"#74c7ec"
|
||||
"#f5e0dc"
|
||||
"#cba6f7"
|
||||
"#fab387"
|
||||
"#94e2d5"
|
||||
"#89b4fa"
|
||||
"#f2cdcd"
|
||||
"#f38ba8"
|
||||
"#f9e2af"
|
||||
"#89dceb"
|
||||
"#b4befe"
|
||||
];
|
||||
};
|
||||
markdown = {
|
||||
parentheses_options = "containedin=markdownCode contained";
|
||||
};
|
||||
nerdtree = 0;
|
||||
perl = {
|
||||
syn_name_prefix = "perlBlockFoldRainbow";
|
||||
};
|
||||
stylus = {
|
||||
parentheses = [ "start=/{/ end=/}/ fold contains=@colorableGroup" ];
|
||||
};
|
||||
tex = {
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\\begin/ end=/\\end/ fold"
|
||||
];
|
||||
};
|
||||
vim = {
|
||||
parentheses_options = "containedin=vimFuncBody";
|
||||
};
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
active = 1;
|
||||
conf = {
|
||||
guifgs = [
|
||||
"#f5c2e7"
|
||||
"#eba0ac"
|
||||
"#a6e3a1"
|
||||
"#74c7ec"
|
||||
"#f5e0dc"
|
||||
"#cba6f7"
|
||||
"#fab387"
|
||||
"#94e2d5"
|
||||
"#89b4fa"
|
||||
"#f2cdcd"
|
||||
"#f38ba8"
|
||||
"#f9e2af"
|
||||
"#89dceb"
|
||||
"#b4befe"
|
||||
];
|
||||
operators = "_,_";
|
||||
parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\\begin/ end=/\\end/ fold"
|
||||
];
|
||||
separately = {
|
||||
"*".parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
];
|
||||
css = 0;
|
||||
haskell.parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/\[/ end=/\]/ fold"
|
||||
"start=/\v\{\ze[^-]/ end=/}/ fold"
|
||||
];
|
||||
lisp.guifgs = [
|
||||
"#f5c2e7"
|
||||
"#eba0ac"
|
||||
"#a6e3a1"
|
||||
"#74c7ec"
|
||||
"#f5e0dc"
|
||||
"#cba6f7"
|
||||
"#fab387"
|
||||
"#94e2d5"
|
||||
"#89b4fa"
|
||||
"#f2cdcd"
|
||||
"#f38ba8"
|
||||
"#f9e2af"
|
||||
"#89dceb"
|
||||
"#b4befe"
|
||||
];
|
||||
markdown.parentheses_options = "containedin=markdownCode contained";
|
||||
nerdtree = 0;
|
||||
perl.syn_name_prefix = "perlBlockFoldRainbow";
|
||||
stylus.parentheses = [ "start=/{/ end=/}/ fold contains=@colorableGroup" ];
|
||||
tex.parentheses = [
|
||||
"start=/(/ end=/)/ fold"
|
||||
"start=/{/ end=/}/ fold"
|
||||
"start=/\\[/ end=/\\]/ fold"
|
||||
"start=/\\begin/ end=/\\end/ fold"
|
||||
];
|
||||
vim.parentheses_options = "containedin=vimFuncBody";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
@@ -13,6 +13,15 @@
|
||||
ft = [ "markdown" ];
|
||||
latex.enabled = false;
|
||||
completions.lsp.enabled = true;
|
||||
|
||||
code = {
|
||||
width = "block";
|
||||
min_width = 45;
|
||||
left_pad = 2;
|
||||
language_pad = 2;
|
||||
};
|
||||
|
||||
heading.icons = [ " " " " " " " " " " " " ];
|
||||
};
|
||||
};
|
||||
|
||||
@@ -28,11 +37,9 @@
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>RenderMarkdown toggle<CR>";
|
||||
key = "<leader>mp";
|
||||
key = "<leader>ms";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Toggle markdown preview";
|
||||
};
|
||||
options.desc = "Toggle markdown preview";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -4,49 +4,41 @@
|
||||
programs.nixvim = {
|
||||
extraPackages = with pkgs; [ rust-analyzer ];
|
||||
|
||||
plugins = {
|
||||
rustaceanvim = {
|
||||
enable = true;
|
||||
lazyload.settings.filetype = "rs";
|
||||
};
|
||||
plugins.rustaceanvim = {
|
||||
enable = true;
|
||||
lazyload.settings.filetype = [ "rs" ];
|
||||
};
|
||||
|
||||
files = {
|
||||
"ftplugin/rust.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action.__raw = ''
|
||||
function()
|
||||
vim.cmd.RustAnalyzer('codeAction')
|
||||
end
|
||||
'';
|
||||
key = "<leader>a";
|
||||
mode = [
|
||||
"n"
|
||||
];
|
||||
options = {
|
||||
desc = "Code action";
|
||||
silent = true;
|
||||
buffer.__raw = "vim.api.nvim_get_current_buf()";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = ''
|
||||
function()
|
||||
vim.cmd.RustAnalyzer({'hover', 'actions'})
|
||||
end
|
||||
'';
|
||||
key = "K";
|
||||
mode = [
|
||||
"n"
|
||||
];
|
||||
options = {
|
||||
silent = true;
|
||||
buffer.__raw = "vim.api.nvim_get_current_buf()";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
files."ftplugin/rust.lua" = {
|
||||
keymaps = [
|
||||
{
|
||||
action.__raw = ''
|
||||
function()
|
||||
vim.cmd.RustAnalyzer('codeAction')
|
||||
end
|
||||
'';
|
||||
key = "<leader>a";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Code action";
|
||||
silent = true;
|
||||
buffer.__raw = "vim.api.nvim_get_current_buf()";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = ''
|
||||
function()
|
||||
vim.cmd.RustAnalyzer({'hover', 'actions'})
|
||||
end
|
||||
'';
|
||||
key = "K";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
silent = true;
|
||||
buffer.__raw = "vim.api.nvim_get_current_buf()";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
108
home/programs/nixvim/plugins/smart-splits.nix
Normal file
108
home/programs/nixvim/plugins/smart-splits.nix
Normal file
@@ -0,0 +1,108 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
smart-splits = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
};
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_left";
|
||||
key = "<C-S-p>h";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_right";
|
||||
key = "<C-S-p>l";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_down";
|
||||
key = "<C-S-p>j";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').move_cursor_up";
|
||||
key = "<C-S-p>k";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_left";
|
||||
key = "<C-S-r>h";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_right";
|
||||
key = "<C-S-r>l";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_down";
|
||||
key = "<C-S-r>j";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action.__raw = "require('smart-splits').resize_up";
|
||||
key = "<C-S-r>k";
|
||||
mode = "n";
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ launch --location=hsplit<CR>";
|
||||
key = "<C-S-p>s";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ launch --location=vsplit<CR>";
|
||||
key = "<C-S-p>v";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ launch --location=hsplit --cwd=current --bias=35<CR>";
|
||||
key = "<C-S-p>p";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ close-window<CR>";
|
||||
key = "<C-S-p>q";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ action layout_action rotate<CR>";
|
||||
key = "<C-S-p>r";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
{
|
||||
action = "<CMD>silent !kitten @ action toggle_layout stack<CR>";
|
||||
key = "<C-S-p>f";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
@@ -1,15 +1,17 @@
|
||||
{...}:
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
luasnip = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
fromVscode = [ { } ];
|
||||
};
|
||||
|
||||
friendly-snippets = {
|
||||
enable = true;
|
||||
lazyLoad.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
27
home/programs/nixvim/plugins/sniprun.nix
Normal file
27
home/programs/nixvim/plugins/sniprun.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.sniprun = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
display = [ "VirtualLine" ];
|
||||
snipruncolors = {
|
||||
SniprunVirtualTextOk = {
|
||||
bg = "#91d7e3";
|
||||
fg = "#000000";
|
||||
ctermbg = "Cyan";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
|
||||
SniprunVirtualTextErr = {
|
||||
bg = "#ee99a0";
|
||||
fg = "#000000";
|
||||
ctermbg = "DarkRed";
|
||||
ctermfg = "Black";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
71
home/programs/nixvim/plugins/startup.nix
Normal file
71
home/programs/nixvim/plugins/startup.nix
Normal file
@@ -0,0 +1,71 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.startup = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
theme = "dashboard";
|
||||
sections = {
|
||||
body = {
|
||||
align = "center";
|
||||
content = [
|
||||
[
|
||||
" Find File"
|
||||
"Telescope find_files"
|
||||
"<leader>ff"
|
||||
]
|
||||
[
|
||||
" Find Word"
|
||||
"Telescope live_grep"
|
||||
"<leader>lg"
|
||||
]
|
||||
[
|
||||
" Recent Files"
|
||||
"Telescope oldfiles"
|
||||
"<leader>of"
|
||||
]
|
||||
[
|
||||
" Yazi"
|
||||
"Telescope file_browser"
|
||||
"<leader>yf"
|
||||
]
|
||||
[
|
||||
" Colorschemes"
|
||||
"Telescope colorscheme"
|
||||
"<leader>cs"
|
||||
]
|
||||
[
|
||||
" New File"
|
||||
"lua require'startup'.new_file()"
|
||||
"<leader>nf"
|
||||
]
|
||||
];
|
||||
|
||||
defaultColor = "";
|
||||
foldSection = true;
|
||||
highlight = "String";
|
||||
margin = 5;
|
||||
oldfilesAmount = 0;
|
||||
title = "Basic Commands";
|
||||
type = "mapping";
|
||||
};
|
||||
|
||||
header = {
|
||||
align = "center";
|
||||
content = {
|
||||
__raw = "require('startup.headers').hydra_header";
|
||||
};
|
||||
defaultColor = "";
|
||||
foldSection = false;
|
||||
highlight = "Statement";
|
||||
margin = 5;
|
||||
oldfilesAmount = 0;
|
||||
title = "Header";
|
||||
type = "text";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
172
home/programs/nixvim/plugins/surround.nix
Normal file
172
home/programs/nixvim/plugins/surround.nix
Normal file
@@ -0,0 +1,172 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.nvim-surround = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
luaConfig.post = ''
|
||||
local M = {}
|
||||
|
||||
M.get_input = function(prompt)
|
||||
local input = require("nvim-surround.input")
|
||||
return input.get_input(prompt)
|
||||
end
|
||||
|
||||
M.get_selection = function(args)
|
||||
if args.char then
|
||||
return M.get_find(args.char)(args.char)
|
||||
elseif args.motion then
|
||||
return require("nvim-surround.motions").get_selection(args.motion)
|
||||
elseif args.node then
|
||||
return require("nvim-surround.treesitter").get_selection(args.node)
|
||||
elseif args.pattern then
|
||||
return require("nvim-surround.patterns").get_selection(args.pattern)
|
||||
elseif args.query then
|
||||
return require("nvim-surround.queries").get_selection(args.query.capture, args.query.type)
|
||||
else
|
||||
vim.notify("Invalid key provided for `:h nvim-surround.config.get_selection()`.", vim.log.levels.ERROR)
|
||||
end
|
||||
end
|
||||
|
||||
surrounds = {
|
||||
["("] = {
|
||||
add = { "( ", " )" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a(" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
[")"] = {
|
||||
add = { "(", ")" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a)" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["{"] = {
|
||||
add = { "{ ", " }" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a{" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
["}"] = {
|
||||
add = { "{", "}" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a}" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["<"] = {
|
||||
add = { "< ", " >" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a<" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
[">"] = {
|
||||
add = { "<", ">" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a>" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["["] = {
|
||||
add = { "[ ", " ]" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a[" })
|
||||
end,
|
||||
delete = "^(. ?)().-( ?.)()$",
|
||||
},
|
||||
|
||||
["]"] = {
|
||||
add = { "[", "]" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a]" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["'"] = {
|
||||
add = { "'", "'" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a'" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
['"'] = {
|
||||
add = { '"', '"' },
|
||||
find = function()
|
||||
return M.get_selection({ motion = 'a"' })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["`"] = {
|
||||
add = { "`", "`" },
|
||||
find = function()
|
||||
return M.get_selection({ motion = "a`" })
|
||||
end,
|
||||
delete = "^(.)().-(.)()$",
|
||||
},
|
||||
|
||||
["i"] = {
|
||||
add = function()
|
||||
local left_delimiter = M.get_input("Enter the left delimiter: ")
|
||||
local right_delimiter = left_delimiter and M.get_input("Enter the right delimiter: ")
|
||||
if right_delimiter then
|
||||
return { { left_delimiter }, { right_delimiter } }
|
||||
end
|
||||
end,
|
||||
find = function() end,
|
||||
delete = function() end,
|
||||
},
|
||||
}
|
||||
'';
|
||||
|
||||
settings.aliases = {
|
||||
"a" = ">";
|
||||
"b" = ")";
|
||||
"B" = "}";
|
||||
"r" = "]";
|
||||
"q" = [
|
||||
"\""
|
||||
"'"
|
||||
"`"
|
||||
];
|
||||
"Q" = "''";
|
||||
"s" = [
|
||||
"}"
|
||||
"]"
|
||||
")"
|
||||
">"
|
||||
"\""
|
||||
"'"
|
||||
"`"
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = {
|
||||
insert = "<C-g>s";
|
||||
insert_line = "<C-g>S";
|
||||
normal = "ys";
|
||||
normal_cur = "yss";
|
||||
normal_line = "yS";
|
||||
normal_cur_line = "ySS";
|
||||
visual = "S";
|
||||
visual_line = "gS";
|
||||
delete = "ds";
|
||||
# TODO: This keymap clashed with comment boxses
|
||||
change = "cs";
|
||||
change_line = "cS";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -4,38 +4,47 @@
|
||||
programs.nixvim.plugins = {
|
||||
todo-comments = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
settings = {
|
||||
highlight = {
|
||||
comments_only = false;
|
||||
};
|
||||
|
||||
colors = {
|
||||
default = [
|
||||
"Identifier"
|
||||
"#7C3AED"
|
||||
];
|
||||
|
||||
error = [
|
||||
"DiagnosticError"
|
||||
"ErrorMsg"
|
||||
"#DC2626"
|
||||
];
|
||||
|
||||
hint = [
|
||||
"DiagnosticHint"
|
||||
"#10B981"
|
||||
];
|
||||
|
||||
info = [
|
||||
"DiagnosticInfo"
|
||||
"#2563EB"
|
||||
];
|
||||
|
||||
test = [
|
||||
"Identifier"
|
||||
"#FF00FF"
|
||||
];
|
||||
|
||||
warning = [
|
||||
"DiagnosticWarn"
|
||||
"WarningMsg"
|
||||
"#FBBF24"
|
||||
];
|
||||
};
|
||||
|
||||
keywords = {
|
||||
FIX = {
|
||||
alt = [
|
||||
@@ -47,10 +56,12 @@
|
||||
color = "error";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
HACK = {
|
||||
color = "warning";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
NOTE = {
|
||||
alt = [
|
||||
"INFO"
|
||||
@@ -58,6 +69,7 @@
|
||||
color = "hint";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
PERF = {
|
||||
alt = [
|
||||
"OPTIM"
|
||||
@@ -66,6 +78,7 @@
|
||||
];
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
TEST = {
|
||||
alt = [
|
||||
"TESTING"
|
||||
@@ -75,10 +88,12 @@
|
||||
color = "test";
|
||||
icon = "⏲ ";
|
||||
};
|
||||
|
||||
TODO = {
|
||||
color = "info";
|
||||
icon = " ";
|
||||
};
|
||||
|
||||
WARN = {
|
||||
alt = [
|
||||
"WARNING"
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>c";
|
||||
__unkeyed-1 = "<leader>s";
|
||||
group = "Terminal";
|
||||
icon = " ";
|
||||
}
|
||||
@@ -30,27 +30,21 @@
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>ToggleTermSendCurrentLine<CR>";
|
||||
key = "<leader>cl";
|
||||
key = "<leader>sl";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Send Current Line";
|
||||
};
|
||||
options.desc = "Send Current Line";
|
||||
}
|
||||
{
|
||||
action = "<CMD>ToggleTermSendVisualLines<CR>";
|
||||
key = "<leader>cv";
|
||||
key = "<leader>sv";
|
||||
mode = "x";
|
||||
options = {
|
||||
desc = "Send all the (whole) lines in selection";
|
||||
};
|
||||
options.desc = "Send all the (whole) lines in selection";
|
||||
}
|
||||
{
|
||||
action = "<CMD>ToggleTermSendVisualSelection<CR>";
|
||||
key = "<leader>cs";
|
||||
key = "<leader>ss";
|
||||
mode = "x";
|
||||
options = {
|
||||
desc = "Send selection";
|
||||
};
|
||||
options.desc = "Send selection";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
@@ -4,6 +4,8 @@
|
||||
programs.nixvim.plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
|
||||
folding.enable = false;
|
||||
settings = {
|
||||
auto_install = false;
|
||||
@@ -13,6 +15,7 @@
|
||||
|
||||
ts-context-commentstring = {
|
||||
enable = true;
|
||||
lazyLoad.enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -16,9 +16,7 @@
|
||||
# Diagnostics for the current buffer only
|
||||
diagnostics_buffer = {
|
||||
mode = "diagnostics";
|
||||
filter = {
|
||||
buf = 0;
|
||||
};
|
||||
filter.buf = 0;
|
||||
};
|
||||
};
|
||||
focus = false;
|
||||
|
||||
30
home/programs/nixvim/plugins/typst-preview.nix
Normal file
30
home/programs/nixvim/plugins/typst-preview.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins.typst-preview = {
|
||||
enable = true;
|
||||
lazyLoad = {
|
||||
settings = {
|
||||
ft = [ "typst" ];
|
||||
cmd = "TypstPreview";
|
||||
};
|
||||
};
|
||||
|
||||
settings.open_command = "qutebrowser --target tab %s";
|
||||
};
|
||||
|
||||
files."ftplugin/typst.lua".keymaps = [
|
||||
{
|
||||
action = "<CMD>TypstPreview<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Typst Preview";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
15
home/programs/nixvim/plugins/typst-vim.nix
Normal file
15
home/programs/nixvim/plugins/typst-vim.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{ ... }:
|
||||
|
||||
# TODO: conceal does not work
|
||||
{
|
||||
programs.nixvim.plugins.typst-vim = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [ "typst" ];
|
||||
|
||||
settings = {
|
||||
conceal = 1;
|
||||
conceal_math = 1;
|
||||
conceal_emoji = 1;
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -16,6 +16,7 @@
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>us";
|
||||
|
||||
@@ -1,17 +1,45 @@
|
||||
{ ... }:
|
||||
{ pkgs,... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraPackages = with pkgs; [
|
||||
texliveFull
|
||||
texlivePackages.standalone
|
||||
texlivePackages.relsize # needed for BA
|
||||
# papis-nvim
|
||||
];
|
||||
|
||||
plugins = {
|
||||
vimtex = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetype = [ "tex" ];
|
||||
|
||||
settings = {
|
||||
view_automatic = false;
|
||||
mappings_disable = {
|
||||
"n" = [ "K" ];
|
||||
};
|
||||
view_method = "zathura";
|
||||
};
|
||||
};
|
||||
|
||||
ltex-extra = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetype = [ "tex" ];
|
||||
};
|
||||
|
||||
texpresso = {
|
||||
enable = true;
|
||||
lazyload.settings.filetype = [ "tex" ];
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>v";
|
||||
group = "Vimtex";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
autoGroups = {
|
||||
@@ -36,5 +64,36 @@
|
||||
'';
|
||||
}
|
||||
];
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>vc";
|
||||
action = "<cmd>VimtexCompile<cr>";
|
||||
options.desc = "Start Vimtex";
|
||||
}
|
||||
{
|
||||
key = "<leader>vs";
|
||||
action = "<cmd>VimtexStop<cr>";
|
||||
options.desc = "Stop Vimtex";
|
||||
}
|
||||
{
|
||||
key = "<leader>vr";
|
||||
action = "<cmd>VimtexClean<cr>";
|
||||
options.desc = "Clean Vimtex";
|
||||
}
|
||||
];
|
||||
|
||||
files."ftplugin/latex.lua".keymaps = [
|
||||
{
|
||||
action = "<CMD>Texpresso %<CR>";
|
||||
key = "<C-k>t";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options.desc = "Start Texpresso";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
{
|
||||
programs.nixvim.plugins.web-devicons = {
|
||||
enable = true;
|
||||
lazyLoad.settings.event = [
|
||||
"BufReadPost"
|
||||
"BufNewFile"
|
||||
];
|
||||
autoLoad = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,9 +3,6 @@
|
||||
{
|
||||
programs.nixvim.plugins.which-key = {
|
||||
enable = true;
|
||||
lazyLoad.settings.event = [
|
||||
"BufReadPost"
|
||||
"BufNewFile"
|
||||
];
|
||||
autoLoad = true;
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,10 +3,7 @@
|
||||
{
|
||||
programs.nixvim.plugins.wilder = {
|
||||
enable = true;
|
||||
lazyLoad.settings.event = [
|
||||
"BufReadPost"
|
||||
"BufNewFile"
|
||||
];
|
||||
autoLoad = true;
|
||||
|
||||
settings.modes = [
|
||||
":"
|
||||
|
||||
@@ -5,10 +5,7 @@
|
||||
plugins = {
|
||||
yazi = {
|
||||
enable = true;
|
||||
lazyLoad.settings.event = [
|
||||
"BufReadPost"
|
||||
"BufNewFile"
|
||||
];
|
||||
autoLoad = true;
|
||||
};
|
||||
|
||||
which-key.settings.spec = [
|
||||
|
||||
@@ -3,8 +3,6 @@
|
||||
{
|
||||
programs.nixvim.plugins.yuck = {
|
||||
enable = true;
|
||||
lazyLoad.settings.filetypes = [
|
||||
"yuck"
|
||||
];
|
||||
lazyLoad.settings.filetypes = [ "yuck" ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user