changes to nvim and readme

This commit is contained in:
Bryan Ramos 2023-06-09 17:01:49 -04:00
parent 3f91cf0d32
commit e696907260
4 changed files with 118 additions and 73 deletions

View file

@ -2,11 +2,11 @@
My personal NixOS stash🔥 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 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 Packages](https://search.nixos.org/packages) 📦️
- [nixpkgs Options](https://search.nixos.org/options?) 🔍️ - [nixpkgs Options](https://search.nixos.org/options?) 🔍️
@ -14,7 +14,9 @@ If you need a list of available Nix packages and options:
## Get Inspired 🌟 ## 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 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 ⚙️ ## Requirements ⚙️
Get ready to go down the Nix 🐇🕳️, make sure you have the following:
- Nix package manager ❄️ - Nix package manager ❄️
- Nix 2.0 `flakes` enabled⚡ - 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 ❄️ ### 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
nix = { nix = {

View file

@ -46,7 +46,7 @@ cmp.setup({
}, },
sources = { sources = {
{ name = "nvim_lsp" }, { name = "nvim_lsp" },
{ name = "luasnip" }, -- { name = "luasnip" },
-- other sources... -- other sources...
}, },
-- other configurations... -- other configurations...

View file

@ -7,38 +7,38 @@ end
vim.opt.rtp:prepend(vim.env.LAZY or lazypath) vim.opt.rtp:prepend(vim.env.LAZY or lazypath)
require("lazy").setup({ require("lazy").setup({
spec = { spec = {
-- add LazyVim and import its plugins -- add LazyVim and import its plugins
{ "LazyVim/LazyVim", import = "lazyvim.plugins" }, { "LazyVim/LazyVim", import = "lazyvim.plugins" },
-- import any extras modules here -- import any extras modules here
{ import = "lazyvim.plugins.extras.ui.mini-animate" }, { import = "lazyvim.plugins.extras.ui.mini-animate" },
-- import/override with your plugins -- import/override with your plugins
{ import = "plugins" }, { import = "plugins" },
}, },
defaults = { defaults = {
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. -- 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. -- 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, lazy = false,
-- It's recommended to leave version=false for now, since a lot the plugin that support versioning, -- 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. -- have outdated releases, which may break your Neovim install.
version = false, -- always use the latest git commit version = false, -- always use the latest git commit
-- version = "*", -- try installing the latest stable version for plugins that support semver -- version = "*", -- try installing the latest stable version for plugins that support semver
}, },
install = { colorscheme = { "tokyonight", "habamax" } }, install = { colorscheme = { "tokyonight", "habamax" } },
checker = { enabled = true }, -- automatically check for plugin updates checker = { enabled = true }, -- automatically check for plugin updates
performance = { performance = {
rtp = { rtp = {
-- disable some rtp plugins -- disable some rtp plugins
disabled_plugins = { disabled_plugins = {
"gzip", "gzip",
-- "matchit", -- "matchit",
-- "matchparen", -- "matchparen",
-- "netrwPlugin", -- "netrwPlugin",
"tarPlugin", "tarPlugin",
"tohtml", "tohtml",
"tutor", "tutor",
"zipPlugin", "zipPlugin",
}, },
}, },
}, },
}) })

View file

@ -1,39 +1,82 @@
return { 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 }, },
{ { "williamboman/mason.nvim", enabled = false },
'VonHeikemen/lsp-zero.nvim',
branch = 'v2.x',
dependencies = {
-- LSP Support
{'neovim/nvim-lspconfig'}, -- Required
{'williamboman/mason-lspconfig.nvim'}, -- Optional
-- Autocompletion {
{'hrsh7th/nvim-cmp'}, -- Required "VonHeikemen/lsp-zero.nvim",
{'hrsh7th/cmp-nvim-lsp'}, -- Required branch = "v2.x",
{'L3MON4D3/LuaSnip'}, -- Required dependencies = {
} -- LSP Support
}, { "neovim/nvim-lspconfig" }, -- Required
{ "williamboman/mason-lspconfig.nvim" }, -- Optional
{ 'raichoo/purescript-vim' }, -- Autocompletion
{ 'vmchale/dhall-vim' }, { "hrsh7th/nvim-cmp" }, -- Required
{ 'elixir-lang/vim-elixir' }, { "hrsh7th/cmp-nvim-lsp" }, -- Required
{ 'xiyaowong/transparent.nvim'}, { "L3MON4D3/LuaSnip" }, -- Required
},
},
{ "raichoo/purescript-vim" },
{ "vmchale/dhall-vim" },
{ "elixir-lang/vim-elixir" },
{ "xiyaowong/transparent.nvim" },
} }