Refactore nvim config

This commit is contained in:
Martin Pander
2026-02-10 22:00:42 +01:00
parent eb1c83806d
commit 65cc61773f
7 changed files with 100 additions and 87 deletions

7
nvim/init.lua Normal file
View File

@@ -0,0 +1,7 @@
-- init.lua
-- This file is managed by Nix, but requires standard Lua modules from the lua/ directory
require('base')
require('keymaps')
require('plugins')
require('filetype')

View File

@@ -10,10 +10,6 @@ require('mini.move').setup()
require('flash').setup()
require('ts-comments').setup()
local function is_wsl_env()
return os.getenv("WSL_DISTRO_NAME") ~= nil or os.getenv("WSL_INTEROP") ~= nil
end
vim.g.tagbar_left=1
vim.g.tagbar_autoclose=1
vim.g.tagbar_autofocus=1
@@ -381,7 +377,7 @@ dap.configurations.zig = {
},
}
if vim.fn.has("mac") then
if _G.is_mac then
workspaces = {
{
name = "privat",
@@ -400,7 +396,7 @@ if vim.fn.has("mac") then
}
end
if is_wsl_env() then
if _G.is_work then
workspaces = {
{
name = "work",