Skip to content

Commit

Permalink
Flatten lua config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sigmanificient committed Dec 21, 2023
1 parent 1688e97 commit 6e546f8
Show file tree
Hide file tree
Showing 15 changed files with 23 additions and 29 deletions.
File renamed without changes.
20 changes: 20 additions & 0 deletions home/nvim/.vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
let mapleader = "\<Space>"
nnoremap <leader>pv :Ex<CR>
set smartindent
set tabstop=4
set softtabstop=4
set shiftwidth=4

set expandtab
set number
set relativenumber

set noswapfile
set undodir=$HOME/.vim/undodir
set undofile

set colorcolumn=80
set cursorline

lua require("init")
4 changes: 1 addition & 3 deletions home/nvim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,7 @@
programs.neovim = {
enable = true;

extraConfig = ''
lua require('sigma')
'';
extraConfig = (builtins.readFile ./.vimrc);

plugins = with pkgs.vimPlugins; [
lazy-nvim
Expand Down
1 change: 1 addition & 0 deletions home/nvim/lua/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("lazy").setup("lazy_plugins")
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
local attach_user_config = function(settings)
settings["config"] = function()
require("sigma.plugins." .. settings["_user_conf"])
require("plugins." .. settings["_user_conf"])
end

return settings
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 0 additions & 4 deletions home/nvim/lua/sigma/init.lua

This file was deleted.

2 changes: 0 additions & 2 deletions home/nvim/lua/sigma/remap.lua

This file was deleted.

19 changes: 0 additions & 19 deletions home/nvim/lua/sigma/settings.lua

This file was deleted.

0 comments on commit 6e546f8

Please sign in to comment.