nixvim
install initial nixvim
This commit is contained in:
7
home/programs/nixvim-old/plugins/aerial.nix
Normal file
7
home/programs/nixvim-old/plugins/aerial.nix
Normal file
@@ -0,0 +1,7 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
aerial.enable = true;
|
||||
};
|
||||
}
|
||||
13
home/programs/nixvim-old/plugins/autopairs.nix
Normal file
13
home/programs/nixvim-old/plugins/autopairs.nix
Normal file
@@ -0,0 +1,13 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
nvim-autopairs = {
|
||||
enable = true;
|
||||
settings = {
|
||||
check_ts = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
84
home/programs/nixvim-old/plugins/barbar.nix
Normal file
84
home/programs/nixvim-old/plugins/barbar.nix
Normal file
@@ -0,0 +1,84 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
barbar = {
|
||||
enable = true;
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>b";
|
||||
group = "Buffers";
|
||||
icon = " ";
|
||||
}
|
||||
{
|
||||
__unkeyed-1 = "<leader>,";
|
||||
icon = " ";
|
||||
}
|
||||
{
|
||||
__unkeyed-1 = "<leader>.";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
action = "<CMD>BufferPrevious<CR>";
|
||||
key = "<leader>,";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Tab ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferNext<CR>";
|
||||
key = "<leader>.";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Tab ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferMovePrevious<CR>";
|
||||
key = "<leader>b<";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Re-Order ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferMoveNext<CR>";
|
||||
key = "<leader>b>";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Re-Order ";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferClose<CR>";
|
||||
key = "<leader>bc";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Close";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>tabnew +Telescope\\ file_browser<CR>";
|
||||
key = "<leader>bn";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Create";
|
||||
};
|
||||
}
|
||||
{
|
||||
action = "<CMD>BufferPick<CR>";
|
||||
key = "<leader>bp";
|
||||
mode = "n";
|
||||
options = {
|
||||
desc = "Pick Tab";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
68
home/programs/nixvim-old/plugins/bullets.nix
Normal file
68
home/programs/nixvim-old/plugins/bullets.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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)"
|
||||
]
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
73
home/programs/nixvim-old/plugins/cmp.nix
Normal file
73
home/programs/nixvim-old/plugins/cmp.nix
Normal file
@@ -0,0 +1,73 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
55
home/programs/nixvim-old/plugins/comment-box.nix
Normal file
55
home/programs/nixvim-old/plugins/comment-box.nix
Normal file
@@ -0,0 +1,55 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
comment-box = {
|
||||
enable = true;
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>c";
|
||||
group = "Comment Boxes";
|
||||
icon = "□ ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>cb";
|
||||
action = "<Cmd>CBccbox<CR>";
|
||||
options = {
|
||||
desc = "Box Title";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>ct";
|
||||
action = "<Cmd>CBllline<CR>";
|
||||
options = {
|
||||
desc = "Titled Line";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>cl";
|
||||
action = "<Cmd>CBline<CR>";
|
||||
options = {
|
||||
desc = "Simple Line";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>cm";
|
||||
action = "<Cmd>CBllbox14<CR>";
|
||||
options = {
|
||||
desc = "Marked";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>cd";
|
||||
action = "<Cmd>CBd<CR>";
|
||||
options = {
|
||||
desc = "Remove a Box";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
16
home/programs/nixvim-old/plugins/comment.nix
Normal file
16
home/programs/nixvim-old/plugins/comment.nix
Normal file
@@ -0,0 +1,16 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
comment = {
|
||||
enable = true;
|
||||
settings = {
|
||||
mappings = {
|
||||
basic = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
132
home/programs/nixvim-old/plugins/conform.nix
Normal file
132
home/programs/nixvim-old/plugins/conform.nix
Normal file
@@ -0,0 +1,132 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
stylua
|
||||
rustfmt
|
||||
fourmolu
|
||||
shellcheck
|
||||
shellharden
|
||||
shfmt
|
||||
black
|
||||
beamMinimal28Packages.elixir
|
||||
clang-tools
|
||||
prettierd
|
||||
nixfmt
|
||||
tex-fmt
|
||||
hclfmt
|
||||
topiary # TODO: Install https://github.com/blindFS/topiary-nushell somehow, e.g. clone languages.ncl to ~/.config/topiary/languages.ncl & nu.scm to ~/.config/topiary/topiary-queries/queries/nu.scm
|
||||
];
|
||||
|
||||
programs.nixvim.plugins = {
|
||||
conform-nvim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
formatters_by_ft = {
|
||||
lua = [ "stylua" ];
|
||||
rust = [ "rustfmt" ];
|
||||
python = [
|
||||
"black"
|
||||
];
|
||||
haskell = [ "fourmolu" ];
|
||||
terraform = [ "hcl" ];
|
||||
elixir = [ "mix" ];
|
||||
bash = [
|
||||
"shellcheck"
|
||||
"shellharden"
|
||||
"shfmt"
|
||||
];
|
||||
sh = [
|
||||
"shellcheck"
|
||||
"shfmt"
|
||||
];
|
||||
c = [ "clang-format" ];
|
||||
cpp = [ "clang-format" ];
|
||||
markdown = [ "prettierd" ];
|
||||
json = [ "prettierd" ];
|
||||
yaml = [ "prettierd" ];
|
||||
nu = [ "topiary_nu" ];
|
||||
nix = [ "nixfmt" ];
|
||||
tex = [
|
||||
"tex-fmt"
|
||||
];
|
||||
"_" = [
|
||||
"squeeze_blanks"
|
||||
"trim_whitespace"
|
||||
"trim_newlines"
|
||||
];
|
||||
};
|
||||
format_on_save = # Lua
|
||||
''
|
||||
function(bufnr)
|
||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
return
|
||||
end
|
||||
|
||||
return { lsp_fallback = true }
|
||||
end
|
||||
'';
|
||||
format_after_save = # Lua
|
||||
''
|
||||
function(bufnr)
|
||||
if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then
|
||||
return
|
||||
end
|
||||
|
||||
return { lsp_fallback = true }
|
||||
end
|
||||
'';
|
||||
formatters = {
|
||||
topiary_nu = {
|
||||
command = "topiary";
|
||||
args = [
|
||||
"format"
|
||||
"--language"
|
||||
"nu"
|
||||
];
|
||||
};
|
||||
stylua = {
|
||||
"inherit" = true;
|
||||
prepend_args = [
|
||||
"--indent-type"
|
||||
"Spaces"
|
||||
"--indent-width"
|
||||
"2"
|
||||
];
|
||||
};
|
||||
tex-fmt = {
|
||||
command = "tex-fmt";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
programs.nixvim.userCommands = {
|
||||
FormatDisable = {
|
||||
bang = true;
|
||||
desc = "Disable autoformat-on-save";
|
||||
command.__raw = # Lua
|
||||
''
|
||||
function(args)
|
||||
if args.bang then
|
||||
-- FormatDisable! will disable formatting just for this buffer
|
||||
vim.b.disable_autoformat = true
|
||||
else
|
||||
vim.g.disable_autoformat = true
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
FormatEnable = {
|
||||
desc = "Re-enable autoformat-on-save";
|
||||
command.__raw = # Lua
|
||||
''
|
||||
function()
|
||||
vim.b.disable_autoformat = false
|
||||
vim.g.disable_autoformat = false
|
||||
end
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
298
home/programs/nixvim-old/plugins/dap.nix
Normal file
298
home/programs/nixvim-old/plugins/dap.nix
Normal file
@@ -0,0 +1,298 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
lldb_19
|
||||
gdb
|
||||
rustc
|
||||
# python3.withPackages
|
||||
# (ps: with ps; [ debugpy ])
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
dap-python = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
dap = {
|
||||
enable = true;
|
||||
luaConfig.post = ''
|
||||
local dap, dapui = require("dap"), require("dapui")
|
||||
dap.listeners.before.attach.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.launch.dapui_config = function()
|
||||
dapui.open()
|
||||
end
|
||||
dap.listeners.before.event_terminated.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
dap.listeners.before.event_exited.dapui_config = function()
|
||||
dapui.close()
|
||||
end
|
||||
'';
|
||||
adapters = {
|
||||
executables = {
|
||||
lldb = {
|
||||
command = "${pkgs.lldb_19}/bin/lldb-dap";
|
||||
};
|
||||
gdb = {
|
||||
command = "${pkgs.gdb}/bin/gdb";
|
||||
args = [
|
||||
"--interpreter=dap"
|
||||
"--eval-command"
|
||||
"set print pretty on"
|
||||
];
|
||||
};
|
||||
rust-gdb = {
|
||||
command = "${pkgs.rustc}/bin/rust-gdb";
|
||||
args = [
|
||||
"--interpreter=dap"
|
||||
"--eval-command"
|
||||
"set print pretty on"
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
signs = {
|
||||
dapBreakpoint.text = "";
|
||||
};
|
||||
configurations = {
|
||||
cpp = [
|
||||
{
|
||||
name = "Launch";
|
||||
type = "gdb";
|
||||
request = "launch";
|
||||
program.__raw = # lua
|
||||
''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
cwd = "\${workspaceFolder}";
|
||||
stopAtBeginningOfMainSubprogram = false;
|
||||
}
|
||||
{
|
||||
name = "Select and attach to process";
|
||||
type = "gdb";
|
||||
request = "attach";
|
||||
program._raw = # lua
|
||||
''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
pid.__raw = ''
|
||||
function()
|
||||
local name = vim.fn.input('Executable name (filter): ')
|
||||
return require("dap.utils").pick_process({ filter = name })
|
||||
end
|
||||
'';
|
||||
cwd = "\${workspaceFolder}";
|
||||
}
|
||||
{
|
||||
name = "Attach to gdbserver :1234";
|
||||
type = "gdb";
|
||||
request = "attach";
|
||||
target = "localhost:1234";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
cwd = "\${workspaceFolder}";
|
||||
}
|
||||
];
|
||||
c = [
|
||||
{
|
||||
name = "Launch file";
|
||||
type = "lldb";
|
||||
request = "launch";
|
||||
cwd = "\${workspaceFolder}";
|
||||
stopOnEntry = false;
|
||||
program.__raw = # lua
|
||||
''
|
||||
function()
|
||||
return coroutine.create(function(coro)
|
||||
local opts = {}
|
||||
require("telescope.pickers")
|
||||
.new(opts, {
|
||||
prompt_title = "Path to executable",
|
||||
finder = require("telescope.finders").new_oneshot_job({ "fd", "--hidden", "--no-ignore", "--type", "x" }, {}),
|
||||
sorter = require("telescope.config").values.generic_sorter(opts),
|
||||
attach_mappings = function(buffer_number)
|
||||
require("telescope.actions").select_default:replace(function()
|
||||
require("telescope.actions").close(buffer_number)
|
||||
coroutine.resume(coro, require("telescope.actions.state").get_selected_entry()[1])
|
||||
end)
|
||||
return true
|
||||
end,
|
||||
})
|
||||
:find()
|
||||
end)
|
||||
end
|
||||
'';
|
||||
args = { };
|
||||
}
|
||||
];
|
||||
rust = [
|
||||
{
|
||||
name = "Launch";
|
||||
type = "rust-gdb";
|
||||
request = "launch";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
args = { };
|
||||
cwd = "\${workspaceFolder}";
|
||||
stopAtBeginningOfMainSubprogram = false;
|
||||
}
|
||||
{
|
||||
name = "Select and attach to process";
|
||||
type = "rust-gdb";
|
||||
request = "attach";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
pid.__raw = ''
|
||||
function()
|
||||
local name = vim.fn.input('Executable name (filter): ')
|
||||
return require("dap.utils").pick_process({ filter = name })
|
||||
end
|
||||
'';
|
||||
cwd = "\${workspaceFolder}";
|
||||
}
|
||||
{
|
||||
name = "Attach to gdbserver :1234";
|
||||
type = "rust-gdb";
|
||||
request = "attach";
|
||||
target = "localhost:1234";
|
||||
program.__raw = ''
|
||||
function()
|
||||
return vim.fn.input('Path to executable: ', vim.fn.getcwd() .. '/', 'file')
|
||||
end
|
||||
'';
|
||||
cwd = "\${workspaceFolder}";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
dap-ui = {
|
||||
enable = true;
|
||||
};
|
||||
dap-virtual-text = {
|
||||
enable = true;
|
||||
};
|
||||
which-key.settings.spec = [
|
||||
{
|
||||
__unkeyed-1 = "<leader>d";
|
||||
group = "Debugger";
|
||||
icon = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>dt";
|
||||
action.__raw = "function() require('dap').toggle_breakpoint() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Toggle Breakpoint";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dc";
|
||||
action.__raw = "function() require('dap').continue() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Continue";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dc";
|
||||
action.__raw = "function() require('dap').continue() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Continue";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>di";
|
||||
action.__raw = "function() require('dap').step_into() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Step Into";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>do";
|
||||
action.__raw = "function() require('dap').step_over() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Step Over";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>du";
|
||||
action.__raw = "function() require('dap').step_out() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Step Out";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dr";
|
||||
action.__raw = "function() require('dap').repl.open() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Open REPL";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dl";
|
||||
action.__raw = "function() require('dap').run_last() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Run Last";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>dq";
|
||||
action.__raw = # lua
|
||||
''
|
||||
function()
|
||||
require("dap").terminate()
|
||||
require("dapui").close()
|
||||
require("nvim-dap-virtual-text").toggle()
|
||||
end
|
||||
'';
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Terminate";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>db";
|
||||
action.__raw = "function() require('dap').list_breakpoints() end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "List Breakpoints";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>de";
|
||||
action.__raw = "function() require('dap').set_exception_breakpoints({ ' all ' }) end";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Set Exception Breakpoints";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
54
home/programs/nixvim-old/plugins/default.nix
Normal file
54
home/programs/nixvim-old/plugins/default.nix
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
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
|
||||
];
|
||||
}
|
||||
43
home/programs/nixvim-old/plugins/dynomark.nix
Normal file
43
home/programs/nixvim-old/plugins/dynomark.nix
Normal file
@@ -0,0 +1,43 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
let
|
||||
dynomark-nvim = pkgs.vimUtils.buildVimPlugin {
|
||||
name = "dynomark.nvim";
|
||||
doCheck = false;
|
||||
src = pkgs.pkgs.fetchFromGitHub {
|
||||
owner = "k-lar";
|
||||
repo = "dynomark.nvim";
|
||||
rev = "a59f4e44a7619747552d869747d0f3fbb7be32b3";
|
||||
hash = "sha256-zrPpFMLI2lbqm0W/I530519d7RQKDK9HRouMNAsXv+U=";
|
||||
};
|
||||
};
|
||||
in
|
||||
{
|
||||
programs.nixvim = {
|
||||
|
||||
extraPlugins = [
|
||||
dynomark-nvim
|
||||
];
|
||||
|
||||
extraConfigLua = "require('dynomark').setup({})";
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>v";
|
||||
action = "<Plug>(DynomarkToggle)";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Toggle Dynomark";
|
||||
};
|
||||
}
|
||||
{
|
||||
key = "<leader>V";
|
||||
action = "<Plug>(DynomarkRun)";
|
||||
mode = [ "n" ];
|
||||
options = {
|
||||
desc = "Run Dynomark query under cursor";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
80
home/programs/nixvim-old/plugins/edgy.nix
Normal file
80
home/programs/nixvim-old/plugins/edgy.nix
Normal file
@@ -0,0 +1,80 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
localOpts = {
|
||||
# views can only be fully collapsed with the global statusline
|
||||
laststatus = 3;
|
||||
# Default splitting will cause your main splits to jump when opening an edgebar.
|
||||
# To prevent this, set `splitkeep` to either `screen` or `topline`.
|
||||
splitkeep = "screen";
|
||||
};
|
||||
plugins = {
|
||||
edgy = {
|
||||
enable = true;
|
||||
autoLoad = true;
|
||||
settings = {
|
||||
bottom.__raw = ''
|
||||
{
|
||||
-- toggleterm / lazyterm at the bottom with a height of 40% of the screen
|
||||
{
|
||||
ft = "toggleterm",
|
||||
size = { height = 0.2 },
|
||||
-- exclude floating windows
|
||||
filter = function(buf, win)
|
||||
return vim.api.nvim_win_get_config(win).relative == ""
|
||||
end
|
||||
},
|
||||
"Trouble",
|
||||
{ ft = "qf", title = "QuickFix" },
|
||||
{
|
||||
ft = "help",
|
||||
size = { height = 20 },
|
||||
-- only show help buffers
|
||||
filter = function(buf)
|
||||
return vim.bo[buf].buftype == "help"
|
||||
end
|
||||
}
|
||||
}
|
||||
'';
|
||||
left.__raw = ''
|
||||
{
|
||||
-- Neo-tree filesystem always takes half the screen height
|
||||
{
|
||||
title = "Neo-Tree",
|
||||
ft = "neo-tree",
|
||||
filter = function(buf)
|
||||
return vim.b[buf].neo_tree_source == "filesystem"
|
||||
end,
|
||||
size = { height = 0.2 }
|
||||
},
|
||||
{
|
||||
title = "Neo-Tree Git",
|
||||
ft = "neo-tree",
|
||||
filter = function(buf)
|
||||
return vim.b[buf].neo_tree_source == "git_status"
|
||||
end,
|
||||
pinned = true,
|
||||
collapsed = true, -- show window as closed/collapsed on start
|
||||
open = "Neotree position=right git_status"
|
||||
},
|
||||
{
|
||||
title = "Neo-Tree Buffers",
|
||||
ft = "neo-tree",
|
||||
filter = function(buf)
|
||||
return vim.b[buf].neo_tree_source == "buffers"
|
||||
end,
|
||||
pinned = true,
|
||||
collapsed = true, -- show window as closed/collapsed on start
|
||||
open = "Neotree position=top buffers"
|
||||
},
|
||||
-- any other neo-tree windows
|
||||
"neo-tree"
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
11
home/programs/nixvim-old/plugins/gitsigns.nix
Normal file
11
home/programs/nixvim-old/plugins/gitsigns.nix
Normal file
@@ -0,0 +1,11 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
gitsigns = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
19
home/programs/nixvim-old/plugins/haskell-tools.nix
Normal file
19
home/programs/nixvim-old/plugins/haskell-tools.nix
Normal file
@@ -0,0 +1,19 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraPackages = with pkgs; [
|
||||
haskell.compiler.native-bignum.ghc912
|
||||
haskellPackages.haskell-language-server
|
||||
haskellPackages.stack
|
||||
haskellPackages.fast-tags
|
||||
haskellPackages.hoogle
|
||||
haskellPackages.haskell-debug-adapter
|
||||
haskellPackages.ghci-dap
|
||||
];
|
||||
|
||||
extraPlugins = with pkgs.vimPlugins; [
|
||||
haskell-tools-nvim
|
||||
];
|
||||
};
|
||||
}
|
||||
68
home/programs/nixvim-old/plugins/knap.nix
Normal file
68
home/programs/nixvim-old/plugins/knap.nix
Normal file
@@ -0,0 +1,68 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
# TODO: Make filetype keybindings work
|
||||
let
|
||||
keys = [
|
||||
{
|
||||
action.__raw = "function() require('knap').close_viewer() end";
|
||||
key = "<C-k>c";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Close Viewer (knap)";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = "function() require('knap').toggle_autopreviewing() end";
|
||||
key = "<C-k>k";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "Toggle Auto-Processing (knap)";
|
||||
};
|
||||
}
|
||||
{
|
||||
action.__raw = "function() require('knap').forward_jump() end";
|
||||
key = "<C-k>s";
|
||||
mode = [
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
];
|
||||
options = {
|
||||
desc = "SyncTeX Forward Search (Knap)";
|
||||
};
|
||||
}
|
||||
];
|
||||
in
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
pandoc
|
||||
texliveFull
|
||||
rubber
|
||||
];
|
||||
programs.nixvim = {
|
||||
extraPlugins = with pkgs.vimPlugins; [ knap ];
|
||||
globals = {
|
||||
knap_settings = {
|
||||
htmltohtmlviewerlaunch = "luakit %outputfile%";
|
||||
mdtohtmlviewerlaunch = "luakit %outputfile%";
|
||||
markdowntohtmlviewerlaunch = "luakit %outputfile%";
|
||||
};
|
||||
};
|
||||
files = {
|
||||
"ftplugin/latex.lua" = {
|
||||
keymaps = keys;
|
||||
};
|
||||
"ftplugin/markdown.lua" = {
|
||||
keymaps = keys;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
30
home/programs/nixvim-old/plugins/leap.nix
Normal file
30
home/programs/nixvim-old/plugins/leap.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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" ];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
102
home/programs/nixvim-old/plugins/lsp.nix
Normal file
102
home/programs/nixvim-old/plugins/lsp.nix
Normal file
@@ -0,0 +1,102 @@
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
9
home/programs/nixvim-old/plugins/ltex-extra.nix
Normal file
9
home/programs/nixvim-old/plugins/ltex-extra.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
ltex-extra = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
48
home/programs/nixvim-old/plugins/lualine.nix
Normal file
48
home/programs/nixvim-old/plugins/lualine.nix
Normal file
@@ -0,0 +1,48 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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
|
||||
# '';
|
||||
# };
|
||||
# }
|
||||
# ];
|
||||
# };
|
||||
# };
|
||||
};
|
||||
};
|
||||
}
|
||||
9
home/programs/nixvim-old/plugins/markdown-preview.nix
Normal file
9
home/programs/nixvim-old/plugins/markdown-preview.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
markdown-preview = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
188
home/programs/nixvim-old/plugins/mkdnflow.nix
Normal file
188
home/programs/nixvim-old/plugins/mkdnflow.nix
Normal file
@@ -0,0 +1,188 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
extraConfigLua = ''
|
||||
vim.api.nvim_create_autocmd("FileType", {pattern = "markdown", command = "set awa"})
|
||||
'';
|
||||
|
||||
plugins = {
|
||||
mkdnflow = {
|
||||
enable = true;
|
||||
settings = {
|
||||
links = {
|
||||
style = "wiki";
|
||||
create_on_follow_failure = true;
|
||||
conceal = true;
|
||||
name_is_source = false;
|
||||
implicit_extension = "md";
|
||||
context = 0;
|
||||
transform_explicit.__raw = # Lua
|
||||
''
|
||||
function(input)
|
||||
if input:match('%d%d%d%d%-%d%d%-%d%d') then
|
||||
return('journals/'..input)
|
||||
else
|
||||
require("zk.api").new(vim.fn.expand('%:p:h'), { dryRun = true }, function(err, res)
|
||||
file_name = res.path:match("[^/]*.md$"):match("(.+)%..+$")
|
||||
end)
|
||||
return(file_name)
|
||||
end
|
||||
end
|
||||
'';
|
||||
};
|
||||
modules = {
|
||||
conceal = true;
|
||||
cursor = true;
|
||||
folds = true;
|
||||
links = true;
|
||||
lists = true;
|
||||
maps = true;
|
||||
paths = true;
|
||||
tables = true;
|
||||
yaml = true;
|
||||
};
|
||||
filetypes = {
|
||||
markdown = true;
|
||||
qmd = true;
|
||||
};
|
||||
to_do = {
|
||||
symbols = [
|
||||
" "
|
||||
"-"
|
||||
"X"
|
||||
];
|
||||
status_propagation.up = true;
|
||||
};
|
||||
foldtext = {
|
||||
title_transformer.__raw = ''
|
||||
function()
|
||||
local function my_title_transformer(text)
|
||||
local updated_title = text:gsub("%b{}", "")
|
||||
updated_title = updated_title:gsub("^%s*", "")
|
||||
updated_title = updated_title:gsub("%s*$", "")
|
||||
updated_title = updated_title:gsub("^######", "░░░░░▓")
|
||||
updated_title = updated_title:gsub("^#####", "░░░░▓▓")
|
||||
updated_title = updated_title:gsub("^####", "░░░▓▓▓")
|
||||
updated_title = updated_title:gsub("^###", "░░▓▓▓▓")
|
||||
updated_title = updated_title:gsub("^##", "░▓▓▓▓▓")
|
||||
updated_title = updated_title:gsub("^#", "▓▓▓▓▓▓")
|
||||
return updated_title
|
||||
end
|
||||
return my_title_transformer
|
||||
end
|
||||
'';
|
||||
object_count_icon_set = "nerdfont";
|
||||
object_count_opts.__raw = ''
|
||||
function()
|
||||
local opts = {
|
||||
link = false, -- Prevent links from being counted
|
||||
blockquote = { -- Count block quotes (these aren't counted by default)
|
||||
icon = ' ',
|
||||
count_method = {
|
||||
pattern = { "^>.+$" },
|
||||
tally = "blocks",
|
||||
}
|
||||
},
|
||||
fncblk = {
|
||||
-- Override the icon for fenced code blocks with
|
||||
icon = " "
|
||||
}
|
||||
}
|
||||
return opts
|
||||
end
|
||||
'';
|
||||
line_count = false;
|
||||
word_count = true;
|
||||
fill_chars = {
|
||||
left_edge = "╾─🖿 ─";
|
||||
right_edge = "──╼";
|
||||
item_separator = " · ";
|
||||
section_separator = " // ";
|
||||
left_inside = " ┝";
|
||||
right_inside = "┥ ";
|
||||
middle = "─";
|
||||
};
|
||||
};
|
||||
mappings = {
|
||||
MkdnEnter = [
|
||||
[
|
||||
"n"
|
||||
"v"
|
||||
"i"
|
||||
]
|
||||
"<CR>"
|
||||
];
|
||||
MkdnGoBack = [
|
||||
"n"
|
||||
"<BS>"
|
||||
];
|
||||
MkdnDecreaseHeading = [
|
||||
"n"
|
||||
"-"
|
||||
];
|
||||
MkdnIncreaseHeading = [
|
||||
"n"
|
||||
"+"
|
||||
];
|
||||
MkdnNewListItemAboveInsert = [
|
||||
"n"
|
||||
"O"
|
||||
];
|
||||
MkdnNewListItemBelowInsert = [
|
||||
"n"
|
||||
"o"
|
||||
];
|
||||
MkdnTableNewColAfter = [
|
||||
"n"
|
||||
"<leader>ic"
|
||||
];
|
||||
MkdnTableNewColBefore = [
|
||||
"n"
|
||||
"<leader>iC"
|
||||
];
|
||||
MkdnTableNewRowAbove = [
|
||||
"n"
|
||||
"<leader>iR"
|
||||
];
|
||||
MkdnTableNewRowBelow = [
|
||||
"n"
|
||||
"<leader>ir"
|
||||
];
|
||||
MkdnTableNextCell = [
|
||||
"i"
|
||||
"<Tab>"
|
||||
];
|
||||
MkdnTablePrevCell = [
|
||||
"i"
|
||||
"<S-Tab>"
|
||||
];
|
||||
MkdnToggleToDo = [
|
||||
[
|
||||
"n"
|
||||
"v"
|
||||
]
|
||||
"<C-Space>"
|
||||
];
|
||||
};
|
||||
create_dirs = true;
|
||||
new_file_template = {
|
||||
use_template = true;
|
||||
placeholders = {
|
||||
title = "link_title";
|
||||
date = "os_date";
|
||||
};
|
||||
template = ''
|
||||
---
|
||||
title: {{ title }}
|
||||
date: {{ date }}
|
||||
tags: []
|
||||
---
|
||||
# {{ title }}
|
||||
'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
28
home/programs/nixvim-old/plugins/neoscroll.nix
Normal file
28
home/programs/nixvim-old/plugins/neoscroll.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
neoscroll = {
|
||||
enable = true;
|
||||
settings = {
|
||||
cursor_scrolls_alone = true;
|
||||
easing_function = "quadratic";
|
||||
hide_cursor = true;
|
||||
mappings = [
|
||||
"<C-u>"
|
||||
"<C-d>"
|
||||
"<C-b>"
|
||||
"<C-f>"
|
||||
"<C-y>"
|
||||
"<C-e>"
|
||||
"zt"
|
||||
"zz"
|
||||
"zb"
|
||||
];
|
||||
respect_scrolloff = false;
|
||||
stop_eof = true;
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
14
home/programs/nixvim-old/plugins/neotree.nix
Normal file
14
home/programs/nixvim-old/plugins/neotree.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
neo-tree = {
|
||||
enable = true;
|
||||
settings = {
|
||||
enable_git_status = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
22
home/programs/nixvim-old/plugins/noice.nix
Normal file
22
home/programs/nixvim-old/plugins/noice.nix
Normal file
@@ -0,0 +1,22 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
17
home/programs/nixvim-old/plugins/notify.nix
Normal file
17
home/programs/nixvim-old/plugins/notify.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
notify = {
|
||||
enable = true;
|
||||
settings = {
|
||||
render = "wrapped-compact";
|
||||
};
|
||||
};
|
||||
};
|
||||
opts = {
|
||||
termguicolors = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
9
home/programs/nixvim-old/plugins/oil.nix
Normal file
9
home/programs/nixvim-old/plugins/oil.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
oil = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
17
home/programs/nixvim-old/plugins/openscad.nix
Normal file
17
home/programs/nixvim-old/plugins/openscad.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins.openscad = {
|
||||
enable = true;
|
||||
luaConfig.post = ''
|
||||
vim.g.openscad_fuzzy_finder = 'skim'
|
||||
-- when the pdf_command is run, the last argument will be the pdf filename
|
||||
vim.g.openscad_pdf_command = 'zathura'
|
||||
vim.g.openscad_cheatsheet_window_blend = 15 --%
|
||||
vim.g.openscad_load_snippets = false
|
||||
-- should the openscad project automatically be opened on startup
|
||||
vim.g.openscad_auto_open = false
|
||||
vim.g.openscad_default_mappings = true
|
||||
'';
|
||||
};
|
||||
}
|
||||
9
home/programs/nixvim-old/plugins/otter.nix
Normal file
9
home/programs/nixvim-old/plugins/otter.nix
Normal file
@@ -0,0 +1,9 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
otter = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
28
home/programs/nixvim-old/plugins/papis.nix
Normal file
28
home/programs/nixvim-old/plugins/papis.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
29
home/programs/nixvim-old/plugins/render-markdown.nix
Normal file
29
home/programs/nixvim-old/plugins/render-markdown.nix
Normal file
@@ -0,0 +1,29 @@
|
||||
{ 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
104
home/programs/nixvim-old/plugins/smart-splits.nix
Normal file
104
home/programs/nixvim-old/plugins/smart-splits.nix
Normal file
@@ -0,0 +1,104 @@
|
||||
{ ... }:
|
||||
{
|
||||
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"
|
||||
];
|
||||
}
|
||||
];
|
||||
}
|
||||
15
home/programs/nixvim-old/plugins/snippets.nix
Normal file
15
home/programs/nixvim-old/plugins/snippets.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{...}:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
luasnip = {
|
||||
enable = true;
|
||||
fromVscode = [ { } ];
|
||||
};
|
||||
|
||||
friendly-snippets = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
28
home/programs/nixvim-old/plugins/sniprun.nix
Normal file
28
home/programs/nixvim-old/plugins/sniprun.nix
Normal file
@@ -0,0 +1,28 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
71
home/programs/nixvim-old/plugins/startup.nix
Normal file
71
home/programs/nixvim-old/plugins/startup.nix
Normal file
@@ -0,0 +1,71 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
162
home/programs/nixvim-old/plugins/surround.nix
Normal file
162
home/programs/nixvim-old/plugins/surround.nix
Normal file
@@ -0,0 +1,162 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
49
home/programs/nixvim-old/plugins/telescope.nix
Normal file
49
home/programs/nixvim-old/plugins/telescope.nix
Normal file
@@ -0,0 +1,49 @@
|
||||
{ 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 = " ";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
30
home/programs/nixvim-old/plugins/texpresso.nix
Normal file
30
home/programs/nixvim-old/plugins/texpresso.nix
Normal file
@@ -0,0 +1,30 @@
|
||||
{ ... }:
|
||||
|
||||
# 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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
94
home/programs/nixvim-old/plugins/todo-comments.nix
Normal file
94
home/programs/nixvim-old/plugins/todo-comments.nix
Normal file
@@ -0,0 +1,94 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
todo-comments = {
|
||||
enable = 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 = [
|
||||
"FIXME"
|
||||
"BUG"
|
||||
"FIXIT"
|
||||
"ISSUE"
|
||||
];
|
||||
color = "error";
|
||||
icon = " ";
|
||||
};
|
||||
HACK = {
|
||||
color = "warning";
|
||||
icon = " ";
|
||||
};
|
||||
NOTE = {
|
||||
alt = [
|
||||
"INFO"
|
||||
];
|
||||
color = "hint";
|
||||
icon = " ";
|
||||
};
|
||||
PERF = {
|
||||
alt = [
|
||||
"OPTIM"
|
||||
"PERFORMANCE"
|
||||
"OPTIMIZE"
|
||||
];
|
||||
icon = " ";
|
||||
};
|
||||
TEST = {
|
||||
alt = [
|
||||
"TESTING"
|
||||
"PASSED"
|
||||
"FAILED"
|
||||
];
|
||||
color = "test";
|
||||
icon = "⏲ ";
|
||||
};
|
||||
TODO = {
|
||||
color = "info";
|
||||
icon = " ";
|
||||
};
|
||||
WARN = {
|
||||
alt = [
|
||||
"WARNING"
|
||||
"XXX"
|
||||
];
|
||||
color = "warning";
|
||||
icon = " ";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
18
home/programs/nixvim-old/plugins/treesitter.nix
Normal file
18
home/programs/nixvim-old/plugins/treesitter.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
programs.nixvim.plugins = {
|
||||
treesitter = {
|
||||
enable = true;
|
||||
folding.enable = false;
|
||||
settings = {
|
||||
auto_install = false;
|
||||
highlight.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
ts-context-commentstring = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
38
home/programs/nixvim-old/plugins/typst-preview.nix
Normal file
38
home/programs/nixvim-old/plugins/typst-preview.nix
Normal file
@@ -0,0 +1,38 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
17
home/programs/nixvim-old/plugins/typst-vim.nix
Normal file
17
home/programs/nixvim-old/plugins/typst-vim.nix
Normal file
@@ -0,0 +1,17 @@
|
||||
{ ... }:
|
||||
|
||||
# TODO: coneal does not work
|
||||
{
|
||||
programs.nixvim = {
|
||||
plugins = {
|
||||
typst-vim = {
|
||||
enable = true;
|
||||
settings = {
|
||||
conceal = 1;
|
||||
conceal_math = 1;
|
||||
conceal_emoji = 1;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
40
home/programs/nixvim-old/plugins/vimtex.nix
Normal file
40
home/programs/nixvim-old/plugins/vimtex.nix
Normal file
@@ -0,0 +1,40 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
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
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user