mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-24 09:48:42 +02:00
tests/plugins: refactor (#235)
This commit is contained in:
parent
89f54be73a
commit
db5061b4db
38 changed files with 485 additions and 744 deletions
143
tests/test-sources/example-configurations/issues.nix
Normal file
143
tests/test-sources/example-configurations/issues.nix
Normal file
|
@ -0,0 +1,143 @@
|
|||
{pkgs}: {
|
||||
"40" = {
|
||||
plugins = {
|
||||
nix.enable = true;
|
||||
nvim-autopairs.enable = true;
|
||||
|
||||
lualine = {
|
||||
enable = true;
|
||||
|
||||
sectionSeparators = {
|
||||
left = "";
|
||||
right = "";
|
||||
};
|
||||
|
||||
componentSeparators = {
|
||||
left = "";
|
||||
right = "";
|
||||
};
|
||||
|
||||
theme = "auto";
|
||||
};
|
||||
|
||||
goyo = {
|
||||
enable = true;
|
||||
showLineNumbers = false;
|
||||
};
|
||||
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers = {
|
||||
rust-analyzer.enable = true;
|
||||
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;
|
||||
contrastLight = "hard";
|
||||
contrastDark = "hard";
|
||||
};
|
||||
|
||||
options = {
|
||||
number = true;
|
||||
shiftwidth = 2;
|
||||
tabstop = 2;
|
||||
guifont = "FiraCode\ Nerd\ Font\ Mono:h14";
|
||||
};
|
||||
|
||||
plugins = {
|
||||
lsp = {
|
||||
enable = true;
|
||||
servers.rnix-lsp.enable = true;
|
||||
servers.rust-analyzer.enable = true;
|
||||
servers.jsonls.enable = true;
|
||||
};
|
||||
|
||||
nvim-tree = {
|
||||
enable = true;
|
||||
openOnSetup = true;
|
||||
openOnTab = true;
|
||||
};
|
||||
|
||||
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" = {
|
||||
maps.normal."<leader>hb" = "<cmd>lua require('gitsigns').blame_line{full=true}<cr>";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue