mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
changes to nvim and readme
This commit is contained in:
parent
3f91cf0d32
commit
e696907260
4 changed files with 118 additions and 73 deletions
16
README.md
16
README.md
|
|
@ -2,11 +2,11 @@
|
|||
|
||||
My personal NixOS stash🔥
|
||||
|
||||
The `sysConfig` directory contains subdirectories for each of my machines🖥️
|
||||
The `sysConfig`🖥️ directory contains subdirectories for each of my machines
|
||||
|
||||
In the `homeConfig`🏠️ directory, you'll find various dotfiles and config files that make my home directory extra nixy
|
||||
|
||||
If you need a list of available Nix packages and options:
|
||||
If you need a list of available packages and options:
|
||||
|
||||
- [nixpkgs Packages](https://search.nixos.org/packages) 📦️
|
||||
- [nixpkgs Options](https://search.nixos.org/options?) 🔍️
|
||||
|
|
@ -14,7 +14,9 @@ If you need a list of available Nix packages and options:
|
|||
|
||||
## Get Inspired 🌟
|
||||
|
||||
Fork this repo and create your own NixOS config💫
|
||||
Ready to go down the Nix 🐇🕳️❓️
|
||||
|
||||
Fork this repo and create your own NixOS config✨
|
||||
|
||||
Take inspiration💡, borrow ideas💭 and customize it to your 💖 content
|
||||
|
||||
|
|
@ -24,16 +26,16 @@ Take inspiration💡, borrow ideas💭 and customize it to your 💖 content
|
|||
|
||||
## Requirements ⚙️
|
||||
|
||||
Get ready to go down the Nix 🐇🕳️, make sure you have the following:
|
||||
|
||||
- Nix package manager ❄️
|
||||
- Nix 2.0 `flakes` enabled⚡️
|
||||
|
||||
Install Nix by visiting the [NixOS website](https://www.nixos.org/) or by using your package manager🚀
|
||||
Install by visiting [nixos.org](https://www.nixos.org/) or through your package manager🚀
|
||||
|
||||
### Enabling Flakes ❄️
|
||||
|
||||
Unlock the full power of Nix, add the following line to your Nix configuration:
|
||||
Unleash Nix💥
|
||||
|
||||
Add to your `nix.conf` or `configuration.nix`👇️
|
||||
|
||||
```nix
|
||||
nix = {
|
||||
|
|
|
|||
|
|
@ -46,7 +46,7 @@ cmp.setup({
|
|||
},
|
||||
sources = {
|
||||
{ name = "nvim_lsp" },
|
||||
{ name = "luasnip" },
|
||||
-- { name = "luasnip" },
|
||||
-- other sources...
|
||||
},
|
||||
-- other configurations...
|
||||
|
|
|
|||
|
|
@ -7,38 +7,38 @@ end
|
|||
vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
|
||||
|
||||
require("lazy").setup({
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = false,
|
||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||
-- have outdated releases, which may break your Neovim install.
|
||||
version = false, -- always use the latest git commit
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
spec = {
|
||||
-- add LazyVim and import its plugins
|
||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||
-- import any extras modules here
|
||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||
-- import/override with your plugins
|
||||
{ import = "plugins" },
|
||||
},
|
||||
defaults = {
|
||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||
-- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default.
|
||||
lazy = false,
|
||||
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning,
|
||||
-- have outdated releases, which may break your Neovim install.
|
||||
version = false, -- always use the latest git commit
|
||||
-- version = "*", -- try installing the latest stable version for plugins that support semver
|
||||
},
|
||||
install = { colorscheme = { "tokyonight", "habamax" } },
|
||||
checker = { enabled = true }, -- automatically check for plugin updates
|
||||
performance = {
|
||||
rtp = {
|
||||
-- disable some rtp plugins
|
||||
disabled_plugins = {
|
||||
"gzip",
|
||||
-- "matchit",
|
||||
-- "matchparen",
|
||||
-- "netrwPlugin",
|
||||
"tarPlugin",
|
||||
"tohtml",
|
||||
"tutor",
|
||||
"zipPlugin",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
|
|
|
|||
|
|
@ -1,39 +1,82 @@
|
|||
return {
|
||||
{
|
||||
'projekt0n/github-nvim-theme',
|
||||
lazy = false, -- make sure we load this during startup if it is your main colorscheme
|
||||
priority = 1000, -- make sure to load this before all the other start plugins
|
||||
config = function()
|
||||
require('github-theme').setup({
|
||||
options = {
|
||||
transparent = true;
|
||||
}
|
||||
})
|
||||
|
||||
vim.cmd('colorscheme github_dark_high_contrast')
|
||||
end,
|
||||
},
|
||||
{
|
||||
"catppuccin/nvim",
|
||||
name = "catppuccin",
|
||||
priority = 1000,
|
||||
colorscheme = function()
|
||||
require("catppuccin").setup({
|
||||
flavour = "mocha", -- latte, frappe, macchiato, mocha
|
||||
background = { -- :h background
|
||||
light = "latte",
|
||||
dark = "mocha",
|
||||
},
|
||||
transparent_background = true, -- disables setting the background color.
|
||||
show_end_of_buffer = false, -- shows the '~' characters after the end of buffers
|
||||
term_colors = false, -- sets terminal colors (e.g. `g:terminal_color_0`)
|
||||
dim_inactive = {
|
||||
enabled = false, -- dims the background color of inactive window
|
||||
shade = "dark",
|
||||
percentage = 0.15, -- percentage of the shade to apply to the inactive window
|
||||
},
|
||||
no_italic = false, -- Force no italic
|
||||
no_bold = false, -- Force no bold
|
||||
no_underline = false, -- Force no underline
|
||||
styles = { -- Handles the styles of general hi groups (see `:h highlight-args`):
|
||||
comments = { "italic" }, -- Change the style of comments
|
||||
conditionals = { "italic" },
|
||||
loops = {},
|
||||
functions = {},
|
||||
keywords = {},
|
||||
strings = {},
|
||||
variables = {},
|
||||
numbers = {},
|
||||
booleans = {},
|
||||
properties = {},
|
||||
types = {},
|
||||
operators = {},
|
||||
},
|
||||
color_overrides = {
|
||||
mocha = {
|
||||
base = "#000000",
|
||||
mantle = "#000000",
|
||||
crust = "#000000",
|
||||
},
|
||||
},
|
||||
custom_highlights = {},
|
||||
integrations = {
|
||||
cmp = true,
|
||||
gitsigns = true,
|
||||
nvimtree = true,
|
||||
telescope = true,
|
||||
notify = false,
|
||||
mini = false,
|
||||
},
|
||||
vim.cmd.colorscheme("catppuccin"),
|
||||
})
|
||||
end,
|
||||
|
||||
{'williamboman/mason.nvim', enabled = false },
|
||||
},
|
||||
|
||||
{
|
||||
'VonHeikemen/lsp-zero.nvim',
|
||||
branch = 'v2.x',
|
||||
dependencies = {
|
||||
-- LSP Support
|
||||
{'neovim/nvim-lspconfig'}, -- Required
|
||||
{'williamboman/mason-lspconfig.nvim'}, -- Optional
|
||||
{ "williamboman/mason.nvim", enabled = false },
|
||||
|
||||
-- Autocompletion
|
||||
{'hrsh7th/nvim-cmp'}, -- Required
|
||||
{'hrsh7th/cmp-nvim-lsp'}, -- Required
|
||||
{'L3MON4D3/LuaSnip'}, -- Required
|
||||
}
|
||||
},
|
||||
{
|
||||
"VonHeikemen/lsp-zero.nvim",
|
||||
branch = "v2.x",
|
||||
dependencies = {
|
||||
-- LSP Support
|
||||
{ "neovim/nvim-lspconfig" }, -- Required
|
||||
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
|
||||
|
||||
{ 'raichoo/purescript-vim' },
|
||||
{ 'vmchale/dhall-vim' },
|
||||
{ 'elixir-lang/vim-elixir' },
|
||||
{ 'xiyaowong/transparent.nvim'},
|
||||
-- Autocompletion
|
||||
{ "hrsh7th/nvim-cmp" }, -- Required
|
||||
{ "hrsh7th/cmp-nvim-lsp" }, -- Required
|
||||
{ "L3MON4D3/LuaSnip" }, -- Required
|
||||
},
|
||||
},
|
||||
|
||||
{ "raichoo/purescript-vim" },
|
||||
{ "vmchale/dhall-vim" },
|
||||
{ "elixir-lang/vim-elixir" },
|
||||
{ "xiyaowong/transparent.nvim" },
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue