Add initial nvchad config

This commit is contained in:
Alessandro
2024-09-02 11:47:52 +02:00
parent 715df24f56
commit 72c72fbd10
22 changed files with 431 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
return {
"saecki/crates.nvim",
tag = "stable",
event = { "BufRead Cargo.toml" },
config = function()
require("crates").setup{
lsp = {
enabled = true,
actions = true,
completion = true,
hover = true,
},
completion = {
crates = {
enabled = true,
max_results = 10,
min_chars = 3,
},
}
}
end,
}

View File

@@ -0,0 +1,7 @@
return {
"chrisgrieser/nvim-lsp-endhints",
event = "LspAttach",
opts = {icons = {
type = "󱈤 ",
},},}

36
nvim/lua/plugins/init.lua Normal file
View File

@@ -0,0 +1,36 @@
return {
{
"stevearc/conform.nvim",
-- event = 'BufWritePre', -- uncomment for format on save
opts = require "configs.conform",
},
-- These are some examples, uncomment them if you want to see them work!
{
"neovim/nvim-lspconfig",
config = function()
require "configs.lspconfig"
end,
},
{
"Pocco81/auto-save.nvim",
config = function()
require("auto-save").setup()
end,
lazy = false,
},
{
"nvim-treesitter/nvim-treesitter",
opts = require "configs.default-ts",
},
{
"hiphish/rainbow-delimiters.nvim",
lazy = false,
},
{
"nvim-tree/nvim-tree.lua",
opts = require "configs.nvim-tree",
},
}

View File

@@ -0,0 +1,7 @@
return {
"WhoIsSethDaniel/mason-tool-installer.nvim",
lazy = false,
config = function()
require("mason-tool-installer").setup(require "configs.default-lsp")
end,
}

View File

@@ -0,0 +1,19 @@
return {
"navarasu/onedark.nvim",
lazy = false,
config = function()
require("onedark").setup {
style = "darker", -- Default theme style. Choose between 'dark', 'darker', 'cool', 'deep', 'warm', 'warmer' and 'light'
toggle_style_key = "<leader>ss",
transparent = false, -- Show/hide background
code_style = {
comments = "italic",
keywords = "italic,",
functions = "bold",
strings = "none",
variables = "none",
},
}
end,
}

View File

@@ -0,0 +1,12 @@
return {
"ahmedkhalf/project.nvim",
lazy = false,
config = function()
require("telescope").load_extension "projects"
require("project_nvim").setup {
-- your configuration comes here
-- or leave it empty to use the default settings
-- refer to the configuration section below
}
end,
}

View File

@@ -0,0 +1,14 @@
return {
"mrcjkb/rustaceanvim",
version = "^5", -- Recommended
lazy = false, -- This plugin is already lazy
config = function()
vim.g.rustaceanvim = {
tools = {
float_win_config = {
border = "rounded",
},
},
}
end,
}