integrate different OSes into the config (currently linux / freebsd)
authorLukas Hägele <lukas.haegele93@web.de>
Sun, 22 Mar 2026 13:33:05 +0000 (14:33 +0100)
committerLukas Hägele <lukas.haegele93@web.de>
Sun, 22 Mar 2026 13:34:30 +0000 (14:34 +0100)
lua/config/lazy.lua
lua/config/plugins/completion.lua
lua/config/plugins/telescope.lua
lua/config/plugins/theme.lua [new file with mode: 0644]

index b949579dab70353b9b07aa5fc7d05579019cefd0..3f46891320e26c221f3f9cb51f8bb04873d6a8be 100644 (file)
@@ -25,7 +25,6 @@ vim.g.maplocalleader = "\\"
 -- Setup lazy.nvim
 require("lazy").setup({
   spec = {
-    { "folke/tokyonight.nvim", config = function() vim.cmd.colorscheme "tokyonight" end },
     { import = "config.plugins" },
   }
 })
index 3f2e98b6cdc4fbde8fe53782146a3f87308b2452..a0e655103b181fee0bd4514f53dd0201648f4506 100644 (file)
@@ -1,3 +1,10 @@
+if jit.os == "Linux" then
+  implementation = "prefer_rust_with_warning"
+elseif jit.os == "BSD" then
+  implementation = "lua"
+end
+
+
 return {
   {
     'saghen/blink.cmp',
@@ -13,7 +20,8 @@ return {
         nerd_font_variant = 'mono'
       },
 
-      signature = { enabled = true }
+      signature = { enabled = true },
+      fuzzy = { implementation = implementation }
     },
   },
 }
index 79d35d8bb50e96a8a5dd39fdb2a60b40929f0d45..7e141b40604d0c22d358c5be8626a4c2992da8c9 100644 (file)
@@ -1,9 +1,15 @@
+if jit.os == "Linux" then
+  build = 'make'
+elseif jit.os == "BSD" then
+  build = 'gmake'
+end
+
 return {
   'nvim-telescope/telescope.nvim',
   tag = '0.1.8',
   dependencies = {
     'nvim-lua/plenary.nvim',
-    { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }
+    { 'nvim-telescope/telescope-fzf-native.nvim', build = build }
   },
   config = function()
     require('telescope').setup {
diff --git a/lua/config/plugins/theme.lua b/lua/config/plugins/theme.lua
new file mode 100644 (file)
index 0000000..e49d575
--- /dev/null
@@ -0,0 +1,5 @@
+if jit.os == "Linux" then
+  return { "folke/tokyonight.nvim", config = function() vim.cmd.colorscheme "tokyonight" end }
+elseif jit.os == "BSD" then
+  return { "shaunsingh/nord.nvim", config = function() vim.cmd.colorscheme "nord" end }
+end