task | nixvim - tweek options
This commit is contained in:
parent
64c3e05a26
commit
55c1516a83
1 changed files with 43 additions and 1 deletions
|
|
@ -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 = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue