nixos-config/configs/nixvim/fiesta/default.nix

52 lines
1002 B
Nix
Raw Normal View History

{ config, lib, pkgs, helpers, ... }:
2024-01-25 14:51:05 +00:00
{
imports = [ ./modules ];
2024-01-25 14:51:05 +00:00
config = {
nixvimConfigs.fiesta.setups = {
snippets.enable = true;
ui.enable = true;
completion.enable = true;
treesitter.enable = true;
2024-02-03 13:26:52 +00:00
lsp.enable = true;
fuzzy-finder.enable = true;
debugging.enable = true;
desktop-utils.enable = true;
};
# Some general settings.
globals = {
mapleader = " ";
maplocalleader = ",";
syntax = true;
};
2024-01-25 14:51:05 +00:00
opts = {
encoding = "utf-8";
completeopt = [ "menuone" "noselect" ];
expandtab = true;
shiftwidth = 4;
tabstop = 4;
};
2024-01-25 14:51:05 +00:00
keymaps = [
{
mode = "i";
key = "jk";
action = "<Esc>";
options.desc = "Escape";
}
{
mode = "n";
key = "<leader>bd";
action = helpers.mkRaw "vim.cmd.bdelete";
options.desc = "Delete current buffer";
}
];
plugins.nvim-autopairs.enable = true;
};
2024-01-25 14:51:05 +00:00
}