fix sets.nix options by adding config beforehand
This commit is contained in:
parent
f22207f3e2
commit
82c8025b4e
2 changed files with 65 additions and 64 deletions
|
|
@ -1,7 +1,6 @@
|
||||||
# The line beneath this is called `modeline`. See `:help modeline`
|
# The line beneath this is called `modeline`. See `:help modeline`
|
||||||
# vim: ts=4:sts=0:sw=0:tw=78:noet
|
# vim: ts=4:sts=0:sw=0:tw=78:noet
|
||||||
{pkgs
|
{
|
||||||
, ...}:{
|
|
||||||
# Import all your configuration modules here
|
# Import all your configuration modules here
|
||||||
imports = [
|
imports = [
|
||||||
./colorscheme/onedark.nix
|
./colorscheme/onedark.nix
|
||||||
|
|
|
||||||
|
|
@ -1,66 +1,68 @@
|
||||||
# The line beneath this is called `modeline`. See `:help modeline`
|
# The line beneath this is called `modeline`. See `:help modeline`
|
||||||
# vim: ts=4:sts=0:sw=0:tw=78:noet
|
# vim: ts=4:sts=0:sw=0:tw=78:noet
|
||||||
{
|
{
|
||||||
options = {
|
config = {
|
||||||
relativenumber = true;
|
options = {
|
||||||
splitbelow = true;
|
relativenumber = true;
|
||||||
redrawtime = 5000;
|
splitbelow = true;
|
||||||
|
redrawtime = 5000;
|
||||||
|
|
||||||
# new split to the right
|
# new split to the right
|
||||||
splitright = true;
|
splitright = true;
|
||||||
|
|
||||||
# show hidden characters
|
# show hidden characters
|
||||||
list = true;
|
list = true;
|
||||||
|
|
||||||
# don't break words on the edge
|
# don't break words on the edge
|
||||||
linebreak = true;
|
linebreak = true;
|
||||||
wrap = true;
|
wrap = true;
|
||||||
# length of an actual \t character:
|
# length of an actual \t character:
|
||||||
# https://stackoverflow.com/questions/191201/indenting-comments-to-match-code-in-vim
|
# https://stackoverflow.com/questions/191201/indenting-comments-to-match-code-in-vim
|
||||||
smartindent = false;
|
smartindent = false;
|
||||||
# length to use when shifting text (eg. <<, >> and == commands)
|
# length to use when shifting text (eg. <<, >> and == commands)
|
||||||
|
|
||||||
tabstop=4;
|
tabstop=4;
|
||||||
shiftwidth = 0;
|
shiftwidth = 0;
|
||||||
|
|
||||||
expandtab = false;
|
expandtab = false;
|
||||||
autoindent = true;
|
autoindent = true;
|
||||||
# Set highlight on search
|
# Set highlight on search
|
||||||
hlsearch = false;
|
hlsearch = false;
|
||||||
|
|
||||||
# Make line numbers default
|
# Make line numbers default
|
||||||
number = true;
|
number = true;
|
||||||
|
|
||||||
# Enable mouse mode
|
# Enable mouse mode
|
||||||
mouse = "a";
|
mouse = "a";
|
||||||
|
|
||||||
# Sync clipboard between OS and Neovim.
|
# Sync clipboard between OS and Neovim.
|
||||||
# Remove this option if you want your OS clipboard to remain independent.
|
# Remove this option if you want your OS clipboard to remain independent.
|
||||||
# See `:help 'clipboard'`
|
# See `:help 'clipboard'`
|
||||||
# vim.o.clipboard = 'unnamedplus' -- REMOVED BY ME
|
# vim.o.clipboard = 'unnamedplus' -- REMOVED BY ME
|
||||||
|
|
||||||
# Enable break indent
|
# Enable break indent
|
||||||
breakindent = true;
|
breakindent = true;
|
||||||
|
|
||||||
# Save undo history
|
# Save undo history
|
||||||
# vim.o.undofile = true -- REMOVED BY ME
|
# vim.o.undofile = true -- REMOVED BY ME
|
||||||
|
|
||||||
# Case insensitive searching UNLESS /C or capital in search
|
# Case insensitive searching UNLESS /C or capital in search
|
||||||
ignorecase = true;
|
ignorecase = true;
|
||||||
smartcase = true;
|
smartcase = true;
|
||||||
|
|
||||||
# Keep signcolumn on by default
|
# Keep signcolumn on by default
|
||||||
signcolumn = "yes";
|
signcolumn = "yes";
|
||||||
|
|
||||||
# Decrease update time
|
# Decrease update time
|
||||||
updatetime = 250;
|
updatetime = 250;
|
||||||
timeout = true;
|
timeout = true;
|
||||||
timeoutlen = 300;
|
timeoutlen = 300;
|
||||||
|
|
||||||
# Set completeopt to have a better completion experience
|
# Set completeopt to have a better completion experience
|
||||||
completeopt = "menuone,noselect";
|
completeopt = "menuone,noselect";
|
||||||
|
|
||||||
# NOTE: You should make sure your terminal supports this
|
# NOTE: You should make sure your terminal supports this
|
||||||
termguicolors = true;
|
termguicolors = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue