feat: Update stuff

This commit is contained in:
uttarayan21
2024-09-04 16:27:47 +05:30
parent 9a08453063
commit b2b3359328
7 changed files with 98 additions and 92 deletions

View File

@@ -40,7 +40,7 @@ in rec {
navic = {
enable = true;
lsp.autoAttach = true;
settings.lsp.auto_attach = true;
};
mini = {
@@ -86,6 +86,11 @@ in rec {
'';
};
molten = {
enable = true;
settings.image_provider = "image.nvim";
};
markdown-preview = {
enable = true;
settings.auto_start = false;
@@ -176,45 +181,24 @@ in rec {
enable = true;
settings = {
server = {
on_attach =
/*
lua
*/
''
function(client, bufnr)
if client.server_capabilities.inlayHintProvider then
vim.lsp.inlay_hint.enable(true)
end
end
'';
# settings =
# on_attach =
# /*
# lua
# */
# ''
# function(project_root)
# local ra = require('rustaceanvim.config.server')
# return ra.load_rust_analyzer_settings(project_root, {
# settings_file_pattern = 'rust-analyzer.json'
# })
# function(client, bufnr)
# if client.server_capabilities.inlayHintProvider then
# vim.lsp.inlay_hint.enable(true)
# end
# end
# '';
#cmd =
# /*
# lua
# */
# ''
# function()
# return { '${pkgs.ra-multiplex}/bin/ra-multiplex', 'client' }
# end
# '';
default_settings = '' {
['rust-analyzer'] = {
files = {
excludeDirs = {".git", ".direnv"},
},
},
}'';
default_settings = {
rust-analyzer = {
files = {
excludeDirs = [".git" ".direnv"];
};
};
};
};
dap = {
autoload_configurations = false;
@@ -318,6 +302,7 @@ in rec {
};
globals = {
mapleader = " ";
localleader = " ";
};
colorschemes = {
catppuccin = {