Compare commits
15 Commits
76da790a27
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 966eb0b4fe | |||
| fed74a8438 | |||
| d1cab46f53 | |||
| e3a76f447c | |||
| 9615f07e31 | |||
| a7cb4a0b6c | |||
|
|
e3572e1f5e | ||
|
|
5c656910f0 | ||
|
|
925399d90c | ||
|
|
2b4293a4c1 | ||
|
|
85404dcb03 | ||
|
|
2ef0168470 | ||
|
|
c3d1fb646a | ||
|
|
d0c602f5f1 | ||
|
|
6db16815ac |
@@ -1,9 +1,15 @@
|
|||||||
**This repo is supposed to used as config by NvChad users!**
|
**This repo is supposed to be used as config by NvChad users!**
|
||||||
|
|
||||||
- The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo.
|
- The main nvchad repo (NvChad/NvChad) is used as a plugin by this repo.
|
||||||
- So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"`
|
- So you just import its modules , like `require "nvchad.options" , require "nvchad.mappings"`
|
||||||
- So you can delete the .git from this repo ( when you clone it locally ) or fork it :)
|
- So you can delete the .git from this repo ( when you clone it locally ) or fork it :)
|
||||||
|
|
||||||
|
# Install
|
||||||
|
|
||||||
|
```bash
|
||||||
|
curl -sf https://gitea.astrid-klipfel.fr/asteri/neovim/raw/branch/main/install.sh | sh
|
||||||
|
```
|
||||||
|
|
||||||
# Credits
|
# Credits
|
||||||
|
|
||||||
1) Lazyvim starter https://github.com/LazyVim/starter as nvchad's starter was inspired by Lazyvim's . It made a lot of things easier!
|
1) Lazyvim starter https://github.com/LazyVim/starter as nvchad's starter was inspired by Lazyvim's . It made a lot of things easier!
|
||||||
|
|||||||
8
init.lua
8
init.lua
@@ -29,8 +29,14 @@ require("lazy").setup({
|
|||||||
dofile(vim.g.base46_cache .. "defaults")
|
dofile(vim.g.base46_cache .. "defaults")
|
||||||
dofile(vim.g.base46_cache .. "statusline")
|
dofile(vim.g.base46_cache .. "statusline")
|
||||||
|
|
||||||
|
vim.diagnostic.config({
|
||||||
|
virtual_text = {severity = {min = vim.diagnostic.severity.WARN}},
|
||||||
|
signs = {severity = {min = vim.diagnostic.severity.WARN}},
|
||||||
|
underline = {severity = {min = vim.diagnostic.severity.WARN}},
|
||||||
|
})
|
||||||
|
|
||||||
require "options"
|
require "options"
|
||||||
require "nvchad.autocmds"
|
require "autocmds"
|
||||||
|
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
require "mappings"
|
require "mappings"
|
||||||
|
|||||||
8
install.sh
Normal file
8
install.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
sudo apt install git nodejs npm libfuse2
|
||||||
|
rm -rf ~/.config/nvim
|
||||||
|
git clone https://gitea.astrid-klipfel.fr/asteri/neovim.git ~/.config/nvim
|
||||||
|
mkdir -p ~/Applications
|
||||||
|
curl -sf https://github.com/neovim/neovim/releases/download/v0.12.2/nvim-linux-x86_64.appimage -o ~/Applications/nvim-linux-x86_64.appimage
|
||||||
|
chmod +x ~/Applications/nvim-linux-x86_64.appimage
|
||||||
|
~/Applications/nvim-linux-x86_64.appimage
|
||||||
34
lazy-lock.json
Normal file
34
lazy-lock.json
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
{
|
||||||
|
"LuaSnip": { "branch": "master", "commit": "642b0c595e11608b4c18219e93b88d7637af27bc" },
|
||||||
|
"NvChad": { "branch": "v2.5", "commit": "f437558f23c8f50c36cd09748121ab2c822e8ec9" },
|
||||||
|
"base46": { "branch": "v3.0", "commit": "884b990dcdbe07520a0892da6ba3e8d202b46337" },
|
||||||
|
"cmp-async-path": { "branch": "main", "commit": "f8af3f726e07f2e9d37672eaa9102581aefce149" },
|
||||||
|
"cmp-buffer": { "branch": "main", "commit": "b74fab3656eea9de20a9b8116afa3cfc4ec09657" },
|
||||||
|
"cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" },
|
||||||
|
"cmp-nvim-lua": { "branch": "main", "commit": "e3a22cb071eb9d6508a156306b102c45cd2d573d" },
|
||||||
|
"cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" },
|
||||||
|
"conform.nvim": { "branch": "master", "commit": "086a40dc7ed8242c03be9f47fbcee68699cc2395" },
|
||||||
|
"crates.nvim": { "branch": "main", "commit": "ac9fa498a9edb96dc3056724ff69d5f40b898453" },
|
||||||
|
"friendly-snippets": { "branch": "main", "commit": "6cd7280adead7f586db6fccbd15d2cac7e2188b9" },
|
||||||
|
"gitsigns.nvim": { "branch": "main", "commit": "50c205548d8b037b7ff6378fca6d21146f0b6161" },
|
||||||
|
"indent-blankline.nvim": { "branch": "master", "commit": "d28a3f70721c79e3c5f6693057ae929f3d9c0a03" },
|
||||||
|
"lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" },
|
||||||
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "037398b9ce4a53ba48d5f94765c641a1fd16d906" },
|
||||||
|
"mason.nvim": { "branch": "main", "commit": "44d1e90e1f66e077268191e3ee9d2ac97cc18e65" },
|
||||||
|
"menu": { "branch": "main", "commit": "7a0a4a2896b715c066cfbe320bdc048091874cc6" },
|
||||||
|
"minty": { "branch": "main", "commit": "aafc9e8e0afe6bf57580858a2849578d8d8db9e0" },
|
||||||
|
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
|
||||||
|
"nvim-autopairs": { "branch": "master", "commit": "59bce2eef357189c3305e25bc6dd2d138c1683f5" },
|
||||||
|
"nvim-cmp": { "branch": "main", "commit": "a1d504892f2bc56c2e79b65c6faded2fd21f3eca" },
|
||||||
|
"nvim-lspconfig": { "branch": "master", "commit": "16812abf0e8d8175155f26143a8504e8253e92b0" },
|
||||||
|
"nvim-tree.lua": { "branch": "master", "commit": "4cbe79526f8bc0bdb1a500d261dc5cc1be4e77d5" },
|
||||||
|
"nvim-treesitter": { "branch": "main", "commit": "7caec274fd19c12b55902a5b795100d21531391f" },
|
||||||
|
"nvim-web-devicons": { "branch": "master", "commit": "d7462543c9e366c0d196c7f67a945eaaf5d99414" },
|
||||||
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
|
"rust.vim": { "branch": "master", "commit": "889b9a7515db477f4cb6808bef1769e53493c578" },
|
||||||
|
"rustaceanvim": { "branch": "master", "commit": "e9c5aaba16fead831379d5f44617547a90b913c7" },
|
||||||
|
"telescope.nvim": { "branch": "master", "commit": "e6cdb4dc528c5dc4ca8da86e83ef4e3c84b0729c" },
|
||||||
|
"ui": { "branch": "v3.0", "commit": "cb75908a86720172594b30de147272c1b3a7f452" },
|
||||||
|
"volt": { "branch": "main", "commit": "620de1321f275ec9d80028c68d1b88b409c0c8b1" },
|
||||||
|
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
||||||
|
}
|
||||||
1
lua/autocmds.lua
Normal file
1
lua/autocmds.lua
Normal file
@@ -0,0 +1 @@
|
|||||||
|
require "nvchad.autocmds"
|
||||||
@@ -1,12 +1,12 @@
|
|||||||
-- This file needs to have same structure as nvconfig.lua
|
-- This file needs to have same structure as nvconfig.lua
|
||||||
-- https://github.com/NvChad/ui/blob/v2.5/lua/nvconfig.lua
|
-- https://github.com/NvChad/ui/blob/v3.0/lua/nvconfig.lua
|
||||||
-- Please read that file to know all available options :(
|
-- Please read that file to know all available options :(
|
||||||
|
|
||||||
---@type ChadrcConfig
|
---@type ChadrcConfig
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
M.base46 = {
|
M.base46 = {
|
||||||
theme = "onedark",
|
theme = "nightowl",
|
||||||
|
|
||||||
-- hl_override = {
|
-- hl_override = {
|
||||||
-- Comment = { italic = true },
|
-- Comment = { italic = true },
|
||||||
@@ -14,4 +14,11 @@ M.base46 = {
|
|||||||
-- },
|
-- },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
-- M.nvdash = { load_on_startup = true }
|
||||||
|
-- M.ui = {
|
||||||
|
-- tabufline = {
|
||||||
|
-- lazyload = false
|
||||||
|
-- }
|
||||||
|
-- }
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|||||||
@@ -1,24 +1,6 @@
|
|||||||
-- load defaults i.e lua_lsp
|
|
||||||
require("nvchad.configs.lspconfig").defaults()
|
require("nvchad.configs.lspconfig").defaults()
|
||||||
|
|
||||||
local lspconfig = require "lspconfig"
|
|
||||||
|
|
||||||
-- EXAMPLE
|
|
||||||
local servers = { "html", "cssls" }
|
local servers = { "html", "cssls" }
|
||||||
local nvlsp = require "nvchad.configs.lspconfig"
|
vim.lsp.enable(servers)
|
||||||
|
|
||||||
-- lsps with default config
|
-- read :h vim.lsp.config for changing options of lsp servers
|
||||||
for _, lsp in ipairs(servers) do
|
|
||||||
lspconfig[lsp].setup {
|
|
||||||
on_attach = nvlsp.on_attach,
|
|
||||||
on_init = nvlsp.on_init,
|
|
||||||
capabilities = nvlsp.capabilities,
|
|
||||||
}
|
|
||||||
end
|
|
||||||
|
|
||||||
-- configuring single server, example: typescript
|
|
||||||
-- lspconfig.ts_ls.setup {
|
|
||||||
-- on_attach = nvlsp.on_attach,
|
|
||||||
-- on_init = nvlsp.on_init,
|
|
||||||
-- capabilities = nvlsp.capabilities,
|
|
||||||
-- }
|
|
||||||
|
|||||||
@@ -13,6 +13,56 @@ return {
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
'mrcjkb/rustaceanvim',
|
||||||
|
version = '^5', -- Recommended
|
||||||
|
lazy = false, -- This plugin is already lazy
|
||||||
|
ft = "rust",
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
'rust-lang/rust.vim',
|
||||||
|
ft = "rust",
|
||||||
|
init = function ()
|
||||||
|
vim.g.rustfmt_autosave = 1
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
'saecki/crates.nvim',
|
||||||
|
ft = {"toml"},
|
||||||
|
config = function()
|
||||||
|
require("crates").setup {
|
||||||
|
completion = {
|
||||||
|
cmp = {
|
||||||
|
enabled = true
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
||||||
|
require('cmp').setup.buffer({
|
||||||
|
sources = { { name = "crates" }}
|
||||||
|
})
|
||||||
|
end
|
||||||
|
},
|
||||||
|
|
||||||
|
-- LSP and Mason for Pyright
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
dependencies = {
|
||||||
|
"williamboman/mason.nvim",
|
||||||
|
"williamboman/mason-lspconfig.nvim",
|
||||||
|
},
|
||||||
|
config = function()
|
||||||
|
require("mason").setup()
|
||||||
|
require("mason-lspconfig").setup({
|
||||||
|
ensure_installed = {"pyright"},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
},
|
||||||
|
|
||||||
|
-- test new blink
|
||||||
|
-- { import = "nvchad.blink.lazyspec" },
|
||||||
|
|
||||||
-- {
|
-- {
|
||||||
-- "nvim-treesitter/nvim-treesitter",
|
-- "nvim-treesitter/nvim-treesitter",
|
||||||
-- opts = {
|
-- opts = {
|
||||||
|
|||||||
Reference in New Issue
Block a user