task | nixvim - tweek options

This commit is contained in:
Don Harper 2026-04-01 22:40:11 -05:00
parent 64c3e05a26
commit 55c1516a83

View file

@ -4,6 +4,40 @@
ripgrep.enable = true;
nixvim = {
globals.mapleader = " ";
opts = {
number = true;
relativenumber = false;
termguicolors = true;
completeopt = [
"menuone"
"noselect"
"noinsert"
];
# Always show the signcolumn, otherwise text would be shifted when displaying error icons
signcolumn = "yes";
mouse = "a";
ignorecase = true;
smartcase = true;
splitright = true;
splitbelow = true;
list = true;
# NOTE: .__raw here means that this field is raw lua code
listchars.__raw = "{ tab = '» ', trail = '·', nbsp = '' }";
expandtab = true;
tabstop = 4;
shiftwidth = 2;
softtabstop = 0;
smarttab = true;
clipboard = {
providers.wl-copy.enable = true; # Use wl-copy for wayland and xsel for Xorg
register = "unnamedplus";
};
encoding = "utf-8";
fileencoding = "utf-8";
cursorline = true;
ruler = true;
scrolloff = 5;
};
keymaps = [
{
key = "<Tab>";
@ -38,7 +72,15 @@
defaultEditor = true;
# colorschemes.dracula.enable = true;
colorschemes.catppuccin.enable = true;
extraConfigLuaPost = "vim.opt.conceallevel = 2";
extraConfigLuaPost = ''
vim.opt.conceallevel = 2
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.opt_local.spell = true
end,
})
'';
plugins = {
airline.enable = true;
alpha = {