astronvim-config/lua/user/init.lua

92 lines
3.0 KiB
Lua
Raw Normal View History

2023-10-19 12:12:15 +02:00
local config = {
2023-11-13 16:42:29 +01: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"] = {
2023-11-13 16:42:29 +01:00
cargo = { buildScripts = { enable = true } },
2023-10-24 09:37:06 +02:00
procMacrto = { enable = true },
check = {
command = "clippy",
overrideCommand = "clippy --message-format=json",
},
},
},
},
2023-11-13 16:42:29 +01:00
clangd = { capabilities = { offsetEncoding = "utf-8" } },
2023-10-24 09:37:06 +02:00
},
},
2023-10-19 12:12:15 +02:00
2023-10-24 09:37:06 +02:00
-- Add plugins
plugins = {
-- Extended file type support
2023-11-13 16:42:29 +01:00
{ "sheerun/vim-polyglot", lazy = false }, -- Community plugins
2023-10-24 09:37:06 +02:00
"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-11-13 16:42:29 +01:00
-- use modern inlay hints:
2023-10-24 09:37:06 +02:00
{
"p00f/clangd_extensions.nvim",
optional = true,
opts = { extensions = { autoSetHints = true } },
},
{
"simrat39/rust-tools.nvim",
optional = true,
2023-11-13 16:42:29 +01:00
opts = { tools = { inlay_hints = { auto = true } } },
2023-10-24 09:37:06 +02:00
},
},
2023-10-19 12:12:15 +02:00
}
return config