add targets

This commit is contained in:
Jonathan Dönszelmann 2024-11-09 09:05:26 +01:00
parent dee2a92cf1
commit 720aaf0a93
No known key found for this signature in database
6 changed files with 176 additions and 97 deletions

View file

@ -60,9 +60,16 @@ in
enable = true;
nixGrammars = true;
nixvimInjections = true;
settings = {
indent.enable = true;
ensure_installed = "all";
ignore_install = [
"wing"
];
highlight.enable = true;
};
};
rainbow-delimiters.enable = true;
@ -78,7 +85,7 @@ in
auto-session = {
enable = true;
extraOptions = {
settings = {
auto_save_enabled = true;
auto_restore_enabled = true;
pre_save_cmds = [ "Neotree close" ];
@ -191,51 +198,52 @@ in
auto_attach = true;
server = {
standalone = false;
cmd = [ "rustup" "run" "nightly" "rust-analyzer" ];
default_settings = {
rust-analyzer = {
inlayHints = { lifetimeElisionHints = { enable = "always"; }; };
check = { command = "clippy"; };
cachePriming.enable = false;
};
cargo = {
buildScripts.enable = true;
features = "all";
runBuildScripts = true;
loadOutDirsFromCheck = true;
};
checkOnSave = true;
check = {
allFeatures = true;
command = "clippy";
extraArgs = [ "--no-deps" ];
};
procMacro = { enable = true; };
imports = {
granularity = { group = "module"; };
prefix = "self";
};
files = {
excludeDirs =
[ ".cargo" ".direnv" ".git" "node_modules" "target" ];
};
inlayHints = {
bindingModeHints.enable = true;
closureStyle = "rust_analyzer";
closureReturnTypeHints.enable = "always";
discriminantHints.enable = "always";
expressionAdjustmentHints.enable = "always";
implicitDrops.enable = true;
lifetimeElisionHints.enable = "always";
rangeExclusiveHints.enable = true;
};
rustc.source = "discover";
options.diagnostics = {
enable = true;
styleLints.enable = true;
};
# cargo = {
# buildScripts.enable = true;
# features = "all";
# runBuildScripts = true;
# loadOutDirsFromCheck = true;
# };
# checkOnSave = true;
# check = {
# allFeatures = true;
# command = "clippy";
# extraArgs = [ "--no-deps" ];
# };
# procMacro = { enable = true; };
# imports = {
# granularity = { group = "module"; };
# prefix = "self";
# };
# files = {
# excludeDirs =
# [ ".cargo" ".direnv" ".git" "node_modules" "target" ];
# };
#
# inlayHints = {
# bindingModeHints.enable = true;
# closureStyle = "rust_analyzer";
# closureReturnTypeHints.enable = "always";
# discriminantHints.enable = "always";
# expressionAdjustmentHints.enable = "always";
# implicitDrops.enable = true;
# lifetimeElisionHints.enable = "always";
# rangeExclusiveHints.enable = true;
# reborrowHints.enable = "mutable";
# };
#
# rustc.source = "discover";
#
# options.diagnostics = {
# enable = true;
# styleLints.enable = true;
# };
};
};
};
@ -247,7 +255,7 @@ in
servers = {
astro.enable = true;
cssls.enable = true;
nil-ls = {
nil_ls = {
enable = true;
extraOptions = {
nix = {
@ -282,20 +290,16 @@ in
enable = true;
filetypes = [ "python" ];
};
# taplo = {
# enable = true;
# filetypes = [ "toml" ];
# };
bashls = {
enable = true;
filetypes = [ "sh" "bash" ];
};
ts-ls = {
enable = true;
filetypes =
[ "javascript" "javascriptreact" "typescript" "typescriptreact" ];
};
# ts_ls = {
# enable = true;
# filetypes =
# [ "javascript" "javascriptreact" "typescript" "typescriptreact" ];
# };
marksman.enable = true;
yamlls = {
enable = true;
@ -337,9 +341,12 @@ in
};
# tabs
bufferline = {
barbar = {
enable = true;
settings.options.diagnostics = "nvim_lsp";
settings = {
options.diagnostics = "nvim_lsp";
focus_on_close = "previous";
};
};
none-ls = {
@ -375,8 +382,14 @@ in
vim-gh-line
# vim-bufkill
BufOnly-vim
neoconf-nvim
vim-autoswap
targets-vim
];
extraConfigLuaPre = ''
require("neoconf").setup({})
'';
extraConfigLua = ''
require("render-markdown").setup {
latex_converter = '${pkgs.python312Packages.pylatexenc}/bin/latex2text',