M config/default.nix => config/default.nix +3 -0
@@ 1,10 1,13 @@
{
imports = [
./plugins
+ ./ftplugin
./colourscheme.nix
./globals.nix
+
+ ./opts.nix
];
withNodeJs = false;
A config/ftplugin/default.nix => config/ftplugin/default.nix +4 -0
@@ 0,0 1,4 @@
+{
+ files."ftplugin/go.lua" = import ./go.nix;
+ files."ftplugin/nix.lua" = import ./nix.nix;
+}
A config/ftplugin/go.nix => config/ftplugin/go.nix +8 -0
@@ 0,0 1,8 @@
+{
+ opts = {
+ tabstop = 2;
+ softtabstop = 2;
+ shiftwidth = 2;
+ expandtab = false;
+ };
+}
A config/ftplugin/nix.nix => config/ftplugin/nix.nix +7 -0
@@ 0,0 1,7 @@
+{
+ opts = {
+ tabstop = 2;
+ softtabstop = 2;
+ shiftwidth = 2;
+ };
+}
A config/opts.nix => config/opts.nix +19 -0
@@ 0,0 1,19 @@
+{
+ opts = {
+ updatetime = 250;
+ colorcolumn = "80";
+
+ number = true;
+ relativenumber = true;
+
+ tabstop = 4;
+ softtabstop = 4;
+ shiftwidth = 4;
+ expandtab = true;
+ smarttab = true;
+ smartindent = true;
+
+ hlsearch = true;
+ incsearch = true;
+ };
+}