feat(homes/rafiq): port over configs
This commit is contained in:
parent
aa06b5f6fd
commit
4c82720251
15 changed files with 440 additions and 2 deletions
25
nix/homes/rafiq/_nvf/autocomplete.nix
Normal file
25
nix/homes/rafiq/_nvf/autocomplete.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ lib }:
|
||||
{
|
||||
blink-cmp = {
|
||||
enable = true;
|
||||
friendly-snippets.enable = true;
|
||||
sourcePlugins.ripgrep.enable = true;
|
||||
setupOpts = {
|
||||
# Disable completion in markdown files
|
||||
# TODO: Disable completion when in comments
|
||||
enabled =
|
||||
lib.generators.mkLuaInline
|
||||
# lua
|
||||
''
|
||||
function()
|
||||
return not vim.tbl_contains({"markdown"}, vim.bo.filetype)
|
||||
and vim.bo.buftype ~= "prompt"
|
||||
and vim.b.completion ~= false
|
||||
end
|
||||
'';
|
||||
completion.documentation.auto_show_delay_ms = 0;
|
||||
# Show e.g. function parameters
|
||||
signature.enabled = true;
|
||||
};
|
||||
};
|
||||
}
|
3
nix/homes/rafiq/_nvf/binds.nix
Normal file
3
nix/homes/rafiq/_nvf/binds.nix
Normal file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
whichKey.enable = true;
|
||||
}
|
34
nix/homes/rafiq/_nvf/languages.nix
Normal file
34
nix/homes/rafiq/_nvf/languages.nix
Normal file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
enableExtraDiagnostics = true;
|
||||
enableFormat = true;
|
||||
enableTreesitter = true;
|
||||
bash.enable = true;
|
||||
clang.enable = true;
|
||||
csharp.enable = true;
|
||||
css.enable = true;
|
||||
go.enable = true;
|
||||
html.enable = true;
|
||||
lua.enable = true;
|
||||
markdown = {
|
||||
enable = true;
|
||||
extensions.markview-nvim.enable = true;
|
||||
format.type = "prettierd";
|
||||
};
|
||||
nix = {
|
||||
enable = true;
|
||||
format.type = "nixfmt";
|
||||
lsp.server = "nil";
|
||||
};
|
||||
python = {
|
||||
enable = true;
|
||||
format.type = "ruff";
|
||||
lsp.server = "pyright";
|
||||
};
|
||||
rust.enable = true;
|
||||
rust.crates.enable = true;
|
||||
ts.enable = true;
|
||||
ts.extensions.ts-error-translator.enable = true;
|
||||
typst.enable = true;
|
||||
typst.extensions.typst-preview-nvim.enable = true;
|
||||
yaml.enable = true;
|
||||
}
|
17
nix/homes/rafiq/_nvf/lsp.nix
Normal file
17
nix/homes/rafiq/_nvf/lsp.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
enable = true;
|
||||
# Show virtual text hints
|
||||
inlayHints.enable = true;
|
||||
lightbulb.enable = true;
|
||||
# Show icons for lsp actions
|
||||
lspkind.enable = true;
|
||||
null-ls.enable = true;
|
||||
otter-nvim = {
|
||||
enable = true;
|
||||
setupOpts = {
|
||||
buffers.set_filetype = true;
|
||||
buffers.write_to_disk = true;
|
||||
handle_leading_whitespace = true;
|
||||
};
|
||||
};
|
||||
}
|
9
nix/homes/rafiq/_nvf/navigation.nix
Normal file
9
nix/homes/rafiq/_nvf/navigation.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
harpoon = {
|
||||
enable = true;
|
||||
mappings.listMarks = "<leader>ml";
|
||||
mappings.markFile = "<leader>mm";
|
||||
setupOpts.defaults.save_on_toggle = true;
|
||||
setupOpts.defaults.sync_on_ui_close = true;
|
||||
};
|
||||
}
|
28
nix/homes/rafiq/_nvf/snippets.nix
Normal file
28
nix/homes/rafiq/_nvf/snippets.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ pkgs }:
|
||||
{
|
||||
luasnip = {
|
||||
enable = true;
|
||||
setupOpts.enable_autosnippets = true;
|
||||
providers = with pkgs.vimPlugins; [ vim-snippets ];
|
||||
loaders = "require('luasnip.loaders.from_vscode').lazy_load()";
|
||||
customSnippets.snipmate = {
|
||||
nix = [
|
||||
{
|
||||
trigger = "mod";
|
||||
description = "empty module";
|
||||
body = # nix
|
||||
''
|
||||
{config, lib, ...}:
|
||||
let
|
||||
cfg = config.$1;
|
||||
in
|
||||
{
|
||||
options.$1 = { $2 };
|
||||
config = $3;
|
||||
}
|
||||
'';
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
10
nix/homes/rafiq/_nvf/statusline.nix
Normal file
10
nix/homes/rafiq/_nvf/statusline.nix
Normal file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
lualine = {
|
||||
enable = true;
|
||||
refresh = {
|
||||
statusline = 10;
|
||||
winbar = 10;
|
||||
};
|
||||
#TODO: rice lualine
|
||||
};
|
||||
}
|
16
nix/homes/rafiq/_nvf/ui.nix
Normal file
16
nix/homes/rafiq/_nvf/ui.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
borders = {
|
||||
enable = true;
|
||||
globalStyle = "rounded";
|
||||
};
|
||||
breadcrumbs.enable = true;
|
||||
# Show color values e.g. #ffffff
|
||||
colorizer.enable = true;
|
||||
# Highlight matching symbols
|
||||
illuminate.enable = true;
|
||||
noice.enable = true;
|
||||
noice.setupOpts.notify.enabled = false;
|
||||
# Make folds look nicer
|
||||
nvim-ufo.enable = true;
|
||||
smartcolumn.enable = true;
|
||||
}
|
11
nix/homes/rafiq/_nvf/utility.nix
Normal file
11
nix/homes/rafiq/_nvf/utility.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
motion.hop.enable = true;
|
||||
yazi-nvim = {
|
||||
enable = true;
|
||||
mappings = {
|
||||
openYazi = "<leader>tt";
|
||||
openYaziDir = "<leader>TT";
|
||||
};
|
||||
setupOpts.open_for_directories = true;
|
||||
};
|
||||
}
|
7
nix/homes/rafiq/_nvf/visuals.nix
Normal file
7
nix/homes/rafiq/_nvf/visuals.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
indent-blankline.enable = true;
|
||||
fidget-nvim.enable = true;
|
||||
fidget-nvim.setupOpts.notification.override_vim_notify = true;
|
||||
nvim-web-devicons.enable = true;
|
||||
rainbow-delimiters.enable = true;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue