started neovim but swtiched to lunarvim
This commit is contained in:
@@ -4,6 +4,6 @@
|
||||
./zsh
|
||||
./git.nix
|
||||
./packages.nix
|
||||
./neovim.nix
|
||||
#./nvim
|
||||
];
|
||||
}
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
{
|
||||
config,
|
||||
username,
|
||||
...
|
||||
}:
|
||||
{
|
||||
@@ -11,6 +9,9 @@
|
||||
name = "poslop";
|
||||
email = "poslop@archfox.org";
|
||||
};
|
||||
core = {
|
||||
editor = "nvim -f";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,8 +0,0 @@
|
||||
_:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
};
|
||||
}
|
||||
5
modules/home/nvim/default.nix
Normal file
5
modules/home/nvim/default.nix
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
imports = [
|
||||
./nvim.nix
|
||||
];
|
||||
}
|
||||
14
modules/home/nvim/nvim.nix
Normal file
14
modules/home/nvim/nvim.nix
Normal file
@@ -0,0 +1,14 @@
|
||||
_:
|
||||
{
|
||||
programs.neovim = {
|
||||
enable = false;
|
||||
vimAlias = true;
|
||||
viAlias = true;
|
||||
};
|
||||
|
||||
hj = {
|
||||
files = {
|
||||
".config/nvim".source = ./nvim;
|
||||
};
|
||||
};
|
||||
}
|
||||
1
modules/home/nvim/nvim/init.lua
Normal file
1
modules/home/nvim/nvim/init.lua
Normal file
@@ -0,0 +1 @@
|
||||
require('poslop')
|
||||
1
modules/home/nvim/nvim/lua/poslop/init.lua
Normal file
1
modules/home/nvim/nvim/lua/poslop/init.lua
Normal file
@@ -0,0 +1 @@
|
||||
require("poslop.options")
|
||||
25
modules/home/nvim/nvim/lua/poslop/options.lua
Normal file
25
modules/home/nvim/nvim/lua/poslop/options.lua
Normal file
@@ -0,0 +1,25 @@
|
||||
-- Hint: use `:h <option>` to figure out the meaning if needed
|
||||
vim.opt.clipboard = 'unnamedplus' -- use system clipboard
|
||||
vim.opt.completeopt = {'menu', 'menuone', 'noselect'}
|
||||
vim.opt.mouse = 'a' -- allow the mouse to be used in Nvim
|
||||
|
||||
-- Tab
|
||||
vim.opt.tabstop = 4 -- number of visual spaces per TAB
|
||||
vim.opt.softtabstop = 4 -- number of spacesin tab when editing
|
||||
vim.opt.shiftwidth = 4 -- insert 4 spaces on a tab
|
||||
vim.opt.expandtab = true -- tabs are spaces, mainly because of python
|
||||
|
||||
-- UI config
|
||||
vim.opt.number = true -- show absolute number
|
||||
vim.opt.relativenumber = true -- add numbers to each line on the left side
|
||||
vim.opt.cursorline = true -- highlight cursor line underneath the cursor horizontally
|
||||
vim.opt.splitbelow = true -- open new vertical split bottom
|
||||
vim.opt.splitright = true -- open new horizontal splits right
|
||||
-- vim.opt.termguicolors = true -- enabl 24-bit RGB color in the TUI
|
||||
vim.opt.showmode = false -- we are experienced, wo don't need the "-- INSERT --" mode hint
|
||||
|
||||
-- Searching
|
||||
vim.opt.incsearch = true -- search as characters are entered
|
||||
vim.opt.hlsearch = false -- do not highlight matches
|
||||
vim.opt.ignorecase = true -- ignore case in searches by default
|
||||
vim.opt.smartcase = true -- but make it case sensitive if an uppercase is entered
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
{
|
||||
hjem.users.${username}.packages = with pkgs; [
|
||||
lunarvim
|
||||
statix
|
||||
git
|
||||
zsh
|
||||
|
||||
Reference in New Issue
Block a user