astronvim-config/lua/user/init.lua

106 lines
3.0 KiB
Lua
Raw Normal View History

2023-10-19 12:12:15 +02:00
local config = {
2023-10-24 09:37:06 +02:00
options = {
opt = {
colorcolumn = "80,120",
},
g = {
inlay_hints_enabled = true,
},
},
2023-10-19 12:12:15 +02:00
2023-10-24 09:37:06 +02:00
lsp = {
config = {
rust_analyzer = {
settings = {
["rust-analyzer"] = {
cargo = {
buildScripts = { enable = true },
},
procMacrto = { enable = true },
check = {
command = "clippy",
overrideCommand = "clippy --message-format=json",
},
},
},
},
},
},
2023-10-19 12:12:15 +02:00
2023-10-24 09:37:06 +02:00
-- Add plugins
plugins = {
-- Extended file type support
{ "sheerun/vim-polyglot", lazy = false },
2023-10-19 12:12:15 +02:00
2023-10-24 09:37:06 +02:00
-- Community plugins
"AstroNvim/astrocommunity",
{ import = "astrocommunity.pack.angular" },
{ import = "astrocommunity.pack.ansible" },
{ import = "astrocommunity.pack.astro" },
{ import = "astrocommunity.pack.bash" },
{ import = "astrocommunity.pack.clojure" },
{ import = "astrocommunity.pack.cmake" },
{ import = "astrocommunity.pack.cpp" },
{ import = "astrocommunity.pack.cs" },
{ import = "astrocommunity.pack.cue" },
{ import = "astrocommunity.pack.dart" },
{ import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.docker" },
{ import = "astrocommunity.pack.edgedb" },
{ import = "astrocommunity.pack.full-dadbod" },
{ import = "astrocommunity.pack.go" },
{ import = "astrocommunity.pack.godot" },
{ import = "astrocommunity.pack.haskell" },
{ import = "astrocommunity.pack.haxe" },
{ import = "astrocommunity.pack.helm" },
{ import = "astrocommunity.pack.html-css" },
{ import = "astrocommunity.pack.java" },
{ import = "astrocommunity.pack.json" },
{ import = "astrocommunity.pack.julia" },
{ import = "astrocommunity.pack.kotlin" },
{ import = "astrocommunity.pack.lua" },
{ import = "astrocommunity.pack.markdown" },
{ import = "astrocommunity.pack.nix" },
{ import = "astrocommunity.pack.php" },
{ import = "astrocommunity.pack.prisma" },
{ import = "astrocommunity.pack.proto" },
{ import = "astrocommunity.pack.ps1" },
{ import = "astrocommunity.pack.python" },
{ import = "astrocommunity.pack.quarto" },
{ import = "astrocommunity.pack.ruby" },
{ import = "astrocommunity.pack.rust" },
{ import = "astrocommunity.pack.scala" },
{ import = "astrocommunity.pack.svelte" },
{ import = "astrocommunity.pack.tailwindcss" },
{ import = "astrocommunity.pack.terraform" },
{ import = "astrocommunity.pack.toml" },
{ import = "astrocommunity.pack.typescript" },
{ import = "astrocommunity.pack.vue" },
{ import = "astrocommunity.pack.wgsl" },
{ import = "astrocommunity.pack.yaml" },
{ import = "astrocommunity.pack.zig" },
2023-10-19 12:12:15 +02:00
2023-10-24 09:37:06 +02:00
{ import = "astrocommunity.diagnostics.trouble-nvim" },
{ import = "astrocommunity.git.git-blame-nvim" },
{ import = "astrocommunity.markdown-and-latex.vimtex" },
2023-10-19 12:12:15 +02:00
2023-10-24 09:37:06 +02:00
-- use moden inlay hints:
{
"p00f/clangd_extensions.nvim",
optional = true,
opts = { extensions = { autoSetHints = true } },
},
{
"simrat39/rust-tools.nvim",
optional = true,
opts = {
tools = {
inlay_hints = { auto = true },
},
},
},
},
2023-10-19 12:12:15 +02:00
}
return config