mirror of
https://github.com/materusPL/nixos-config
synced 2026-06-24 17:36:41 +00:00
Neovim init config. Formatting. Updates.
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if vim.fn.executable("git") == 1 then
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
vim.fn.system({
|
||||
"git",
|
||||
"clone",
|
||||
"--filter=blob:none",
|
||||
"https://github.com/folke/lazy.nvim.git",
|
||||
"--branch=stable", -- latest stable release
|
||||
lazypath,
|
||||
})
|
||||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
local opts = {}
|
||||
local plugins = {
|
||||
{
|
||||
"Mofiqul/dracula.nvim",
|
||||
lazy = false,
|
||||
priority = 1000,
|
||||
opts = {}
|
||||
},
|
||||
{
|
||||
"romgrk/barbar.nvim",
|
||||
init = function() vim.g.barbar_auto_setup = false end,
|
||||
dependencies = {"nvim-tree/nvim-web-devicons","lewis6991/gitsigns.nvim"}
|
||||
},
|
||||
|
||||
|
||||
--[[
|
||||
{
|
||||
"kevinhwang91/nvim-ufo",
|
||||
dependencies = {"kevinhwang91/promise-async"},
|
||||
opts = {}
|
||||
}]]
|
||||
}
|
||||
|
||||
require("lazy").setup(plugins, opts)
|
||||
|
||||
vim.cmd [[colorscheme dracula]]
|
||||
vim.cmd [[set number]]
|
||||
end
|
||||
@@ -16,7 +16,6 @@ if zmodload zsh/terminfo && (( "$terminfo[colors]" >= "256" )); then
|
||||
__MATERUS_ZSH_256COLORS="${__MATERUS_ZSH_256COLORS:-0}";
|
||||
fi
|
||||
|
||||
|
||||
#region Plugins
|
||||
# Clone plugins if not exists
|
||||
[ -d $ZSH_DATA_DIR/plugins/powerlevel10k ] || git clone https://github.com/romkatv/powerlevel10k $ZSH_DATA_DIR/plugins/powerlevel10k
|
||||
@@ -104,6 +103,11 @@ speedtest() {
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Aliases
|
||||
if [[ "$TERM" = "xterm-kitty" ]]; then
|
||||
alias ssh="kitty +kitten ssh"
|
||||
fi
|
||||
#endregion
|
||||
|
||||
if [[ "$__MATERUS_ZSH_256COLORS" = "1" ]] ; then [[ ! -f ${ZSH_CONFIG_DIR}/p10kcfg/fullcolor.zsh ]] || source ${ZSH_CONFIG_DIR}/p10kcfg/fullcolor.zsh;
|
||||
else [[ ! -f ${ZSH_CONFIG_DIR}/p10kcfg/compatibility.zsh ]] || source ${ZSH_CONFIG_DIR}/p10kcfg/compatibility.zsh;
|
||||
|
||||
Reference in New Issue
Block a user