-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinit.lua
More file actions
63 lines (53 loc) · 1.49 KB
/
Copy pathinit.lua
File metadata and controls
63 lines (53 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
--- Check if a program is executable
---@param executable string
---@return boolean is_executable
local function is_executable(executable)
return vim.fn.executable(executable) == 1
end
--- Check if dev is using Microsoft Sad Time OS
---@return boolean is_windows
local function is_windows()
return vim.fn.has("win64") == 1 or vim.fn.has("win32") == 1 or vim.fn.has("win16") == 1
end
require "plugins.packer"
require "user.opts"
require "user.keymap"
require "user.autosave"
require "user.autoload"
require "user.autocmds"
require "user.filetypes"
require "user.commands"
-- OS Agnostic Shell Setup
if is_windows() then
require "user.powershell"
else
if is_executable("zsh") then
require "user.zsh"
else
require "user.bash"
end
end
require "plugins.telescope"
require "plugins.harpoon"
require "plugins.tree-sitter"
require "plugins.git"
require "plugins.autopairs"
require "plugins.dap"
require "plugins.lsp-config"
require "plugins.conform"
-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
require "plugins.tree"
require "plugins.bufferline"
require "plugins.lualine"
require "plugins.symbols"
require "plugins.devcontainers"
require "plugins.ollama"
require "plugins.theme"
vim.cmd [[ colorscheme tokyonight-night ]]
vim.lsp.set_log_level("info")
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.api.nvim_set_hl(0, 'LineNrAbove', { fg = '#ec5f67' })
vim.api.nvim_set_hl(0, 'LineNr', { fg = '#c678dd' })
vim.api.nvim_set_hl(0, 'LineNrBelow', { fg = '#008080' })