2021-07-11 15:50:22 +02:00
|
|
|
CONFIG_PATH = vim.fn.stdpath('config')
|
|
|
|
DATA_PATH = vim.fn.stdpath('data')
|
|
|
|
CACHE_PATH = vim.fn.stdpath('cache')
|
|
|
|
TERMINAL = vim.fn.expand('$TERMINAL')
|
|
|
|
|
|
|
|
-- load all plugins
|
|
|
|
require "pluginList"
|
2021-08-29 15:14:12 +02:00
|
|
|
local g = vim.g
|
|
|
|
g.vimspector_enable_mappings = 'HUMAN'
|
|
|
|
|
2021-07-11 15:50:22 +02:00
|
|
|
require "misc-utils"
|
|
|
|
require "top-bufferline"
|
|
|
|
|
|
|
|
|
|
|
|
g.mapleader = " "
|
|
|
|
g.auto_save = false
|
|
|
|
|
|
|
|
-- colorscheme related stuff
|
|
|
|
|
|
|
|
g.nvchad_theme = "onedark"
|
|
|
|
local base16 = require "base16"
|
|
|
|
base16(base16.themes["onedark"], true)
|
|
|
|
|
|
|
|
require "highlights"
|
|
|
|
require "mappings"
|
|
|
|
require "file-icons"
|
|
|
|
require "statusline"
|
|
|
|
require "which-key-nvim"
|
|
|
|
|
|
|
|
-- hide line numbers , statusline in specific buffers!
|
|
|
|
vim.api.nvim_exec(
|
|
|
|
[[
|
|
|
|
au BufEnter term://* setlocal nonumber
|
|
|
|
au BufEnter,BufWinEnter,WinEnter,CmdwinEnter * if bufname('%') == "NvimTree" | set laststatus=0 | else | set laststatus=2 | endif
|
|
|
|
au BufEnter term://* set laststatus=0
|
|
|
|
]],
|
|
|
|
false
|
|
|
|
)
|