Refactore nvim config
This commit is contained in:
7
nvim/init.lua
Normal file
7
nvim/init.lua
Normal 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')
|
||||
@@ -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",
|
||||
Reference in New Issue
Block a user