2023-09-27 10:43:23 +02:00
|
|
|
{pkgs, ...}: {
|
2023-03-22 07:42:02 +01:00
|
|
|
"40" = {
|
|
|
|
plugins = {
|
|
|
|
nix.enable = true;
|
|
|
|
nvim-autopairs.enable = true;
|
|
|
|
|
|
|
|
lualine = {
|
|
|
|
enable = true;
|
|
|
|
|
|
|
|
sectionSeparators = {
|
|
|
|
left = "";
|
|
|
|
right = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
componentSeparators = {
|
|
|
|
left = "";
|
|
|
|
right = "";
|
|
|
|
};
|
|
|
|
|
|
|
|
theme = "auto";
|
|
|
|
};
|
|
|
|
|
|
|
|
goyo = {
|
|
|
|
enable = true;
|
2024-03-01 14:10:59 +01:00
|
|
|
settings.linenr = false;
|
2023-03-22 07:42:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
lsp = {
|
|
|
|
enable = true;
|
|
|
|
servers = {
|
2023-11-23 13:53:22 +01:00
|
|
|
rust-analyzer = {
|
|
|
|
enable = true;
|
|
|
|
installCargo = true;
|
|
|
|
installRustc = true;
|
|
|
|
};
|
2023-03-22 07:42:02 +01:00
|
|
|
rnix-lsp.enable = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
|
|
|
# Indentation
|
|
|
|
autoindent = true;
|
|
|
|
tabstop = 4;
|
|
|
|
shiftwidth = 4;
|
|
|
|
expandtab = true;
|
|
|
|
backspace = "indent,eol,start";
|
|
|
|
|
|
|
|
# Text
|
|
|
|
showmatch = true;
|
|
|
|
mouse = "a";
|
|
|
|
number = true;
|
|
|
|
relativenumber = false;
|
|
|
|
ttyfast = true;
|
|
|
|
clipboard = "unnamedplus";
|
|
|
|
|
|
|
|
# Colors
|
|
|
|
background = "dark";
|
|
|
|
termguicolors = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
"65" = {
|
|
|
|
colorschemes.gruvbox = {
|
|
|
|
enable = true;
|
2024-01-31 10:07:27 +01:00
|
|
|
settings = {
|
|
|
|
contrast_light = "hard";
|
|
|
|
contrast_dark = "hard";
|
|
|
|
};
|
2023-03-22 07:42:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
options = {
|
|
|
|
number = true;
|
|
|
|
shiftwidth = 2;
|
|
|
|
tabstop = 2;
|
|
|
|
guifont = "FiraCode\ Nerd\ Font\ Mono:h14";
|
|
|
|
};
|
|
|
|
|
|
|
|
plugins = {
|
|
|
|
lsp = {
|
|
|
|
enable = true;
|
2023-09-17 01:02:46 +02:00
|
|
|
servers = {
|
|
|
|
rnix-lsp.enable = true;
|
2023-11-23 13:53:22 +01:00
|
|
|
rust-analyzer = {
|
|
|
|
enable = true;
|
|
|
|
installCargo = true;
|
|
|
|
installRustc = true;
|
|
|
|
};
|
2023-09-17 01:02:46 +02:00
|
|
|
jsonls.enable = true;
|
|
|
|
};
|
2023-03-22 07:42:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nvim-tree = {
|
|
|
|
enable = true;
|
|
|
|
openOnSetup = true;
|
2023-03-31 15:11:03 +02:00
|
|
|
tab.sync.open = true;
|
2023-03-22 07:42:02 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
telescope = {
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nvim-cmp = {
|
|
|
|
formatting = {
|
|
|
|
format = ''
|
|
|
|
require("lspkind").cmp_format({
|
|
|
|
mode="symbol",
|
|
|
|
maxwidth = 50,
|
|
|
|
ellipsis_char = "..."
|
|
|
|
})
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
autoEnableSources = true;
|
|
|
|
snippet = {
|
|
|
|
expand.__raw = ''
|
|
|
|
function(args)
|
|
|
|
require("luasnip").lsp_expand(args.body)
|
|
|
|
end
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
enable = true;
|
|
|
|
sources = [
|
|
|
|
{name = "nvim_lsp";}
|
|
|
|
{
|
|
|
|
name = "luasnip";
|
|
|
|
option = {
|
|
|
|
show_autosnippets = true;
|
|
|
|
};
|
|
|
|
}
|
|
|
|
{name = "path";}
|
|
|
|
{name = "buffer";}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
barbar.enable = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
globals.mapleader = " ";
|
|
|
|
extraPlugins = with pkgs.vimPlugins; [
|
|
|
|
which-key-nvim
|
|
|
|
# leap-nvim
|
|
|
|
vim-flutter
|
|
|
|
plenary-nvim
|
|
|
|
fidget-nvim
|
|
|
|
luasnip
|
|
|
|
lspkind-nvim
|
|
|
|
];
|
|
|
|
|
|
|
|
# extraConfigLua = (builtins.readFile ./nvim-extra-lua.lua);
|
|
|
|
};
|
|
|
|
|
|
|
|
"71" = {
|
2023-09-15 14:35:13 +02:00
|
|
|
keymaps = [
|
|
|
|
{
|
|
|
|
mode = "n";
|
|
|
|
key = "<leader>hb";
|
|
|
|
action = "<cmd>lua require('gitsigns').blame_line{full=true}<cr>";
|
|
|
|
}
|
|
|
|
];
|
2023-03-22 07:42:02 +01:00
|
|
|
};
|
|
|
|
}
|