Compare commits

..
3 Commits
3 changed files with 15 additions and 28 deletions
+3 -5
View File
@@ -7,13 +7,11 @@
];
plugins = {
lspkind = {
enable = true;
settings.mode = "symbol";
};
lspkind.enable = true;
cmp = {
enable = true;
autoEnableSources = true;
settings = {
@@ -21,7 +19,7 @@
formatting.fields = [
"abbr"
"kind"
"icon"
"menu"
];
+11 -16
View File
@@ -21,27 +21,22 @@
};
settings = {
default_format_opts.lsp_format = "fallback";
format_on_save = ''
function(bufnr)
local disable_filetypes = { c = true, cpp = true }
local lsp_format_opt
if disable_filetypes[vim.bo[bufnr].filetype] then
lsp_format_opt = 'never'
else
lsp_format_opt = 'fallback'
end
return {
timeout_ms = 500,
lsp_format = lsp_format_opt,
}
end
'';
format_on_save = {
lsp_format = "fallback";
timeout_ms = 500;
};
formatters_by_ft = {
c = [ "clang-format" ];
lua = [ "stylua" ];
nix = [ "nixfmt" ];
python = [ "ruff" ];
python = [ "ruff_format" ];
};
formatters.clang-format.prepend_args = [
"--style=file"
"--fallback-style=LLVM"
];
};
};
+1 -7
View File
@@ -51,13 +51,7 @@
installCargo = false;
installRustc = false;
};
qmlls = {
enable = true;
cmd = [
"qmlls"
"-E"
];
};
clangd.enable = true;
};
};
};