This repository contains my current Neovim configuration files.
- Packer package manager (discontinued but works like a charm for now)
- Telescope
- Catpuccin
- Treesitter
- Undotree
- lspconfig
- cmp
- cmp-nvim-lsp
- Mason
- mason-lspconfig
- LuaSnip
- none-ls
- autoclose
- clang-format
- lua-ls
- rust-analyzer
- clangd
- jdtls
- C
- Java
- Lua
- Vimscript
- Vimdoc
- Query
- Markdown
- Inline markdown
- Bash
The only dependency required by this config is pakcer
itself, you can install it using:
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
However, the various plugins may have requirements of their own!
To install this config, jsut run:
git clone https://github.com/Alessandro-Salerno/nvimconf2 ~/.config/nvim && nvim
Currently, this config allows quite a small degree of customization without changing files in lua/alevm. However, some small tweaks can be made via the lua/user/init.lua file.
By default, this configuration makes use of the Catpuccin theme, however I added a kind of "API" to change or add other themes. You can add themes by placing their configuration in lua/alevm/themes/ and then editing the theme
section of lua/user/init.lua:
// ...
theme = {
path = "alevm.themes.catpuccin",
-- This is theme-specific. Look inside the theme's lua file for all
-- the availabel options
opts = {
flavour = "auto",
line_num_color = "white",
line_color = "#3E3E4F"
}
},
// ...
Themes added in the above-mentioned directory can make use of contents in the opt
section by requiring the user
package. Themes are also responsible for setting the color scheme:
local user = require("user")
require("catppuccin").setup({
flavour = user.theme.opts.flavour, -- latte, frappe, macchiato, mocha
// ...
}
vim.cmd.colorscheme "catppuccin"
The bundle and the code I wrote are distributed under the MIT icense. See LICENSE for details. However, some scripts (e.g., themes, etc.) may be taken from other sources and, as such, may be distributed under different license.