nix-community.nixvim/tests/test-sources/example-configurations/issues.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

167 lines
3.2 KiB
Nix
Raw Normal View History

{ pkgs, ... }:
{
2023-03-22 07:42:02 +01:00
"40" = {
plugins = {
nix.enable = true;
nvim-autopairs.enable = true;
lualine = {
enable = true;
settings = {
options = {
section_separators = {
left = "";
right = "";
};
component_separators = {
left = "";
right = "";
};
theme = "auto";
};
2023-03-22 07:42:02 +01:00
};
};
goyo = {
enable = true;
2024-09-08 17:18:17 -05:00
settings.linenr = 0;
2023-03-22 07:42:02 +01:00
};
lsp = {
enable = true;
servers = {
rust_analyzer = {
enable = true;
installCargo = true;
installRustc = true;
};
nixd.enable = true;
2023-03-22 07:42:02 +01:00
};
};
};
opts = {
2023-03-22 07:42:02 +01:00
# 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
};
opts = {
2023-03-22 07:42:02 +01:00
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 = {
nixd.enable = true;
rust_analyzer = {
enable = true;
installCargo = true;
installRustc = true;
};
jsonls.enable = true;
2023-09-17 01:02:46 +02:00
};
2023-03-22 07:42:02 +01:00
};
nvim-tree = {
enable = true;
openOnSetup = true;
tab.sync.open = true;
2023-03-22 07:42:02 +01:00
};
telescope = {
enable = true;
};
cmp = {
enable = true;
2023-03-22 07:42:02 +01:00
autoEnableSources = true;
settings = {
formatting = {
format = ''
require("lspkind").cmp_format({
mode="symbol",
maxwidth = 50,
ellipsis_char = "..."
})
'';
};
snippet = {
expand = ''
function(args)
require("luasnip").lsp_expand(args.body)
end
'';
};
sources = [
{ name = "nvim_lsp"; }
{
name = "luasnip";
option = {
show_autosnippets = true;
};
}
{ name = "path"; }
{ name = "buffer"; }
];
2023-03-22 07:42:02 +01:00
};
};
barbar.enable = true;
web-devicons.enable = true;
2023-03-22 07:42:02 +01:00
};
globals.mapleader = " ";
extraPlugins = with pkgs.vimPlugins; [
which-key-nvim
# leap-nvim
vim-flutter
plenary-nvim
fidget-nvim
luasnip
lspkind-nvim
];
};
"71" = {
keymaps = [
{
mode = "n";
key = "<leader>hb";
action = "<cmd>lua require('gitsigns').blame_line{full=true}<cr>";
}
];
2023-03-22 07:42:02 +01:00
};
}